Advertisement
savoxis

PM GetInstallLocation

Jun 2nd, 2011
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. CurrentInstallLocation=$(pm getInstallLocation | cut -f 1 -d [)
  4.  
  5. case "$CurrentInstallLocation" in
  6.      '')
  7.           CurrentInstallLocation="Error: could not get current install location."
  8.      ;;
  9.      0)
  10.           CurrentInstallLocation="Auto: System will decide where apps will be installed to."
  11.      ;;
  12.      1)
  13.           CurrentInstallLocation="Internal: Apps will be installed to internal storage."
  14.      ;;
  15.      2)
  16.           CurrentInstallLocation="External: Apps will be installed to sdcard"
  17.      ;;
  18. esac
  19.  
  20. echo "$CurrentInstallLocation"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement