1.adb logcat -v time -s ActivityManager:I
获取包名和activity
2. adb logcat "ActivityManager" |grep "Displayed"
直接调用app中的一个feature
3. adb shell dumpsys activity |grep mFocusedActivity
启动appactivity
4. adb shell am start -n com.hawk.security/com.tcl.security.SplashActivity
启动app
5. adb shell am force-stop cn.com.conversant.swiftsync.android
强制关闭app
6. adb install -r Android-gateway-nightly.apk
如果安装apk到rom中,提示 “exsit 。。。” 的提示信息,可以加上 - r 参数 ,可以替换原有的apk
adb install -l Android-gateway-nightly.apk
锁定该程序
adb install -s Android-gateway-nightly.apk
安装在SD卡内,而不是设备内部存储
adb uninstall -k package
从设备删除程序包 -k 不删除程序运行锁产生的数据和缓存目录(如软件的数据库文件)
7. adb shell pm clear com.cvte.health
可以清除 某个包apk的数据,就是相当于清除数据