Android adb shell
文摘 Android MediaTek 2020-02-1 阅读:7425MTK adb 进入工程模式:
adb shell am start -n com.mediatek.engineermode/.EngineerMode
mtklogger:
adb shell am start -n com.mediatek.mtklogger/com.mediatek.mtklogger.MainActivity
android 设置主页面:
adb shell am start com.android.settings/com.android.settings.Settings
android launcher3:
shell am start -n com.android.launcher3/com.android.launcher3.Launcher
截屏:
adb shell /system/bin/screencap -p /storage/sdcard0/001.png
打开Show taps和Pointer location([显示点按操作反馈]和[指针位置])
adb shell settings put system show_touches 1
adb shell settings put system pointer_location 1
MTK平台 adb shell Recovery:
1.升级包放至/sdcard/update.zip
adb shell "echo \"--update_package=/sdcard/update.zip\" > /cache/recovery/command"
adb reboot recovery
2.查看Recovery log:
adb pull /cache/recovery/ d:\log\
MTK平台 adb shell 恢复出厂设置:
adb shell "echo \"--wipe_data\" > /cache/recovery/command"
adb reboot recovery
adb shell 设置状态栏跑秒:
settings put secure clock_seconds 1
通过adb命令打开应用
1、查看已安装应用命令
adb shell pm list packages
2、查找某个特定应用包名
adb shell pm list packages "特定字符"
3、查看某个应用的详细信息
adb shell dumpsys package 包名
adb shell dumpsys package com.nextdoordeveloper.miperf.miperf
4、启动应用
adb shell am start 包名/activity
例:adb shell am start com.nextdoordeveloper.miperf.miperf/.MainActivity
查看eMMC和DDR的工作频率
eMMC:
adb shell cat /sys/kernel/debug/mmc0/clock
DDR:
adb shell cat /sys/bus/platform/drivers/emi_clk_test/read_dram_data_rate
dvfsrc_dump:
cat /sys/devices/platform/soc/10012000.dvfsrc/helio-dvfsrc/dvfsrc_dump
搜索文件不报错:
grep "abcd" / -irl 2>/dev/null
共0
条评论
作者
Pixiv日榜Top50