Skip to content

Instantly share code, notes, and snippets.

@Jalict
Last active June 26, 2020 15:48
Show Gist options
  • Save Jalict/69fb46971d5421bd1e0bced84de2efae to your computer and use it in GitHub Desktop.
Save Jalict/69fb46971d5421bd1e0bced84de2efae to your computer and use it in GitHub Desktop.
How to send APK file to a remote device using ADB and start the application

Install and Start APK remotely

Connect to device via ADB

  • adb connect <ip:port>

Install the APK to the device

  • adb -s <ip:port> install -r <app.apk>

Send Powerbutton keyevent to device

  • adb -s <ip:port> shell input keyevent 26

Start the App

  • adb -s <ip:port> shell monkey -p <package name> -c android.intent.category.LAUNCHER 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment