常用工具箱:打开手机日志界面

通用抓日志命令

adb devices
adb root
adb remount
@echo off
set tmp_time=%Time:~0,1%
if x%tmp_time% == x (
set tmp_time=0%Time:~1,1%
) else (
set tmp_time=%Time:~0,2%
)
@echo on

echo fadiLogs_%Date:~0,4%%Date:~5,2%%Date:~8,2%%tmp_time%%Time:~3,2%%Time:~6,2%

@set pull_time=fadiLogs_%Date:~0,4%%Date:~5,2%%Date:~8,2%%tmp_time%%Time:~3,2%%Time:~6,2%

md  %pull_time%

@echo "抓出 trace"
adb pull /data/anr %pull_time%/anr
@echo "抓出 tombstones"
adb pull /data/tombstones %pull_time%/tombstones
@echo "抓出 last_kmsg"
adb shell cat /proc/last_kmsg > %pull_time%/last_kmsg
@echo "抓出 recovery log"
adb pull /data/misc/recovery/ %pull_time%/recovery
@echo "抓出 crash"
adb shell dumpsys dropbox system_app_crash --print>>%pull_time%/Crash.txt
@echo "抓出 data aee db"
adb pull /data/aee_exp %pull_time%/aee_exp
@echo “抓出手机状态”
adb shell ps > %pull_time%/ps.txt
adb shell df > %pull_time%/df.txt 
adb shell dumpstate > %pull_time%/dumpstate.txt
adb shell dumpsys > %pull_time%/dumpsys.txt
adb shell top -t -d 2 -n 5 > %pull_time%/top.txt
adb shell service list  > %pull_time%/serviceList.txt
adb shell cat sys/kernel/debug/wakeup_sources > %pull_time%/wakeupsources.txt
adb pull data/system/packages.list %pull_time%/packages.list

@echo “抓出功耗 RPM ”
adb shell "cat /sys/kernel/debug/rpm_stats" > %pull_time%/rpm.txt
@echo "抓出 NE core"
adb pull /data/core %pull_time%/data_core
@echo "抓出截图"
adb pull /storage/emulated/0/Pictures/Screenshots %pull_time%/Screenshots
adb pull /storage/emulated/0/Pictures/Screenshots_logger %pull_time%/Screenshots_logger
@echo "抓出Fadi_BugReport(高通平台)"
adb pull /storage/emulated/0/BugReport %pull_time%/BugReport
@echo "抓出 MTK 日志"
adb pull /storage/emulated/0/mtklog %pull_time%/mtklog
@echo "抓出logs"
adb pull /storage/emulated/0/logs/ %pull_time%/logs
@echo "抓出 Doze 日志"
adb shell dumpsys deviceidle > %pull_time%/doze_logs
@echo "抓出 batterystats 日志"
adb shell dumpsys batterystats > %pull_time%/batterystats_logs
@echo "抓出 App standby 日志"
adb shell dumpsys usagestats > %pull_time%/usagestats(App_standby)_logs
@echo "抓出 Google bugreport"
adb shell bugreport > %pull_time%/GoogleBugreport.zip
@echo "完成"
pause

展讯平台日志界面

echo on
adb shell am start -n com.sprd.engineermode/com.sprd.engineermode.debuglog.ylogui.YlogActivity

mtk 平台

echo on
adb shell am start -n com.mediatek.mtklogger/com.mediatek.mtklogger.
adb shell am start -n com.debug.loggerui/com.debug.loggerui.MainActivity
adb shell am start -n com.mediatek.engineermode/com.mediatek.engineermode.FadiDebug
adb shell am start -n com.mediatek.engineermode/com.mediatek.engineermode.EngineerMode

高通平台

echo on
echo adb shell am start -n com.fadi.logger/com.fadi.logger.issue.ui.activity.DeveloperSettingActivity
adb shell am start -n com.fadi.logger/com.fadi.logger.issue.ui.activity.DeveloperSettingActivity

手机 IMEI 界面

echo on
adb shell am start com.android.phone/com.android.phone.StarWriteIMEI

手机settings界面

adb shell am start com.android.settings/com.android.settings.Settings

MTK的ygps界面

adb shell am start -n com.mediatek.ygps/com.mediatek.ygps.YgpsActivity
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

法迪

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值