Using the SDK to view the apk file a simple message: the package name, version

Use SDK See apk file simple message: package name, version
specific steps:
1. Find the sdk build-tools folder
2, into a version of which is open cmd window in the current folder
3, enter the command: aapt d badging (APK file path, for example:) D: \ WORKFILE \ AirSharing \ AirSharing.apk
. 4, AndroidManifest displayed data, which has a program package name, versionName VersionCode and other relevant data and

Simple example, the complete cmd command:
D: \ the Android \ SDK \ Build-Tools \ 28.0.2> D badging the aapt D: \ WORKFILE \ AirSharing \ AirSharing.apk

View the information as follows:


D:\Android\sdk\build-tools\28.0.2>aapt d badging D:\study\apk\Pass123456789\unsigned.apk
package: name='com.wenzhi.playmusicbackground' versionCode='1' versionName='1.0'
sdkVersion:'23'
targetSdkVersion:'26'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
application-label:'PlayMusicBackground'
。。。
application-label-zu:'PlayMusicBackground'
application-icon-160:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-240:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-320:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-480:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-640:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-65534:'res/mipmap-anydpi-v26/ic_launcher.xml'
application: label='PlayMusicBackground' icon='res/mipmap-anydpi-v26/ic_launcher.xml'
launchable-activity: name='com.wenzhi.playmusicbackground.MainActivity'  label='' 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: '--_--' 'af' 'am' 'ar' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-GB' 'en-IN' 'es' 'es-US' '
et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo
' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 's
r' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '160' '240' '320' '480' '640' '65534'

D:\Android\sdk\build-tools\28.0.2>

There are many online decompilation tool that can get inside to AndroidManifesst file data,
before also used, seems to be required with the use of two tools, there is not demonstrated.

From a apk file, we can get inside the picture resources,
practice is the suffix apk directly into jar, unzip it to get inside the res folder,
but there will be a simple default apk package of confusion,
so we open inside the layout xml and AndroidManifest.xml file are garbled.

SDK tools can be seen by simply apk inside information has been pretty good.

# Encourage each other: because of hard work, not not to far away.

发布了365 篇原创文章 · 获赞 1587 · 访问量 160万+

Guess you like

Origin blog.csdn.net/wenzhi20102321/article/details/94071034