admin管理员组文章数量:1573690
1、logcat:
遇到报错信息:
logcat: Unexpected EOF!
This means that either the device shut down, logd crashed, or this instance of logcat was unable to read log
messages as quickly as they were being produced.
If you have enabled significant logging, look into using the -G option to increase log buffer sizes.
查看一下logcat缓冲区大小:
D:\work\test\log>adb shell logcat -g
main: ring buffer is 256 KiB (3 MiB consumed), max entry is 5120 B, max payload is 4068 B
system: ring buffer is 256 KiB (251 KiB consumed), max entry is 5120 B, max payload is 4068 B
crash: ring buffer is 256 KiB (15 KiB consumed), max entry is 5120 B, max payload is 4068 B
kernel: ring buffer is 256 KiB (245 KiB consumed), max entry is 5120 B, max payload is 4068 B
先修改为5MB大小试试:
D:\work\test\log>adb shell logcat -G 5M
D:\work\test\log>adb shell logcat -g
main: ring buffer is 5 MiB (4 MiB consumed), max entry is 5120 B, max payload is 4068 B
system: ring buffer is 5 MiB (238 KiB consumed), max entry is 5120 B, max payload is 4068 B
crash: ring buffer is 5 MiB (15 KiB consumed), max entry is 5120 B, max payload is 4068 B
kernel: ring buffer is 5 MiB (239 KiB consumed), max entry is 5120 B, max payload is 4068 B
2、设置Android系统的时间(用win10系统验证)。
先设置年月日
adb shell date %date:~0,4%-%date:~5,2%-%date:~8,2% set
在设置时分秒
adb shell date %time:~0,2%:%time:~3,2%:%time:~6,2% set
验证:
D:\>adb shell date
Sat Nov 27 12:41:25 GMT 2021
版权声明:本文标题:adb shell命令 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1725721585a1038437.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论