Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. 1|shell@shamu:/ $ pm
  2. pm
  3. usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [--user USER_ID] [FIL
  4. TER]
  5. pm list permission-groups
  6. pm list permissions [-g] [-f] [-d] [-u] [GROUP]
  7. pm list instrumentation [-f] [TARGET-PACKAGE]
  8. pm list features
  9. pm list libraries
  10. pm list users
  11. pm path PACKAGE
  12. pm dump PACKAGE
  13. pm install [-lrtsfd] [-i PACKAGE] [PATH]
  14. pm install-create [-lrtsfdp] [-i PACKAGE] [-S BYTES]
  15. pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH]
  16. pm install-commit SESSION_ID
  17. pm install-abandon SESSION_ID
  18. pm uninstall [-k] [--user USER_ID] PACKAGE
  19. pm set-installer PACKAGE INSTALLER
  20. pm clear [--user USER_ID] PACKAGE
  21. pm enable [--user USER_ID] PACKAGE_OR_COMPONENT
  22. pm disable [--user USER_ID] PACKAGE_OR_COMPONENT
  23. pm disable-user [--user USER_ID] PACKAGE_OR_COMPONENT
  24. pm disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT
  25. pm hide [--user USER_ID] PACKAGE_OR_COMPONENT
  26. pm unhide [--user USER_ID] PACKAGE_OR_COMPONENT
  27. pm grant PACKAGE PERMISSION
  28. pm revoke PACKAGE PERMISSION
  29. pm set-install-location [0/auto] [1/internal] [2/external]
  30. pm get-install-location
  31. pm set-permission-enforced PERMISSION [true|false]
  32. pm trim-caches DESIRED_FREE_SPACE
  33. pm create-user [--profileOf USER_ID] [--managed] USER_NAME
  34. pm remove-user USER_ID
  35. pm get-max-users
  36.  
  37. pm list packages: prints all packages, optionally only
  38. those whose package name contains the text in FILTER. Options:
  39. -f: see their associated file.
  40. -d: filter to only show disbled packages.
  41. -e: filter to only show enabled packages.
  42. -s: filter to only show system packages.
  43. -3: filter to only show third party packages.
  44. -i: see the installer for the packages.
  45. -u: also include uninstalled packages.
  46.  
  47. pm list permission-groups: prints all known permission groups.
  48.  
  49. pm list permissions: prints all known permissions, optionally only
  50. those in GROUP. Options:
  51. -g: organize by group.
  52. -f: print all information.
  53. -s: short summary.
  54. -d: only list dangerous permissions.
  55. -u: list only the permissions users will see.
  56.  
  57. pm list instrumentation: use to list all test packages; optionally
  58. supply <TARGET-PACKAGE> to list the test packages for a particular
  59. application. Options:
  60. -f: list the .apk file for the test package.
  61.  
  62. pm list features: prints all features of the system.
  63.  
  64. pm list users: prints all users on the system.
  65.  
  66. pm path: print the path to the .apk of the given PACKAGE.
  67.  
  68. pm dump: print system state associated with the given PACKAGE.
  69.  
  70. pm install: install a single legacy package
  71. pm install-create: create an install session
  72. -l: forward lock application
  73. -r: replace existing application
  74. -t: allow test packages
  75. -i: specify the installer package name
  76. -s: install application on sdcard
  77. -f: install application on internal flash
  78. -d: allow version code downgrade
  79. -p: partial application install
  80. -S: size in bytes of entire session
  81.  
  82. pm install-write: write a package into existing session; path may
  83. be '-' to read from stdin
  84. -S: size in bytes of package, required for stdin
  85.  
  86. pm install-commit: perform install of fully staged session
  87. pm install-abandon: abandon session
  88.  
  89. pm set-installer: set installer package name
  90.  
  91. pm uninstall: removes a package from the system. Options:
  92. -k: keep the data and cache directories around after package removal.
  93.  
  94. pm clear: deletes all data associated with a package.
  95.  
  96. pm enable, disable, disable-user, disable-until-used: these commands
  97. change the enabled state of a given package or component (written
  98. as "package/class").
  99.  
  100. pm grant, revoke: these commands either grant or revoke permissions
  101. to applications. Only optional permissions the application has
  102. declared can be granted or revoked.
  103.  
  104. pm get-install-location: returns the current install location.
  105. 0 [auto]: Let system decide the best location
  106. 1 [internal]: Install on internal device storage
  107. 2 [external]: Install on external media
  108.  
  109. pm set-install-location: changes the default install location.
  110. NOTE: this is only intended for debugging; using this can cause
  111. applications to break and other undersireable behavior.
  112. 0 [auto]: Let system decide the best location
  113. 1 [internal]: Install on internal device storage
  114. 2 [external]: Install on external media
  115.  
  116. pm trim-caches: trim cache files to reach the given free space.
  117.  
  118. pm create-user: create a new user with the given USER_NAME,
  119. printing the new user identifier of the user.
  120.  
  121. pm remove-user: remove the user with the given USER_IDENTIFIER,
  122. deleting all data associated with that user
  123.  
  124. 1|shell@shamu:/ $ pm hide com.ebay.mobile
  125. pm hide com.ebay.mobile
  126. Package com.ebay.mobile new hidden state: true
  127. shell@shamu:/ $ pm unhide com.ebay.mobile
  128. pm unhide com.ebay.mobile
  129. Package com.ebay.mobile new hidden state: false
  130. shell@shamu:/ $ pm disable-until-used com.ebay.mobile
  131. pm disable-until-used com.ebay.mobile
  132. Error: java.lang.SecurityException: Permission Denial: attempt to change compone
  133. nt state from pid=13525, uid=2000, package uid=10111
  134. 1|shell@shamu:/ $ pm clear com.ebay.mobile
  135. pm clear com.ebay.mobile
  136. Success
  137. shell@shamu:/ $ pm uninstall com.ebay.mobile
  138. pm uninstall com.ebay.mobile
  139. Success
  140. shell@shamu:/ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement