aapt: Android Asset Packaging Tool

  1. 获取Activity 与包名 aapt d[ump] badging *.apk

aapt dump badging F:\home\Lagou_Practise_TestProjiect\app\com.alpha.lagouapk_7.2.1_liqucn.com.apk

name=‘com.alpha.lagouapk’
launchable-activity: name=‘com.alpha.lagouapk.HelloActivity’

C:\Users\shifangqin>aapt dump badging F:\home\Lagou_Practise_TestProjiect\app\com.alpha.lagouapk_7.2.1_liqucn.com.apk
package: name='com.alpha.lagouapk' versionCode='70202' versionName='7.2.1' platformBuildVersionName='8.0.0'
sdkVersion:'15'
targetSdkVersion:'21'
.......
launchable-activity: name='com.alpha.lagouapk.HelloActivity'  label='' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature: name='android.hardware.camera.autofocus'
  uses-feature: name='android.hardware.faketouch'

strings Print the contents of the resource table string pool in the APK.
badging Print the label and icon for the app declared in APK.
permissions Print the permissions from the APK.
resources Print the resource table from the APK.
configurations Print the configurations in the APK.
xmltree Print the compiled xmls in the given assets.
xmlstrings Print the strings of the given compiled xml assets.

你可能感兴趣的:(Android)