Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for running on Android directly #33

Open
mvdan opened this issue Feb 10, 2019 · 7 comments
Open

add support for running on Android directly #33

mvdan opened this issue Feb 10, 2019 · 7 comments

Comments

@mvdan
Copy link
Owner

mvdan commented Feb 10, 2019

That is, replace these ADB commands:

# device info
adb shell getprop
# install an apk
adb install -r foo.apk

With their native Android counterparts:

getprop
pm install -r foo.apk

This way, this client could both be run from a laptop/desktop connected to an Android device via USB (ADB), or on an Android device directly.

Of course, the interface would still be command-line, which wouldn't be ideal. But at least the client would work. One could also imagine it being the basis of a client UI, or perhaps automatic updates via scripting, etc.

We'd need another group of tests which would build a fdroidcl binary, adb push it to a connected Android device, and check that the basics work there directly too.

@Mannshoch
Copy link

Mannshoch commented Feb 27, 2021

I think here about https://github.com/termux/termux-app and his repo
and for that case you may need to solve the cache issue. I actually removed 3.6GB cache:
#48

@nerd190
Copy link

nerd190 commented Sep 20, 2021

I would also like this too @mvdan 👍
Being able to bootstrap apps on a fresh system "on-the-go" would be great! that way we would only need a terminal emulator like Termux (or even the stock mksh we have bultin to our devices 😶) and no PC needed!
I'm not fluent in go unfortunately (it is the language I'm starting to learn though!) but I would check if $OS_TYPE exists and contains "android" else getprop will be your friend, or even check the existance of two files, both /default.prop & /system/build.prop?
If you can it would be amazing! if not then this could perhaps be my first project with go, thanks.

@mvdan
Copy link
Owner Author

mvdan commented Sep 21, 2021

See #56 :) Also, you can just check runtime.GOOS == "android".

@B4rabbas
Copy link

B4rabbas commented Feb 4, 2024

Hello, here is any way to do this directly in fdroidcl from termux on the android device, I'm quite confused of what I've to do in termux to install package directly.

@jugendhacker
Copy link
Contributor

@B4rabbas currently there is no way of running fdroidcl directly on the device you want to install things on

@Mannshoch
Copy link

I have fdroidcl running on termux. The problem is that you have to run adb over WLAN to connect fdroid with adb on the Phone. Thats not so a nice Workflow.

@jugendhacker
Copy link
Contributor

Oh true, I forgot about the wireless usecase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants