public
Last active

  • Download Gist
run.sh
Shell
1 2 3 4 5 6 7 8 9
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.