通过adbshell获取android的权限集合

  • Post author:
  • Post category:其他



在Window控制台中输入如下命令可以看到

Android

系统中列出的所有权限(如果自定义权限注册成功,在这里也会找到这些自定义的权限)





adb shell pm list permissions




  1. C:\Users\Administrator


    >


    adb shell pm list permissions


  2. All Permissions:


  3. permission:android.permission.INTERNAL_SYSTEM_WINDOW

  4. permission:android.permission.MOVE_PACKAGE

  5. permission:android.permission.CONTROL_WIFI_DISPLAY

  6. permission:android.permission.READ_INPUT_STATE

  7. permission:android.permission.GET_TOP_ACTIVITY_INFO

  8. permission:android.permission.REBOOT

  9. permission:android.permission.FILTER_EVENTS

  10. permission:android.permission.STATUS_BAR

  11. permission:android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED

  12. permission:android.permission.STOP_APP_SWITCHES

  13. permission:android.permission.BIND_VPN_SERVICE

  14. permission:android.permission.SET_KEYBOARD_LAYOUT

  15. permission:android.permission.MANAGE_APP_TOKENS

  16. permission:android.permission.RETRIEVE_WINDOW_INFO

  17. permission:android.permission.BIND_PACKAGE_VERIFIER

  18. permission:android.permission.ACCESS_KEYGUARD_SECURE_STORAGE

  19. permission:android.permission.COPY_PROTECTED_DATA

  20. permission:com.android.email.permission.ACCESS_PROVIDER

  21. permission:android.permission.MASTER_CLEAR

  22. permission:android.permission.MODIFY_NETWORK_ACCOUNTING

  23. permission:android.permission.READ_NETWORK_USAGE_HISTORY

  24. permission:android.permission.UPDATE_APP_OPS_STATS

  25. permission:android.permission.INJECT_EVENTS

  26. permission:android.permission.INSTALL_LOCATION_PROVIDER

  27. permission:android.permission.UPDATE_LOCK

  28. permission:android.permission.CONFIRM_FULL_BACKUP

  29. permission:android.permission.PACKAGE_USAGE_STATS

  30. permission:android.permission.ACCESS_SURFACE_FLINGER

  31. permission:android.permission.CONTROL_KEYGUARD

  32. permission:android.permission.PACKAGE_VERIFICATION_AGENT

  33. permission:android.permission.MMS_SEND_OUTBOX_MSG

  34. permission:android.intent.category.MASTER_CLEAR.permission.C2D_MESSAGE

  35. permission:android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK

  36. permission:android.permission.BIND_TEXT_SERVICE

  37. permission:android.permission.MARK_NETWORK_SOCKET

  38. permission:android.permission.GRANT_REVOKE_PERMISSIONS

  39. permission:android.permission.READ_FRAME_BUFFER

  40. permission:android.permission.UPDATE_DEVICE_STATS

  41. permission:android.permission.FORCE_BACK

  42. permission:android.permission.CAPTURE_SECURE_VIDEO_OUTPUT

  43. permission:android.permission.SET_ORIENTATION

  44. permission:com.android.certinstaller.INSTALL_AS_USER

  45. permission:android.permission.FACTORY_TEST

  46. permission:android.permission.MAGNIFY_DISPLAY

  47. permission:android.permission.BIND_DEVICE_ADMIN

  48. permission:android.permission.CLEAR_APP_USER_DATA

  49. permission:android.permission.SHUTDOWN

  50. permission:android.permission.MEDIA_CONTENT_CONTROL

  51. permission:android.permission.BIND_INPUT_METHOD

  52. permission:android.permission.BIND_ACCESSIBILITY_SERVICE

  53. permission:android.permission.DOWNLOAD_CACHE_NON_PURGEABLE

  54. permission:android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS

  55. permission:com.android.printspooler.permission.ACCESS_ALL_PRINT_JOBS

  56. permission:android.permission.SERIAL_PORT

  57. permission:android.permission.CONFIGURE_WIFI_DISPLAY

  58. permission:android.permission.CAPTURE_AUDIO_OUTPUT

  59. permission:android.permission.ACCESS_CHECKIN_PROPERTIES

  60. permission:android.permission.CRYPT_KEEPER

  61. permission:android.permission.DEVICE_POWER

  62. permission:android.permission.DELETE_PACKAGES

  63. permission:android.permission.ACCESS_CACHE_FILESYSTEM

  64. permission:android.permission.START_PRINT_SERVICE_CONFIG_ACTIVITY

  65. permission:android.permission.BIND_NFC_SERVICE

  66. permission:android.permission.ACCESS_ALL_DOWNLOADS

  67. permission:android.permission.ACCESS_DOWNLOAD_MANAGER

  68. permission:android.permission.CONTROL_LOCATION_UPDATES

  69. permission:android.permission.DELETE_CACHE_FILES

  70. permission:android.permission.CAPTURE_VIDEO_OUTPUT

  71. permission:android.permission.ACCESS_NETWORK_CONDITIONS

  72. permission:android.permission.INVOKE_CARRIER_SETUP

  73. permission:android.permission.ACCESS_NOTIFICATIONS

  74. permission:android.permission.BRICK

  75. permission:android.permission.SET_ACTIVITY_WATCHER

  76. permission:android.permission.BACKUP

  77. permission:android.permission.SET_TIME

  78. permission:android.permission.STATUS_BAR_SERVICE

  79. permission:android.permission.MANAGE_DEVICE_ADMINS

  80. permission:android.permission.PERFORM_CDMA_PROVISIONING

  81. permission:android.permission.CAPTURE_AUDIO_HOTWORD

  82. permission:android.permission.INSTALL_PACKAGES

  83. permission:android.permission.BIND_NOTIFICATION_LISTENER_SERVICE

  84. permission:com.android.browser.permission.PRELOAD

  85. permission:android.permission.SET_POINTER_SPEED

  86. permission:android.permission.CALL_PRIVILEGED

  87. permission:android.permission.CHANGE_COMPONENT_ENABLED_STATE

  88. permission:android.permission.BIND_PRINT_SPOOLER_SERVICE

  89. permission:android.permission.BIND_PRINT_SERVICE

  90. permission:android.permission.MANAGE_CA_CERTIFICATES

  91. permission:android.permission.MANAGE_NETWORK_POLICY

  92. permission:android.permission.WRITE_GSERVICES

  93. permission:android.permission.FREEZE_SCREEN

  94. permission:android.permission.BIND_WALLPAPER

  95. permission:android.permission.BIND_REMOTEVIEWS

  96. permission:android.permission.TEMPORARY_ENABLE_ACCESSIBILITY

  97. permission:android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY














如果正在使用多个Android设备,可以添加-d命令行参数,只列出通过USB数据线连接的Android设备中的权限列表,或使用-s命令行参数,指定要列出哪一个USB Android设备或模拟器中的权限列表



列出USB Android设备中的权限列表



adb -d shell pm list permissions












列出指定 Android设备中的权限列表



adb -s emulator-5554 shell pm list permissions









  1. C:\Users\Administrator


    >


    adb -s emulator-5554 shell pm list permissions


  2. All Permissions:


  3. permission:android.permission.INTERNAL_SYSTEM_WINDOW

  4. permission:android.permission.MOVE_PACKAGE

  5. permission:android.permission.CONTROL_WIFI_DISPLAY

  6. permission:android.permission.READ_INPUT_STATE

  7. permission:android.permission.GET_TOP_ACTIVITY_INFO

  8. permission:android.permission.REBOOT

  9. permission:android.permission.FILTER_EVENTS

  10. permission:android.permission.STATUS_BAR

  11. permission:android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED

  12. permission:android.permission.STOP_APP_SWITCHES

  13. permission:android.permission.BIND_VPN_SERVICE

  14. permission:android.permission.SET_KEYBOARD_LAYOUT

  15. permission:android.permission.MANAGE_APP_TOKENS

  16. permission:android.permission.RETRIEVE_WINDOW_INFO

  17. permission:android.permission.BIND_PACKAGE_VERIFIER

  18. permission:android.permission.ACCESS_KEYGUARD_SECURE_STORAGE

  19. permission:android.permission.COPY_PROTECTED_DATA

  20. permission:com.android.email.permission.ACCESS_PROVIDER

  21. permission:android.permission.MASTER_CLEAR

  22. permission:android.permission.MODIFY_NETWORK_ACCOUNTING

  23. permission:android.permission.READ_NETWORK_USAGE_HISTORY

  24. permission:android.permission.UPDATE_APP_OPS_STATS

  25. permission:android.permission.INJECT_EVENTS

  26. permission:android.permission.INSTALL_LOCATION_PROVIDER

  27. permission:android.permission.UPDATE_LOCK

  28. permission:android.permission.CONFIRM_FULL_BACKUP

  29. permission:android.permission.PACKAGE_USAGE_STATS

  30. permission:android.permission.ACCESS_SURFACE_FLINGER

  31. permission:android.permission.CONTROL_KEYGUARD

  32. permission:android.permission.PACKAGE_VERIFICATION_AGENT

  33. permission:android.permission.MMS_SEND_OUTBOX_MSG

  34. permission:android.intent.category.MASTER_CLEAR.permission.C2D_MESSAGE

  35. permission:android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK

  36. permission:android.permission.BIND_TEXT_SERVICE

  37. permission:android.permission.MARK_NETWORK_SOCKET

  38. permission:android.permission.GRANT_REVOKE_PERMISSIONS

  39. permission:android.permission.READ_FRAME_BUFFER

  40. permission:android.permission.UPDATE_DEVICE_STATS

  41. permission:android.permission.FORCE_BACK

  42. permission:android.permission.CAPTURE_SECURE_VIDEO_OUTPUT

  43. permission:android.permission.SET_ORIENTATION

  44. permission:com.android.certinstaller.INSTALL_AS_USER

  45. permission:android.permission.FACTORY_TEST

  46. permission:android.permission.MAGNIFY_DISPLAY

  47. permission:android.permission.BIND_DEVICE_ADMIN

  48. permission:android.permission.CLEAR_APP_USER_DATA

  49. permission:android.permission.SHUTDOWN

  50. permission:android.permission.MEDIA_CONTENT_CONTROL

  51. permission:android.permission.BIND_INPUT_METHOD

  52. permission:android.permission.BIND_ACCESSIBILITY_SERVICE

  53. permission:android.permission.DOWNLOAD_CACHE_NON_PURGEABLE

  54. permission:android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS

  55. permission:com.android.printspooler.permission.ACCESS_ALL_PRINT_JOBS

  56. permission:android.permission.SERIAL_PORT

  57. permission:android.permission.CONFIGURE_WIFI_DISPLAY

  58. permission:android.permission.CAPTURE_AUDIO_OUTPUT

  59. permission:android.permission.ACCESS_CHECKIN_PROPERTIES

  60. permission:android.permission.CRYPT_KEEPER

  61. permission:android.permission.DEVICE_POWER

  62. permission:android.permission.DELETE_PACKAGES

  63. permission:android.permission.ACCESS_CACHE_FILESYSTEM

  64. permission:android.permission.START_PRINT_SERVICE_CONFIG_ACTIVITY

  65. permission:android.permission.BIND_NFC_SERVICE

  66. permission:android.permission.ACCESS_ALL_DOWNLOADS

  67. permission:android.permission.ACCESS_DOWNLOAD_MANAGER

  68. permission:android.permission.CONTROL_LOCATION_UPDATES

  69. permission:android.permission.DELETE_CACHE_FILES

  70. permission:android.permission.CAPTURE_VIDEO_OUTPUT

  71. permission:android.permission.ACCESS_NETWORK_CONDITIONS

  72. permission:android.permission.INVOKE_CARRIER_SETUP

  73. permission:android.permission.ACCESS_NOTIFICATIONS

  74. permission:android.permission.BRICK

  75. permission:android.permission.SET_ACTIVITY_WATCHER

  76. permission:android.permission.BACKUP

  77. permission:android.permission.SET_TIME

  78. permission:android.permission.STATUS_BAR_SERVICE

  79. permission:android.permission.MANAGE_DEVICE_ADMINS

  80. permission:android.permission.PERFORM_CDMA_PROVISIONING

  81. permission:android.permission.CAPTURE_AUDIO_HOTWORD

  82. permission:android.permission.INSTALL_PACKAGES

  83. permission:android.permission.BIND_NOTIFICATION_LISTENER_SERVICE

  84. permission:com.android.browser.permission.PRELOAD

  85. permission:android.permission.SET_POINTER_SPEED

  86. permission:android.permission.CALL_PRIVILEGED

  87. permission:android.permission.CHANGE_COMPONENT_ENABLED_STATE

  88. permission:android.permission.BIND_PRINT_SPOOLER_SERVICE

  89. permission:android.permission.BIND_PRINT_SERVICE

  90. permission:android.permission.MANAGE_CA_CERTIFICATES

  91. permission:android.permission.MANAGE_NETWORK_POLICY

  92. permission:android.permission.WRITE_GSERVICES

  93. permission:android.permission.FREEZE_SCREEN

  94. permission:android.permission.BIND_WALLPAPER

  95. permission:android.permission.BIND_REMOTEVIEWS

  96. permission:android.permission.TEMPORARY_ENABLE_ACCESSIBILITY

  97. permission:android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY


