Create a gist now

Instantly share code, notes, and snippets.

@koush /
Created Jan 14, 2013

What would you like to do?
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 $@ &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment