trace
tip1:获取package name: 运行程序后
top -m 5
tip2: 如何找到adb启动命令
① android studio中clear,启动app,以“packagename”过滤,找到第一行
② adb shell里logcat -c清除日志之后,打开app,grep for packagename
1. 抖音
com.ss.android.ugc.aweme
每次启动后,在adb shell里
setprop security.perf_harden 0
setenforce 0
启动抖音
adb shell am start -n com.ss.android.ugc.aweme/.splash.SplashActivity
关闭抖音进程
adb shell am force-stop com.ss.android.ugc.aweme
2. 王者荣耀
com.tencent.tmgp.sgame
启动
adb shell am start -n com.tencent.tmgp.sgame/com.tencent.tmgp.sgame.SGameActivity
关闭进程
adb shell am force-stop com.tencent.tmgp.sgame
会遇到的问题
1|OP4ADD:/ # sudo echo com.tencent.tmgp.sgame>>/system/lib/egl/appList.cfg
/system/bin/sh: can't create /system/lib/egl/appList.cfg: Read-only file system
原因:需要重新挂载
解决方案: remount
3. 和平精英
com.tencent.tmgp.pubgmhd
启动
adb shell am start -n com.tencent.tmgp.pubgmhd/com.epicgames.ue4.SplashActivity
结束进程
adb shell am force-stop com.tencent.tmgp.pubgmhd
4. 穿越火线
com.tencent.tmgp.cf
启动
adb shell am start -n com.tencent.tmgp.cf/com.tencent.tmgp.cf.AFMainActivity
结束
adb shell am force-stop com.tencent.tmgp.cf
5. 英雄联盟
com.tencent.lolm
启动
adb shell am start -n com.tencent.lolm/.lgame
结束
adb shell am force-stop com.tencent.lolm
6. 快手
com.smile.gifmaker
启动
adb shell am start -n com.smile.gifmaker/com.yxcorp.gifshow.HomeActivity
结束
adb shell force-stop com.smile.gifmaker