Android 获取apk权限

Android 获取apk权限

 

通过 aapt 工具查看 APK权限

 aapt 工具,在sdk的build-tools下

命令:aapt d permissions apk路径

 

例如:

C:\Users\zh>adb pull /system/priv-app/Settings .
/system/priv-app/Settings/: 3 files pulled. 10.8 MB/s (48840608 bytes in 4.325s)
 
C:\Users\zh>aapt d permissions  C:\Users\zh\Settings\Settings.apk
package: com.android.settings
uses-permission: name='android.permission.REQUEST_NETWORK_SCORES'
uses-permission: name='android.permission.WRITE_MEDIA_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.WRITE_SECURE_SETTINGS'
uses-permission: name='android.permission.DEVICE_POWER'
uses-permission: name='android.permission.CHANGE_CONFIGURATION'
uses-permission: name='android.permission.MOUNT_UNMOUNT_FILESYSTEMS'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.BLUETOOTH'
uses-permission: name='android.permission.BLUETOOTH_ADMIN'
uses-permission: name='android.permission.BLUETOOTH_PRIVILEGED'
uses-permission: name='android.permission.NFC'
uses-permission: name='android.permission.HARDWARE_TEST'
uses-permission: name='android.permission.CALL_PHONE'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
uses-permission: name='android.permission.MASTER_CLEAR'
uses-permission: name='com.google.android.googleapps.permission.GOOGLE_AUTH'
uses-permission: name='android.permission.ACCESS_DOWNLOAD_MANAGER'
uses-permission: name='android.permission.READ_CONTACTS'
uses-permission: name='android.permission.WRITE_CONTACTS'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.ACCESS_WIMAX_STATE'
uses-permission: name='android.permission.CHANGE_WIMAX_STATE'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='com.android.certinstaller.INSTALL_AS_USER'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
uses-permission: name='android.permission.TETHER_PRIVILEGED'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.CLEAR_APP_USER_DATA'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.MODIFY_PHONE_STATE'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.WRITE_APN_SETTINGS'
uses-permission: name='android.permission.ACCESS_CHECKIN_PROPERTIES'
uses-permission: name='android.permission.READ_USER_DICTIONARY'
uses-permission: name='android.permission.WRITE_USER_DICTIONARY'
uses-permission: name='android.permission.FORCE_STOP_PACKAGES'
uses-permission: name='android.permission.PACKAGE_USAGE_STATS'
uses-permission: name='android.permission.BATTERY_STATS'
uses-permission: name='com.android.launcher.permission.READ_SETTINGS'
uses-permission: name='com.android.launcher.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.MOVE_PACKAGE'
uses-permission: name='android.permission.USE_CREDENTIALS'
uses-permission: name='android.permission.BACKUP'
uses-permission: name='android.permission.READ_SYNC_STATS'
uses-permission: name='android.permission.READ_SYNC_SETTINGS'
uses-permission: name='android.permission.WRITE_SYNC_SETTINGS'
uses-permission: name='android.permission.STATUS_BAR'
uses-permission: name='android.permission.MANAGE_USB'
uses-permission: name='android.permission.SET_POINTER_SPEED'
uses-permission: name='android.permission.SET_KEYBOARD_LAYOUT'
uses-permission: name='android.permission.INTERACT_ACROSS_USERS_FULL'
uses-permission: name='android.permission.COPY_PROTECTED_DATA'
uses-permission: name='android.permission.MANAGE_USERS'
uses-permission: name='android.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS'
uses-permission: name='android.permission.READ_PROFILE'
uses-permission: name='android.permission.CONFIGURE_WIFI_DISPLAY'
uses-permission: name='android.permission.CONFIGURE_DISPLAY_COLOR_MODE'
uses-permission: name='android.permission.SET_TIME'
uses-permission: name='android.permission.ACCESS_NOTIFICATIONS'
uses-permission: name='android.permission.REBOOT'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.MANAGE_DEVICE_ADMINS'
uses-permission: name='android.permission.READ_SEARCH_INDEXABLES'
uses-permission: name='android.permission.OEM_UNLOCK_STATE'
uses-permission: name='android.permission.MANAGE_USER_OEM_UNLOCK_STATE'
uses-permission: name='android.permission.OVERRIDE_WIFI_CONFIG'
uses-permission: name='android.permission.USE_FINGERPRINT'
uses-permission: name='android.permission.MANAGE_FINGERPRINT'
uses-permission: name='android.permission.USER_ACTIVITY'
uses-permission: name='android.permission.CHANGE_APP_IDLE_STATE'
uses-permission: name='android.permission.PEERS_MAC_ADDRESS'
uses-permission: name='android.permission.MANAGE_NOTIFICATIONS'
uses-permission: name='android.permission.DELETE_PACKAGES'
uses-permission: name='android.permission.MANAGE_APP_OPS_RESTRICTIONS'
uses-permission: name='android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS'
uses-permission: name='android.permission.READ_PRINT_SERVICES'
uses-permission: name='android.permission.NETWORK_SETTINGS'
 
C:\Users\zh>

参考:

https://www.cnblogs.com/onelikeone/p/9304629.html

https://www.cnblogs.com/newliu/p/9019378.html

 

安卓APK软件权限一览表

https://blog.csdn.net/shanshan_blog/article/details/52994325

你可能感兴趣的:(android-utils)