Created
June 9, 2020 19:33
-
-
Save lifeofcoding/8ebc5b8023c24a921051ada506af8e9b to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
URI=`adb shell pm list packages | grep $1` | |
ACTIVITY=`adb shell cmd package resolve-activity --brief ${URI#package:} | tail -n 1` | |
anbox launch --package=${URI#package:} --component=${ACTIVITY//$'/'/} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment