I am making a shell script for Android to run on ADB, however, the script should download a file. Commands like wget
and curl
aren't available in /system/bin
. Here are a few possibble solutions that I thought of, each with its cons:
- Rooting and installing BusyBox (my target systems are rootless)
- Downloading file in computer using
wget
orcurl
then transferring the file to Android withadb push
(the script should be ran on Android, not the computer connected to it) - Downloading
wget
orcurl
in Android (how can I download a binary without them in first place???) - Termux (nope, my script sets some settings in Android which Termux can't)
Is it even possile? If yes, how?
busybox
orwget
orcurl
binary in/data/local/tmp/
and execute from there. Simple.