adb shell pm list permission-groups




  1. C:\Users\Administrator


    >


    adb shell pm list permission-groups


  2. permission group:android.permission-group.DEVELOPMENT_TOOLS

  3. permission group:android.permission-group.CALENDAR

  4. permission group:android.permission-group.AFFECTS_BATTERY

  5. permission group:android.permission-group.STATUS_BAR

  6. permission group:android.permission-group.DISPLAY

  7. permission group:android.permission-group.CAMERA

  8. permission group:android.permission-group.COST_MONEY

  9. permission group:android.permission-group.NETWORK

  10. permission group:android.permission-group.MICROPHONE

  11. permission group:android.permission-group.SCREENLOCK

  12. permission group:android.permission-group.AUDIO_SETTINGS

  13. permission group:android.permission-group.VOICEMAIL

  14. permission group:android.permission-group.SYNC_SETTINGS

  15. permission group:android.permission-group.APP_INFO

  16. permission group:android.permission-group.SOCIAL_INFO

  17. permission group:android.permission-group.LOCATION

  18. permission group:android.permission-group.DEVICE_ALARMS

  19. permission group:android.permission-group.PHONE_CALLS

  20. permission group:android.permission-group.SYSTEM_TOOLS

  21. permission group:android.permission-group.USER_DICTIONARY

  22. permission group:android.permission-group.BLUETOOTH_NETWORK

  23. permission group:android.permission-group.SYSTEM_CLOCK

  24. permission group:android.permission-group.MESSAGES

  25. permission group:android.permission-group.STORAGE

  26. permission group:android.permission-group.ACCESSIBILITY_FEATURES

  27. permission group:android.permission-group.WRITE_USER_DICTIONARY

  28. permission group:android.permission-group.PERSONAL_INFO

  29. permission group:android.permission-group.WALLPAPER

  30. permission group:android.permission-group.BOOKMARKS

  31. permission group:android.permission-group.ACCOUNTS

  32. permission group:android.permission-group.HARDWARE_CONTROLS