ax / apk.sh

apk.sh makes reverse engineering Android apps easier, automating some repetitive tasks like pulling, decoding, rebuilding and patching an APK.
GNU General Public License v3.0
3.34k stars 189 forks source link

download adb as a tool #22

Closed jeromew closed 11 months ago

jeromew commented 1 year ago

Hello,

adb for linux can be downloaded in platform-tools via the url https://dl.google.com/android/repository/platform-tools-latest-linux.zip

it could be interesting to add adb to the auto-download mechanism.

ax commented 1 year ago

Wanna code it? :)

jeromew commented 11 months ago

yes I'll do it. I'll push a PR later

jeromew commented 11 months ago

Install sdk platform-tools when adb is not found

cf https://github.com/ax/apk.sh/pull/26

I realised platform-tools can be installed via sdkmanager so I extracted the cmdline tools installation in their own function shared by install_buildtools and install_platformtools

ax commented 11 months ago

It seems ok! Thank you @jeromew! PR merged. v1.0.8.