[Android Tips] 25. ADB Command Note
copy from https://github.com/operando/Android-Command-Note
Android Command Note
Logcat
adb logcat -v time
adb logcat -v time -b main
adb logcat -v time -b system
adb logcat -v time -b events
adb logcat -v time -b radio
adb shell logcat -b all
adb logcat -B
Android 6.0〜
adb shell logcat -v color
Android 7.0〜
adb logcat -e android
adb logcat -m 100
log
adb shell log [message]
adb shell log -t [tag name] [message]
adb shell log -p [log level] [message]
mount
$ adb shell
$ su
# mount -o rw,remount /system
Bugreport
adb bugreport
Application
adb install [Apk File]
adb uninstall [Package Name]
pm - PackageManager
adb shell pm list packages
adb shell pm list packages -e
adb shell pm list packages -d
adb shell pm list packages -s
adb shell pm list packages -3
dumpsys
adb shell dumpsys
adb shell dumpsys [system service]
adb shell dumpsys service [service name]
adb shell dumpsys activity activities
adb shell dumpsys activity top
adb shell dumpsys activity all
adb shell dumpsys activity provider
adb shell dumpsys activity provider all
adb shell dumpsys gfxinfo
adb shell dumpsys jobscheduler
adb shell dumpsys netpolicy
Root
adb root
Key Event
adb shell input keyevent [event key]
adb shell input keyevent KEYCODE_HOME
adb shell input keyevent KEYCODE_BACK
adb shell input keyevent KEYCODE_MENU
Alarm
adb shell dumpsys alarm
System properties
adb shell getprop
adb shell getprop [property name]
adb shell setprop [property name] [property value]
screenrecord
adb shell screenrecord /sdcard/test.mp4
adb shell screenrecord --size 720x1080 /sdcard/test.mp4
adb shell screenrecord --bit-rate 10000000 /sdcard/test.mp4
adb shell screenrecord --time-limit 120 /sdcard/test.mp4
adb shell screenrecord --bugreport /sdcard/test.mp4
"unofficial" options
adb shell screenrecord --rotate /sdcard/test.mp4
adb shell screenrecord --output-format raw-frames /sdcard/test
screenrecordの"unofficial" optionsは夢がいっぱいだった
Date
adb shell date -s YYYYMMDD.hhmmss
YYYYMMDD:年月日 hhmmss:時分秒
要Root
【Android】adb shell date は System User or radio Groupじゃないと反映されない
Windows
adb shell date -s %date:0,4%%date:5,2%%date:8,2%.%time:0,2%%time:3,2%%time:6,2%
Linux or Mac
adb shell date -s $(date +"%Y%m%d.%H%M%S")
Dropbox
adb shell dumpsys dropbox
adb shell dumpsys dropbox --print
adb shell dumpsys dropbox --file
Lint
lint [application directory] --html [file name].html
lint [application directory] --simplehtml [file name].html
Windows
lint [application directory] --fullpath --quiet --html lint_%date:0,4%%date:5,2%%date:8,2%-%time:0,2%%time:3,2%%time:6,2%.html
Linux or Mac
lint [application directory] --fullpath --quiet --html lint_$(date +"%Y%m%d-%H%M%S").html
Kernal
adb shell dmesg
adb shell cat /proc/kmsg
Permission
adb shell pm list permissions -d -g
adb shell pm grant [permission.name] ...
adb shell pm revoke [permission.name] ...
Other
adb shell printenv
adb reboot
adb shell reboot recovery
adb pull [Unit Path] [Local Path]
adb push [File Path] [Unit Path]
adb shell input text [string]
adb jdwp
adb shell am start -a android.settings.WEBVIEW_SETTINGS
[Android Tips] 25. ADB Command Note的更多相关文章
- How to Use Android ADB Command Line Tool
Android Debug Bridge (adb) is a tool that lets you manage the state of an emulator instance or Andro ...
- 【原创】Android开发之ADB及ADB SHELl命令的应用
adb的全称为Android Debug Bridge,就是起到调试桥的作用.通过adb我们可以在Eclipse中方面通过DDMS来调试Android程序,说白了就是debug工具.adb的工作方式比 ...
- Android Tips – 填坑手册
出于: androidChina http://www.androidchina.net/3595.html 学习 Android 至今,大大小小的坑没少踩,庆幸的是,在强大的搜索引擎与无私奉献的 ...
- 【转】Android开发调试工具ADB的使用
原文网址:http://www.cnblogs.com/meil/archive/2012/05/24/2516055.html ADB(Android Debug Bridge)是Android S ...
- 解决adb command not found以及sdk环境配置
解决adb command not found以及sdk环境配置 分类: mark 2013-10-02 09:41 2975人阅读 评论(0) 收藏 举报 原文地址:http://www.cnblo ...
- mac上adb command not found
第一种报错(使用的自带mac命令行) bash: adb: command not found 1.vim ~/.bash_profile ,如果.bash_profile不存在,先touch ~/. ...
- 解决Mac上adb: command not found问题
使用mac进行开发的时候,有时候需要使用adb指令来进行一些操作,但是如果没有配置过Android环境变量,可能会出现adb: command not found的问题,查了一些资料,这里记录一下ma ...
- ionic打包apkFailed to execute shell command "input,keyevent,82"" on device: Error: adb: Command failed with exit code 137
错误代码如下 BUILD SUCCESSFUL in 12s 46 actionable tasks: 1 executed, 45 up-to-date Built the following ap ...
- 转:Android 调试桥(adb)是多种用途的工具
转自:http://my.oschina.net/xuwa/blog/1574 Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态. 可以通过下列几种方法加入 ...
随机推荐
- [leetcode] 12. Integer to Roman
关于罗马数字: I: 1V: 5X: 10L: 50C: 100D: 500M: 1000字母可以重复,但不超过三次,当需要超过三次时,用与下一位的组合表示:I: 1, II: 2, III: 3, ...
- Python爬虫学习(1): urllib的使用
1.urllib.urlopen 打开一个url的方法,返回一个文件对象,然后可以进行类似文件对象的操作 In [1]: import urllibIn [2]: file = urllib.urlo ...
- mysql数据去除重复及相关优化(转)
由于mysql不支持同时对一张表进行操作,即子查询和要进行的操作不能是同一张表,因此需要通过临时表中专以下. 1.单字段重复 生成临时表,其中uid是需要去重的字段 create table tmp_ ...
- cocos2d-x初步了解
1.渲染 2.帧率(FPS) 超过75一般就不容易察觉到有明显的流畅度提升 >50 非常好! 30~40 一般, 20~30 及格,有点勉强. 3.渲染驱动游戏 事件驱动游戏 4.cocos ...
- struts2自定义MVC框架
自定义MVC:(首先了解Model1和Model2的概念) Model1与Model2: Model1:就是一种纯jsp开发技术,将业务逻辑代码和视图渲染代码杂糅在一起. Model2:Model2是 ...
- Django 基本命令
1. 新建一个 django project django-admin.py startproject project-name 一个 project 为一个项目,project-name 项目名称, ...
- bzoj1720: [Usaco2006 Jan]Corral the Cows 奶牛围栏
金组题什么的都要绕个弯才能AC..不想银组套模板= = 题目大意:给n个点,求最小边长使得此正方形内的点数不少于c个 首先一看题就知道要二分边长len 本来打算用二维前缀和来判断,显然时间会爆,而且坐 ...
- MongoDB 3.X 用户权限控制
摘要: MongoDB 3.0 安全权限访问控制,在添加用户上面3.0版本和之前的版本有很大的区别,这里就说明下3.0的添加用户的方法. 环境.测试: 在安装MongoDB之后,先关闭auth认证,进 ...
- 页面引入flash
function shFlashObj(id, data, oWidth, oHeight, flashvals,beFullScreen) { var swf='<object id=& ...
- Java中的递归运算
Java中的递归运算是一种在自己的方法内部调用自己的方法 递归的设计思想是:把一个复杂的问题,分解为若干个等同的子问题,重复执行,直到之问题能够简单到直接求解,这样复杂的问题就得以解决. 递归运算有两 ...