Created
January 28, 2014 09:50
-
-
Save Androguide/8664871 to your computer and use it in GitHub Desktop.
Launch an Android app through adb using the apk name instead of the package name (e.g: launch-app.sh yourapp.apk)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg=$(aapt dump badging $1|awk -F" " '/package/ {print $2}'|awk -F"'" '/name=/ {print $2}') | |
act=$(aapt dump badging $1|awk -F" " '/launchable-activity/ {print $2}'|awk -F"'" '/name=/ {print $2}') | |
adb shell am start -n $pkg/$act |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment