APK 文件上是否有元数据?
我知道在图像和其他几个文件中存在,但我想知道APK
如果存在,如何阅读?
我在 eclipse 上构建我的应用程序,它是否在导出的APK上存储了有关系统的任何信息?
答案 0 :(得分:2)
您可以尝试aapt dump badging
并查看可以通过解码来获取apk的androidManifest.xml
文件,例如apktool。
在aapt dump badging
上运行je.fit.apk
的示例:
PS C:\Program Files (x86)\Android\android-sdk\build-tools\17.0.0> aapt dump badging je.fit.apk
package: name='je.fit' versionCode='60' versionName='3.5.0109'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission:'android.permission.VIBRATE'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.READ_PHONE_STATE'
uses-permission:'android.permission.ACCESS_WIFI_STATE'
uses-configuration:
uses-gl-es:'0xffffffff'
sdkVersion:'7'
targetSdkVersion:'7'
application-label:'JEFIT'
application-icon-120:'res/drawable-ldpi/icon.png'
application-icon-160:'res/drawable/icon.png'
application-icon-240:'res/drawable-hdpi/icon.png'
application-icon-320:'res/drawable-xhdpi/icon.png'
application: label='JEFIT' icon='res/drawable/icon.png'
launchable-activity: name='je.fit.Jefit' label='JEFIT' icon=''
uses-permission:'android.permission.READ_EXTERNAL_STORAGE'
uses-implied-permission:'android.permission.READ_EXTERNAL_STORAGE','requested WRITE_EXTERNAL_STORAGE'
uses-feature:'android.hardware.wifi'
uses-implied-feature:'android.hardware.wifi','requested android.permission.ACCESS_WIFI_STATE, android.permission.CHANGE_WIFI_STATE, or android.permission.CHANGE
_WIFI_MULTICAST_STATE permission'
uses-feature:'android.hardware.touchscreen'
uses-implied-feature:'android.hardware.touchscreen','assumed you require a touch screen unless explicitly made optional'
uses-feature:'android.hardware.screen.portrait'
uses-implied-feature:'android.hardware.screen.portrait','one or more activities have specified a portrait orientation'
main
other-activities
supports-screens: 'small' 'normal' 'large'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240' '320'