Skip to content

Instantly share code, notes, and snippets.

@koush
Created January 14, 2013 08:34
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koush/4528620 to your computer and use it in GitHub Desktop.
Save koush/4528620 to your computer and use it in GitHub Desktop.
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