patrace使用

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
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值