Advertisement
adamchilcott

run.sh

Dec 7th, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. BASE=$(dirname $0)
  2. pkg=$(adb shell pm path com.koushikdutta.backup)
  3. # apparently pm path appends a carriage return which screws
  4. # up the class name in dalvikvm invocation
  5. pkg=$(echo $pkg | cut -d : -f 2 | sed s/\\r//g)
  6. echo $pkg
  7. adb shell << EOF
  8. CLASSPATH=$pkg app_process /system/bin com.koushikdutta.shellproxy.ShellRunner2 $@ &
  9. exit
  10. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement