SHARE
TWEET

Untitled

a guest Dec 6th, 2013 787 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function launchAndroidApp(){
  2.         aapt dump badging $1 | awk '/launchable-activity/ {
  3.                 split($2,parts,/=/)
  4.                 activity = substr(parts[2],2,length(parts[2])-2)
  5.         }
  6.         /package/ {
  7.                 split($2,parts,/=/)
  8.                 package = substr(parts[2],2,length(parts[2])-2)
  9.         }
  10.         END {
  11.                 system("adb shell am start -n " package "/" activity)
  12.         }'
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top