当前位置:   article > 正文

Android-获取apk的包名以及入口Activity_android 获取入口activity

android 获取入口activity

环境准备:

  • Android SDK
  • apk包(这里我下载了一个华为应用市场)

步骤

  • 打开终端,进入到Android Sdk/build-tools/27.0.1

  • 执行命令。我的是linux系统,如果是window系统,要把命令中的aapt替换成aapt.exe。

./aapt dump badging '/home/huanglin/下载/com.huawei.appmarket.1804261101.apk'
  • 1
  • 屏幕会输出以下内容
    包名在:package: name='com.huawei.appmarket' versionCode='80004301'
    入口Activity在:launchable-activity: name='com.huawei.appmarket.MainActivity'
package: name='com.huawei.appmarket' versionCode='80004301' versionName='8.0.4.301' platformBuildVersionName='7.1.1'
sdkVersion:'17'
targetSdkVersion:'23'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.MOUNT_UNMOUNT_FILESYSTEMS'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='com.huawei.permission.sec.MDM.v2'
uses-permission: name='android.permission.STOP_APP_SWITCHES'
uses-permission: name='android.permission.PACKAGE_USAGE_STATS'
uses-permission: name='android.permission.WRITE_APN_SETTINGS'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='com.huawei.systemmanager.permission.APPLY_TRIM_POLICY'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.GET_PACKAGE_SIZE'
uses-permission: name='android.permission.EXPAND_STATUS_BAR'
uses-permission: name='com.android.permission.RECV_HUAWEI'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.SYSTEM_OVERLAY_WINDOW'
uses-permission: name='android.permission.READ_SECURE_SETTINGS'
uses-permission: name='android.permission.READ_SETTINGS'
uses-permission: name='com.android.permission.system_manager_interface'
uses-permission: name='com.huawei.systemmanager.permission.ACCESS_INTERFACE'
uses-permission: name='android.permission.REAL_GET_TASKS'
uses-permission: name='android.permission.REORDER_TASKS'
uses-permission: name='com.huawei.parentcontrol.permission.provider'
uses-permission: name='huawei.android.permission.HW_SIGNATURE_OR_SYSTEM'
uses-permission: name='android.permission.INTERACT_ACROSS_USERS'
uses-permission: name='android.permission.MANAGE_USERS'
uses-permission: name=
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/178118
推荐阅读
相关标签
  

闽ICP备14008679号