![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ADB
wxx2150
此君很懒
展开
-
【adb】logcat输出设置文件大小,并设置文件格式
logcat原创 2023-03-07 19:55:08 · 1138 阅读 · 0 评论 -
Android 12 如何通过命令生成img
生成img原创 2023-01-12 16:13:19 · 479 阅读 · 0 评论 -
adb 如何mount img 镜像到/mnt
adb mount img 镜像原创 2023-01-11 16:30:32 · 427 阅读 · 0 评论 -
Android adb指令实现应用双开功能
android adb 应用双开原创 2023-01-04 20:21:31 · 2753 阅读 · 1 评论 -
adb logcat后台运行,拔掉usb后,logcat停止
logcat 后台原创 2022-12-12 11:52:33 · 568 阅读 · 0 评论 -
adb/fastboot 总结
adb 使用技巧原创 2022-06-23 18:00:37 · 1236 阅读 · 0 评论 -
uiautomatorviewer 工具使用
uiautomatorviewer 使用首先通过uiautomator dump 生成当前ui xml打开uiatuomatorviewer.bat选择刚刚pull 出来的dump.xml文件上述就可以查看当前layout 布局。原创 2022-04-18 17:11:41 · 2117 阅读 · 0 评论 -
android bugreport 分析工具
生成bugreport生成的文件如下:解压zip文件chkbugreport 分析bugreport将解压zip文件中bugreport-d700s-CRUISE1.20201009-2021-06-30-16-30-05.txt 通过chkbugreport.jar解析生成文件夹通过浏览器打开index.html 就可以直观的看到bugreport信息了...原创 2021-07-01 15:06:25 · 1025 阅读 · 0 评论 -
android 设置cpu性能最大
adb shell stop thermaldadb shell stop thermal-engineadb shell "echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus"adb shell "echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus"adb shell "echo 1 > /sys/devices/system/cpu/cpu1/online"adb .原创 2021-05-19 19:01:00 · 1168 阅读 · 0 评论 -
android R push xxx恢复出厂设置之后无效
最近再处理android R 的项目,发现 push xxx 模块到设备中,设备恢复出厂设置之后,原来push的xxx模块的sha1sum值和push的不一样了。经过验证,恢复出厂后,push的xxx无效。我们尽量不要恢复出厂,可以将 /data/system/user/0 目录删除,reboot...原创 2021-04-01 10:39:57 · 435 阅读 · 1 评论 -
如何通过adb 获取应用的版本号
windows: adb shell pm dump com.android.dialer | findstr “versionName” linux: adb shell pm dump com.android.dialer | grep “versionName”原创 2017-10-16 10:15:32 · 22207 阅读 · 1 评论 -
getevent获取input上报事件
1.指定某个设备:adb shell getevent -v /dev/input/event0 eg: D:\Program Files (x86)\PowerCmd>adb shell getevent -v /dev/input/event1bus: 0018 vendor 0001 product 0001 version 0100 nam原创 2017-10-16 10:18:46 · 5425 阅读 · 0 评论 -
android adb shell am pm
adb shell pm list packages //列出说要安装的packagespm list packages: prints all packages, optionally onlythose whose package name contains the text in FILTER. Options:-f: see their associated file.-d: filter原创 2017-10-16 15:31:22 · 1115 阅读 · 0 评论 -
如何通过adb shell 循环读取寄存器状态
通常我们需要读取手机某个寄存器状态时,会通过adb shell cat xx来读取。 不如读取耳机是否插入的寄存器: adb shell cat sys/class/switch/h2w/state问题来了上面的指令需要我们一次次输入才能显示,如果我们需要在插拔耳机下观察它的变化,就很难从上面实现了 。解决通过编写shell脚本,并内置(或者push到system下,这个需要debug版本)。通原创 2017-11-06 19:16:05 · 3927 阅读 · 0 评论 -
如何编写属于自己的adb shell 命令。
说明我们通常通过 adb shell am pm wm 等来获取android手机必要信息。 那么我们要怎么编写自己的adb shell命令呢编写参照am 路径framewor/base/cmds/am 同时也可以将shell文件内置到system/bin文件中来实现我们想要的信息。原创 2017-11-06 19:20:45 · 2317 阅读 · 0 评论 -
Android 通过adb 当前输入法信息
Android 通过adb 当前输入法信息adb shell ime list -s com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME com.google.android.apps.speechservices/com.google.android.voicesearch.ime.Voi...原创 2018-03-29 16:11:02 · 1837 阅读 · 0 评论 -
Android 8.1 通过adb 获取当前activity信息
8.1之前window 通过adb shell dumpsys activity | findstr “mFocus” Linux 通过adb shell dumpsys activity | grep “mFocus”8.1window 通过adb shell dumpsys activity | findstr “mResume” Linux 通过adb shell d...原创 2018-03-29 16:14:27 · 9165 阅读 · 0 评论 -
Android 通过adb 截图,录制视频
截图adb shell screencap -p /sdcard/screen.png录制视频adb shell screenrecord /sdcard/demo.mp4 默认为MP4 格式,默认录制时间为180s限制录制时间adb shell screenrecord –time-limit 10 /sdcard/demo.mp4指定视频分辨率大小adb s...原创 2018-03-29 16:48:41 · 844 阅读 · 0 评论 -
android 如何抓取系统memory使用状况
当出现系统memory不足导致高优先级进程被kill等异常时,需要抓取一段时间内的memory使用情况. 一. 在使用Mali GPU平台上(mt6572 mt6582 mt6592)使用如下脚本抓取. 具体测试手法如下: 1. 先将手机时间设置成和PC一样,清除mtklog,开启mobilelog. 2. 双击此脚本。 3. 出现问题后,停止脚本(Ctr...原创 2018-05-08 16:22:48 · 1030 阅读 · 0 评论 -
MTK Android P(9.0) userdebug版本执行adb remount失败
Android P + kernel-4.9 or after - download preloader with verified boot disabled which location is the same as scatter file. //preloader_<PROJECT>_SBOOT_DIS.bin- boot to Home Screen- go to s...原创 2019-05-15 11:51:52 · 726 阅读 · 0 评论 -
通过dumpsys audio查看当前系统音量状态
通过dumpsys audio查看当前系统音量状态adb shell dumpsys audioMediaFocusControl dump time: 上午6:20:53Audio Focus stack entries (last is top of stack):No external focus policy Notify on duck: true In ri...原创 2019-10-17 11:28:29 · 4712 阅读 · 0 评论 -
通过adb shell dumpsys carrier_config查看当前sim的对业务的支持状态
最近做俄罗斯的手机项目,客户老是报某种卡,不支持volte 或者不支持wfc等等,由于沟通问题,很难获取当前的状态。后来发现,可以通过 adb shell dumpsys carrier_config 来获取各个卡槽的信息状态:CarrierConfigLoader: com.android.phone.CarrierConfigLoader@8ca2c57Phone Id = 0 ...原创 2019-10-21 20:33:27 · 4910 阅读 · 1 评论 -
user版本如何打开root权限
[Description]user版本怎么打开root权限[Keyword]user root adb superuser 用户版本 root权限 security[Serious Declaration]严重声明: 任何在最终user版本上打开root权限的手法都会给用户带来安全风险, 请仔细评估您的需求是否真实需要. MTK 强烈反对此类做法, 由此带来的安全风险,以及造成的损失, ...原创 2019-11-07 11:09:04 · 2781 阅读 · 0 评论 -
mtk remount指令
Android P + kernel-4.9 or afterdownload preloader with verified boot disabled which location is the same as scatter file. //preloader__SBOOT_DIS.binboot to Home Screengo to setting -> system -&...原创 2019-12-27 10:38:55 · 728 阅读 · 1 评论 -
高通 android P remount指令
C:\Users\admin>adb remountremount of the / superblock failed: Permission deniedremount failed如果出现上述错误:请参照下面指令adb rootadb disable-verityadb rebootadb rootadb remount...原创 2020-01-16 16:00:39 · 551 阅读 · 0 评论 -
android P adb shell dumpsys battery 使用
用户可以通过adb shell dumpsys battery 获取当前电池信息: AC powered: false USB powered: true Wireless powered: false Max charging current: 500000 # 最大充电电流 Max charging voltage: 5000000 #最大充电电...原创 2020-02-13 14:16:39 · 4801 阅读 · 0 评论