一、配置aapt
打开根目录的 .bash_profile 文件(或者 .zshrc),根据你的实际情况
在里边加入下边的内容保存
AAPT_HOME=/Users/username/Library/Android/sdk/build-tools/25.0.0
export AAPT_HOME
export PATH=$PATH:$AAPT_HOME
保存一下生效一下。
二、查看包名等信息
aapt dump badging your.apk
aapt dump badging demo.apk
package: name='formatfa.xposed.Fdex2' versionCode='1' versionName='1.1' platformBuildVersionName='6.0.1'
sdkVersion:'8'
targetSdkVersion:'21'
application-label:'FDex2'
application-icon-160:'res/drawable-hdpi-v4/icon.png'
application-icon-240:'res/drawable-hdpi-v4/icon.png'
application: label='FDex2' icon='res/drawable-hdpi-v4/icon.png'
application-debuggable
launchable-activity: name='formatfa.xposed.Fdex2.MainActivity' label='FDex2' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '160' '240'
END
网友评论