获取应用包名及入口activity的方法

1.使用sdk中的工具:aapt.exe
假如我有一个应用,名为dingding.exe
1.cmd-打开命令行
2.切换到aapt相应的位置
3.运行:aapt dump badging D:\dingding.apk
4.package: name=’com.alibaba.android.rimet’ 包名
launchable-activity: name='com.alibaba.android.rimet.biz.SplashActivity' 启动页
同时还能查到一些权限之类的

package: name='com.alibaba.android.rimet'
versionCode='436'
versionName='3.5.3'
platformBuildVersionName='6.0-2166767'
sdkVersion:'14'
targetSdkVersion:'21'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.READ_CONTACTS'
uses-permission: name='android.permission.WRITE_CONTACTS'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.RECORD_AUDIO'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
uses-permission: name='android.permission.ACCESS_COARSE_UPDATES'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.CALL_PHONE'
uses-permission: name='android.permission.RECEIVE_USER_PRESENT'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.BLUETOOTH'
optional-permission: name='android.permission.BLUETOOTH'
uses-permission: name='android.permission.BLUETOOTH_ADMIN'
optional-permission: name='android.permission.BLUETOOTH_ADMIN'
uses-permission: name='android.permission.NFC'
uses-permission: name='android.permission.READ_CALENDAR'
uses-permission: name='com.huawei.android.launcher.permission.CHANGE_BADGE'
uses-permission: name='com.huawei.android.launcher.permission.READ_SETTINGS'
uses-permission: name='com.huawei.android.launcher.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.GET_ACCOUNTS'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='com.alibaba.android.rimet.permission.MIPUSH_RECEIVE'
uses-permission: name='android.permission.READ_SYNC_SETTINGS'
uses-permission: name='android.permission.WRITE_SYNC_SETTINGS'
uses-permission: name='android.permission.AUTHENTICATE_ACCOUNTS'
uses-permission: name='com.android.launcher.permission.INSTALL_SHORTCUT'
uses-permission: name='com.android.launcher.permission.READ_SETTINGS'
uses-permission: name='com.android.launcher.permission.WRITE_SETTINGS'
uses-permission: name='com.android.launcher2.permission.INSTALL_SHORTCUT'
uses-permission: name='com.android.launcher2.permission.READ_SETTINGS'
uses-permission: name='com.android.launcher2.permission.WRITE_SETTINGS'
uses-permission: name='com.android.launcher3.permission.READ_SETTINGS'
uses-permission: name='com.android.launcher3.permission.WRITE_SETTINGS'
uses-permission: name='org.adw.launcher.permission.READ_SETTINGS'
uses-permission: name='org.adw.launcher.permission.WRITE_SETTINGS'
uses-permission: name='com.htc.launcher.permission.READ_SETTINGS'
uses-permission: name='com.htc.launcher.permission.WRITE_SETTINGS'
uses-permission: name='com.qihoo360.launcher.permission.READ_SETTINGS'
uses-permission: name='com.qihoo360.launcher.permission.WRITE_SETTINGS'
uses-permission: name='com.lge.launcher.permission.READ_SETTINGS'
uses-permission: name='com.lge.launcher.permission.WRITE_SETTINGS'
uses-permission: name='net.qihoo.launcher.permission.READ_SETTINGS'
uses-permission: name='net.qihoo.launcher.permission.WRITE_SETTINGS'
uses-permission: name='org.adwfreak.launcher.permission.READ_SETTINGS'
uses-permission: name='org.adwfreak.launcher.permission.WRITE_SETTINGS'
uses-permission: name='org.adw.launcher_donut.permission.READ_SETTINGS'
uses-permission: name='org.adw.launcher_donut.permission.WRITE_SETTINGS'
uses-permission: name='com.huawei.launcher3.permission.READ_SETTINGS'
uses-permission: name='com.huawei.launcher3.permission.WRITE_SETTINGS'
uses-permission: name='com.fede.launcher.permission.READ_SETTINGS'
uses-permission: name='com.fede.launcher.permission.WRITE_SETTINGS'
uses-permission: name='com.sec.android.app.twlauncher.settings.READ_SETTINGS'
uses-permission: name='com.sec.android.app.twlauncher.settings.WRITE_SETTINGS'
uses-permission: name='com.anddoes.launcher.permission.READ_SETTINGS'
uses-permission: name='com.anddoes.launcher.permission.WRITE_SETTINGS'
uses-permission: name='com.tencent.qqlauncher.permission.READ_SETTINGS'
uses-permission: name='com.tencent.qqlauncher.permission.WRITE_SETTINGS'
uses-permission: name='com.huawei.launcher2.permission.READ_SETTINGS'
uses-permission: name='com.huawei.launcher2.permission.WRITE_SETTINGS'
uses-permission: name='com.android.mylauncher.permission.READ_SETTINGS'
uses-permission: name='com.android.mylauncher.permission.WRITE_SETTINGS'
uses-permission: name='com.ebproductions.android.launcher.permission.READ_SETTIN
GS'
uses-permission: name='com.ebproductions.android.launcher.permission.WRITE_SETTI
NGS'
uses-permission: name='com.oppo.launcher.permission.READ_SETTINGS'
uses-permission: name='com.oppo.launcher.permission.WRITE_SETTINGS'
uses-permission: name='telecom.mdesk.permission.READ_SETTINGS'
uses-permission: name='telecom.mdesk.permission.WRITE_SETTINGS'
uses-permission: name='dianxin.permission.ACCESS_LAUNCHER_DATA'
uses-permission: name='com.android.launcher.permission.UNINSTALL_SHORTCUT'
uses-permission: name='android.permission.RECORD_VIDEO'
uses-permission: name='android.permission.FLASHLIGHT'
uses-permission: name='android.permission.READ_CALL_LOG'
uses-permission: name='android.permission.WRITE_CALL_LOG'
uses-permission: name='android.permission.SEND_SMS'
uses-permission: name='android.permission.CHANGE_CONFIGURATION'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='com.alibaba.android.rimet.permission.C2D_MESSAGE'
application-label-af:'閽夐拤'
application-label-am:'閽夐拤'
application-label-ar:'閽夐拤'
application-label-az:'閽夐拤'
application-label-az-AZ:'閽夐拤'
application-label-be:'閽夐拤'
application-label-bg:'閽夐拤'
application-label-bn:'閽夐拤'
application-label-bn-BD:'閽夐拤'
application-label-bs:'閽夐拤'
application-label-ca:'閽夐拤'
application-label-cs:'閽夐拤'
application-label-da:'閽夐拤'
application-label-de:'閽夐拤'
application-label-el:'閽夐拤'
application-label-en:'DingTalk'
application-label-en-AU:'DingTalk'
application-label-en-GB:'DingTalk'
application-label-en-IN:'DingTalk'
application-label-en-US:'DingTalk'
application-label-es:'閽夐拤'
application-label-es-US:'閽夐拤'
application-label-et:'閽夐拤'
application-label-et-EE:'閽夐拤'
application-label-eu:'閽夐拤'
application-label-eu-ES:'閽夐拤'
application-label-fa:'閽夐拤'
application-label-fi:'閽夐拤'
application-label-fr:'閽夐拤'
application-label-fr-CA:'閽夐拤'
application-label-gl:'閽夐拤'
application-label-gl-ES:'閽夐拤'
application-label-gu:'閽夐拤'
application-label-gu-IN:'閽夐拤'
application-label-hi:'閽夐拤'
application-label-hr:'閽夐拤'
application-label-hu:'閽夐拤'
application-label-hy:'閽夐拤'
application-label-hy-AM:'閽夐拤'
application-label-in:'閽夐拤'
application-label-is:'閽夐拤'
application-label-is-IS:'閽夐拤'
application-label-it:'閽夐拤'
application-label-iw:'閽夐拤'
application-label-ja:'閽夐拤'
application-label-ka:'閽夐拤'
application-label-ka-GE:'閽夐拤'
application-label-kk:'閽夐拤'
application-label-kk-KZ:'閽夐拤'
application-label-km:'閽夐拤'
application-label-km-KH:'閽夐拤'
application-label-kn:'閽夐拤'
application-label-kn-IN:'閽夐拤'
application-label-ko:'閽夐拤'
application-label-ky:'閽夐拤'
application-label-ky-KG:'閽夐拤'
application-label-lo:'閽夐拤'
application-label-lo-LA:'閽夐拤'
application-label-lt:'閽夐拤'
application-label-lv:'閽夐拤'
application-label-mk:'閽夐拤'
application-label-mk-MK:'閽夐拤'
application-label-ml:'閽夐拤'
application-label-ml-IN:'閽夐拤'
application-label-mn:'閽夐拤'
application-label-mn-MN:'閽夐拤'
application-label-mr:'閽夐拤'
application-label-mr-IN:'閽夐拤'
application-label-ms:'閽夐拤'
application-label-ms-MY:'閽夐拤'
application-label-my:'閽夐拤'
application-label-my-MM:'閽夐拤'
application-label-nb:'閽夐拤'
application-label-ne:'閽夐拤'
application-label-ne-NP:'閽夐拤'
application-label-nl:'閽夐拤'
application-label-pa:'閽夐拤'
application-label-pa-IN:'閽夐拤'
application-label-pl:'閽夐拤'
application-label-pt:'閽夐拤'
application-label-pt-BR:'閽夐拤'
application-label-pt-PT:'閽夐拤'
application-label-ro:'閽夐拤'
application-label-ru:'閽夐拤'
application-label-si:'閽夐拤'
application-label-si-LK:'閽夐拤'
application-label-sk:'閽夐拤'
application-label-sl:'閽夐拤'
application-label-sq:'閽夐拤'
application-label-sq-AL:'閽夐拤'
application-label-sr:'閽夐拤'
application-label-sv:'閽夐拤'
application-label-sw:'閽夐拤'
application-label-ta:'閽夐拤'
application-label-ta-IN:'閽夐拤'
application-label-te:'閽夐拤'
application-label-te-IN:'閽夐拤'
application-label-th:'閽夐拤'
application-label-tl:'閽夐拤'
application-label-tr:'閽夐拤'
application-label-uk:'閽夐拤'
application-label-ur:'閽夐拤'
application-label-ur-PK:'閽夐拤'
application-label-uz:'閽夐拤'
application-label-uz-UZ:'閽夐拤'
application-label-vi:'閽夐拤'
application-label-zh:'閽夐拤'
application-label-zh-CN:'閽夐拤'
application-label-zh-HK:'閲橀嚇'
application-label-zh-TW:'閲橀嚇'
application-label-zu:'閽夐拤'
application-icon-120:'res/drawable-hdpi-v4/desktop_launch_icon.png'
application-icon-160:'res/drawable-hdpi-v4/desktop_launch_icon.png'
application-icon-213:'res/drawable-hdpi-v4/desktop_launch_icon.png'
application-icon-240:'res/drawable-hdpi-v4/desktop_launch_icon.png'
application-icon-320:'res/drawable-xhdpi-v4/desktop_launch_icon.png'
application-icon-480:'res/drawable-xxhdpi-v4/desktop_launch_icon.png'
application-icon-640:'res/drawable-xxxhdpi-v4/desktop_launch_icon.png'
application-icon-65535:'res/drawable-xxxhdpi-v4/desktop_launch_icon.png'
application: label='閽夐拤' icon='res/drawable-hdpi-v4/desktop_launch_icon.png'
launchable-activity: name='com.alibaba.android.rimet.biz.SplashActivity'
label=
'' icon=''
feature-group: label=''
uses-gl-es: '0x20000'
uses-feature: name='android.hardware.camera'
uses-feature: name='android.hardware.camera.autofocus'
uses-feature: name='android.hardware.camera.flash'
uses-feature-not-required: name='android.hardware.camera.front'
uses-feature-not-required: name='android.hardware.camera.front.autofocus'
uses-feature-not-required: name='android.hardware.sensor.stepcounter'
uses-feature-not-required: name='android.hardware.sensor.stepdetector'
uses-feature: name='android.hardware.bluetooth'
uses-implied-feature: name='android.hardware.bluetooth' reason='requested andr
oid.permission.BLUETOOTH permission, requested android.permission.BLUETOOTH_ADMI
N permission, and targetSdkVersion > 4'
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default featur
e for all apps'
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested andro
id.permission.ACCESS_COARSE_LOCATION permission, and requested android.permissio
n.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.microphone'
uses-implied-feature: name='android.hardware.microphone' reason='requested and
roid.permission.RECORD_AUDIO permission'
uses-feature: name='android.hardware.screen.landscape'
uses-implied-feature: name='android.hardware.screen.landscape' reason='one or
more activities have specified a landscape orientation'
uses-feature: name='android.hardware.screen.portrait'
uses-implied-feature: name='android.hardware.screen.portrait' reason='one or m
ore activities have specified a portrait orientation'
uses-feature: name='android.hardware.telephony'
uses-implied-feature: name='android.hardware.telephony' reason='requested a te
lephony permission'
uses-feature: name='android.hardware.wifi'
uses-implied-feature: name='android.hardware.wifi' reason='requested android.p
ermission.ACCESS_WIFI_STATE permission, and requested android.permission.CHANGE_
WIFI_STATE permission'
provides-component:'search'
main
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: 'af' 'am' 'ar' 'az' 'az-AZ' 'be' 'bg' 'bn' 'bn-BD' 'bs' 'ca' 'cs' 'da'
'de' 'el' 'en' 'en-AU' 'en-GB' 'en-IN' 'en-US' 'es' 'es-US' 'et' 'et-EE' 'eu' 'e
u-ES' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gl-ES' 'gu' 'gu-IN' 'hi' 'hr' 'hu' 'hy' 'hy-A
M' 'in' 'is' 'is-IS' 'it' 'iw' 'ja' 'ka' 'ka-GE' 'kk' 'kk-KZ' 'km' 'km-KH' 'kn'
'kn-IN' 'ko' 'ky' 'ky-KG' 'lo' 'lo-LA' 'lt' 'lv' 'mk' 'mk-MK' 'ml' 'ml-IN' 'mn'
'mn-MN' 'mr' 'mr-IN' 'ms' 'ms-MY' 'my' 'my-MM' 'nb' 'ne' 'ne-NP' 'nl' 'pa' 'pa-I
N' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'si-LK' 'sk' 'sl' 'sq' 'sq-AL' 'sr'
'sv' 'sw' 'ta' 'ta-IN' 'te' 'te-IN' 'th' 'tl' 'tr' 'uk' 'ur' 'ur-PK' 'uz' 'uz-UZ
' 'vi' 'zh' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '120' '160' '213' '240' '320' '480' '640' '65535'
native-code: 'armeabi' 'x86'

你可能感兴趣的:(获取应用包名及入口activity的方法)