Skip to content

Instantly share code, notes, and snippets.

@hivivo
Forked from Jalict/sendapk.md
Last active January 21, 2023 18:49
Show Gist options
  • Save hivivo/ee4663565a290253ffc22a4c1eb7b8aa to your computer and use it in GitHub Desktop.
Save hivivo/ee4663565a290253ffc22a4c1eb7b8aa to your computer and use it in GitHub Desktop.
Remote ADB actions

Remote ADB actions

Connect to device via ADB

  • adb connect ip:port

Install the APK to the device

  • adb install <app.apk>

Send Powerbutton keyevent to device

  • adb shell input keyevent 26

Start the App

  • adb shell monkey -p -c android.intent.category.LAUNCHER 1

List packages installed

  • adb shell pm list packages

List packages installed (with root)

  • adb shell su 0 pm list packages

Uninstall the package

  • adb uninstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment