Android adb shell 常用命令
来源:互联网 发布:补肾的天然保健品 知乎 编辑:程序博客网 时间:2024/05/23 16:08
打印日志
adb logcat > log.txt /* 打印普通的日志*/adb logcat *:e > log.txt /* 打印Error级别的日志*/adb logcat -b > log.txt /* 打印radio的日志*/adb logcat -s Tag > log.txt /* 打印指定Tag的日志*/adb shell dmesg > log /* 打印内核的日志*/
截屏
adb shell screencap -p /data/xxx.png adb pull /data/xxx.png
重启
adb reboot
程序操作
启动程序:adb shell am start -n 包名/类名 安装程序:adb install xxx.apk卸载程序:adb uninstall com.xxx.xxx (包名)adb 调试:adb connect ip断开调试:adb disconnect
重新加载文件系统
busybox mount /system /system -o rw,remountmount -o remount,rw /systemadb remount
系统CPU占用情况
adb shell top
发送广播
adb shell am broadcast 参数:[-a <ACTION>][-d <DATA_URI>][-t <MIME_TYPE>] [-c <CATEGORY> [-c <CATEGORY>] ...] [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...] [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...] [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...] [-n <COMPONENT>][-f <FLAGS>] [<URI>]
例如:
adb shell am broadcast -a com.Android.test --es test_string "this is test string" --ei test_int 100 --ez test_boolean true
启动service
adb shell am startservice -n {包(package)名}/{包名}.{服务(service)名称}am startservice -n com.android.anlory/com.android.anlory.mainservice
输入文本
adb shell input text 123456 模拟输入123456
开启关闭SeLinux权限
adb shell setenforce 0/1 关闭/开启
Settings 开关状态修改
adb shell settings get/put secure/system/global [key] [value]
adb shell settings get system screen_brightness 30 #获取当前亮度值 adb shell settings put system screen_brightness 150 #更改亮度值(亮度值在0—255之间)
adb shell settings get system screen_off_timeout 15000 #获取屏幕休眠时间 adb shell settings put system screen_off_timeout 600000 #更改休眠时间,10分钟
阅读全文
0 0
- Android adb shell常用命令
- android adb shell 常用命令
- Android adb shell 常用命令
- android adb shell 常用命令大全
- android adb shell 常用命令记录
- android adb shell am常用命令
- Android系统adb shell 常用命令
- Android ADB和shell常用命令
- adb 常用命令、adb shell 常用命令
- adb shell常用命令
- adb shell 常用命令
- adb shell 常用命令
- Adb shell常用命令
- adb shell 常用命令
- adb shell常用命令集合
- adb shell 常用命令
- android adb shell 命令集及常用命令用法
- android中adb shell常用命令及查询数据库的方法
- Redis与Memcached对比
- power designer 显示comment
- 测试场景及测试素材
- 博客迁移至Hexo,地址http://mrdear.cn
- 网络套接字函数
- Android adb shell 常用命令
- Canvas画布
- 北京信息学培训第三天
- 【C/C++】类中的const成员 static成员
- 读书笔记:《产业阴谋链》
- vue+vueRouter+vuex+vux(微信项目开发框架)
- DataBinding详解
- loopback 地址
- java垃圾回收机制--CMS