资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

关于如何知道一个安装的apk的主activity

关于如何查找知道一个安装的apk的主activity

关于如何查找知道一个安装的apk的主activity,从而命令行进行am start的方法:
$ adb install /media/neil/neil/temp/com-futuremark-dmandroid-application.apk
7059 KB/s (28784923 bytes in 3.982s)
Success
$

我们提供的服务有:网站制作、成都网站制作、微信公众号开发、网站优化、网站认证、泾县ssl等。为近千家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的泾县网站制作公司

$ adb shell dumpsys| grep futuremark //通过特定的文件名,大概猜测包名的特定关键字。
#111: act=android.intent.action.PACKAGE_ADDED dat=package:com.futuremark.dmandroid.application flg=0x4000010 (has extras)
#113: act=android.intent.action.PACKAGE_ADDED dat=package:com.futuremark.dmandroid.application flg=0x4000010 (has extras)
1556108774708 : com.futuremark.dmandroid.application
^C
$ adb shell dumpsys packagecom.futuremark.dmandroid.application
Activity Resolver Table:
Non-Data Actions:
android.intent.action.MAIN:
acb1b01 com.futuremark.dmandroid.application/.activity.MainActivity filter fee03ab //注意带MAIN 和带LAUNCHER字样的地方。
Action: "android.intent.action.MAIN"
e7afda6 com.futuremark.dmandroid.application/.activity.SplashPageActivity filter eb7da08
Action: "android.intent.action.MAIN"
Category: "android.intent.category.LAUNCHER"
Category: "android.intent.category.LEANBACK_LAUNCHER"

Registered ContentProviders:
com.futuremark.dmandroid.application/.util.LocalFileContentProvider:
Provider{80ac3e7 com.futuremark.dmandroid.application/.util.LocalFileContentProvider}

ContentProvider Authorities:
[.localfile]:
Provider{80ac3e7 com.futuremark.dmandroid.application/.util.LocalFileContentProvider}
applicationInfo=ApplicationInfo{feffb94 com.futuremark.dmandroid.application}

Key Set Manager:
[com.futuremark.dmandroid.application]
Signing KeySets: 7

Packages:
Package [com.futuremark.dmandroid.application] (4d663d):
userId=10053
pkg=Package{6494e32 com.futuremark.dmandroid.application}
codePath=/data/app/com.futuremark.dmandroid.application-JG_5Iaj56q2Q-7WupdvVFw==
resourcePath=/data/app/com.futuremark.dmandroid.application-JG_5Iaj56q2Q-7WupdvVFw==
legacyNativeLibraryDir=/data/app/com.futuremark.dmandroid.application-JG_5Iaj56q2Q-7WupdvVFw==/lib
primaryCpuAbi=armeabi-v7a
secondaryCpuAbi=null
versionCode=3428 minSdk=14 targetSdk=21
versionName=1.6.3428
splits=[base]
apkSigningVersion=1
applicationInfo=ApplicationInfo{feffb94 com.futuremark.dmandroid.application}
flags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP ]
dataDir=/data/user/0/com.futuremark.dmandroid.application
supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
timeStamp=2019-04-24 20:26:09
firstInstallTime=2019-04-24 20:26:12
lastUpdateTime=2019-04-24 20:26:12
signatures=PackageSignatures{fb5b783 [7bdaa371]}
installPermissionsFixed=true installStatus=1
pkgFlags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP ]
requested permissions:
android.permission.INTERNET
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.GET_ACCOUNTS
android.permission.WAKE_LOCK
com.android.vending.CHECK_LICENSE
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_WIFI_STATE
android.permission.READ_EXTERNAL_STORAGE
install permissions:
android.permission.INTERNET: granted=true
android.permission.READ_EXTERNAL_STORAGE: granted=true
android.permission.ACCESS_NETWORK_STATE: granted=true
android.permission.GET_ACCOUNTS: granted=true
android.permission.WRITE_EXTERNAL_STORAGE: granted=true
android.permission.ACCESS_WIFI_STATE: granted=true
android.permission.WAKE_LOCK: granted=true
User 0: ceDataInode=115169 installed=true hidden=false suspended=false stopped=true notLaunched=true enabled=0 instant=false virtual=false
overlay paths:
/vendor/overlay/framework-resauto_generated_rro.apk
gids=[1023, 1015, 3003]
runtime permissions:**

Package Changes:
Sequence number=22
User 0:
seq=1, package=com.android.provision
seq=3, package=com.android.nfc
seq=4, package=com.koushikdutta.vysor
seq=19, package=com.android.settings
seq=20, package=com.futuremark.dmandroid.application
seq=21, package=com.aurorasoftworks.quadrant.ui.professional

Dexopt state:
[com.futuremark.dmandroid.application]
path: /data/app/com.futuremark.dmandroid.application-JG_5Iaj56q2Q-7WupdvVFw==/base.apk
arm: /data/app/com.futuremark.dmandroid.application-JG_5Iaj56q2Q-7WupdvVFw==/oat/arm/base.odex[status=kOatUpToDate
, compilation_filter=quicken]

Compiler stats:
[com.futuremark.dmandroid.application]
base.apk - 2120
$

$ adb shell am start -n com.futuremark.dmandroid.application/.activity.MainActivity
Starting: Intent { cmp=com.futuremark.dmandroid.application/.activity.MainActivity }
$

另外我的相关培训视频请看:
欢迎观看我发布的各个课程: https://edu.51cto.com/lecturer/8896847.html

我的新的更多优惠的打包课程链接如下:
https://edu.51cto.com/sd/0a9d4


当前名称:关于如何知道一个安装的apk的主activity
标题链接:http://cdkjz.cn/article/gedesc.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220