Created
January 14, 2013 08:34
-
-
Save koush/4528620 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
pkg=$(adb shell pm path com.koushikdutta.backup) | |
# apparently pm path appends a carriage return which screws | |
# up the class name in dalvikvm invocation | |
pkg=$(echo $pkg | cut -d : -f 2 | sed s/\\r//g) | |
echo $pkg | |
adb shell << EOF | |
CLASSPATH=$pkg app_process /system/bin com.koushikdutta.shellproxy.ShellRunner2 $@ & | |
exit | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment