Android常用コマンド

5419 ワード

apkの権限の表示
aapt d permissions xxx.apk

eg:

tomlucky@tomdeMacBook-Pro ~ $ aapt d permissions /Users/tomlucky/Downloads/com.facebook.katana_51361700.apk 
package: com.facebook.katana
uses-permission-sdk-23: name='android.permission.READ_CONTACTS'
uses-permission-sdk-23: name='android.permission.WRITE_CONTACTS'
uses-permission-sdk-23: name='android.permission.BLUETOOTH'
uses-permission-sdk-23: name='android.permission.BLUETOOTH_ADMIN'
uses-permission-sdk-23: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission-sdk-23: name='android.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.READ_CONTACTS'
uses-permission: name='android.permission.WRITE_CONTACTS'
uses-permission: name='android.permission.GET_ACCOUNTS'
uses-permission: name='android.permission.MANAGE_ACCOUNTS'
uses-permission: name='android.permission.AUTHENTICATE_ACCOUNTS'
uses-permission: name='android.permission.READ_SYNC_SETTINGS'
uses-permission: name='android.permission.WRITE_SYNC_SETTINGS'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.BROADCAST_STICKY'
uses-permission: name='com.facebook.katana.provider.ACCESS'
uses-permission: name='com.facebook.orca.provider.ACCESS'
uses-permission: name='com.facebook.mlite.provider.ACCESS'
uses-permission: name='com.facebook.pages.app.provider.ACCESS'
uses-permission: name='android.permission.DOWNLOAD_WITHOUT_NOTIFICATION'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.RECORD_AUDIO'
uses-permission: name='com.google.android.gms.permission.ACTIVITY_RECOGNITION'
permission: com.facebook.katana.provider.ACCESS
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
permission: com.facebook.permission.prod.FB_APP_COMMUNICATION
uses-permission: name='com.facebook.permission.prod.FB_APP_COMMUNICATION'
permission: com.facebook.permission.prod.SYSTEM_COMMUNICATION
uses-permission: name='com.facebook.permission.prod.SYSTEM_COMMUNICATION'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.READ_CALENDAR'
uses-permission: name='android.permission.WRITE_CALENDAR'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
uses-permission: name='android.permission.READ_PROFILE'
uses-permission: name='android.permission.READ_SMS'
uses-permission: name='android.permission.CHANGE_NETWORK_STATE'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='com.google.android.providers.gsf.permission.READ_GSERVICES'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.REQUEST_INSTALL_PACKAGES'
permission: com.facebook.katana.permission.CROSS_PROCESS_BROADCAST_MANAGER
uses-permission: name='com.facebook.katana.permission.CROSS_PROCESS_BROADCAST_MANAGER'
uses-permission: name='android.permission.BATTERY_STATS'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='com.android.launcher.permission.INSTALL_SHORTCUT'
permission: com.facebook.receiver.permission.ACCESS
uses-permission: name='com.facebook.receiver.permission.ACCESS'
uses-permission: name='com.sec.android.provider.badge.permission.READ'
uses-permission: name='com.sec.android.provider.badge.permission.WRITE'
uses-permission: name='com.htc.launcher.permission.READ_SETTINGS'
uses-permission: name='com.htc.launcher.permission.UPDATE_SHORTCUT'
uses-permission: name='com.sonyericsson.home.permission.BROADCAST_BADGE'
uses-permission: name='com.facebook.home.permission.WRITE_BADGES'
uses-permission-sdk-23: name='android.permission.BLUETOOTH'
uses-permission-sdk-23: name='android.permission.BLUETOOTH_ADMIN'
permission: com.facebook.katana.permission.RECEIVE_ADM_MESSAGE
uses-permission: name='com.facebook.katana.permission.RECEIVE_ADM_MESSAGE'
uses-permission: name='com.amazon.device.messaging.permission.RECEIVE'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
permission: com.facebook.katana.permission.C2D_MESSAGE
uses-permission: name='com.facebook.katana.permission.C2D_MESSAGE'
uses-permission: name='com.nokia.pushnotifications.permission.RECEIVE'
tomlucky@tomdeMacBook-Pro ~ $ aapt d permissions /Users/tomlucky/Downloads/com.facebook.katana_51361700.apk | grep ALERT
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
tomlucky@tomdeMacBook-Pro ~ $