重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

关于如何知道一个安装的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
$

创新互联是一家业务范围包括IDC托管业务,雅安服务器托管、主机租用、主机托管,四川、重庆、广东电信服务器租用,服务器托管,成都网通服务器托管,成都服务器租用,业务范围遍及中国大陆、港澳台以及欧美等多个国家及地区的互联网数据服务公司。

$ 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 package com.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

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前标题:关于如何知道一个安装的apk的主activity-创新互联
本文网址:http://cqcxhl.cn/article/giisi.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP