赞
踩
关于如何查找知道一个安装的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
$
$ 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 //注意带
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。