[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)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态. 可以通过下列几种方法加入 ...
随机推荐
- RESTful API 设计指南 (转)
RESTful API 设计指南 2016-02-23 ImportNew (点击上方公号,可快速关注) 作者:阮一峰 链接:http://www.ruanyifeng.com/blog/2014/0 ...
- SQL基础之基本操作
1.UNION操作符 union操作符用来合并两个或多个select语句的结果,要注意union内部的每个select语句必须拥有相同数量的列,而且列也必须拥有相似的数据类型和相同的列顺序.下面是我的 ...
- UVA 1513 Movie collection (树状数组+反向存储)
题意:给你n盘歌碟按照(1....n)从上到下放,接着m个询问,每一次拿出x碟,输出x上方有多少碟并将此碟放到开头 直接想其实就是一线段的区间更新,单点求值,但是根据题意我们可以这样想 首先我们倒着存 ...
- Daily Scrum Meeting ——EighthDay
一.Daily Scrum Meeting照片 橙汁参加ICPC未归,周一牛姐去上课,佳恺今天去迎新晚会表演舞台剧了 二.Burndown Chart 今日没有燃掉issues 增添了两个issue ...
- 前端性能监控方案window.performance 调研(转)
1. 业界案例 目前前端性能监控系统大致为分两类:以GA为代表的代码监控和以webpagetest为代表的工具监控. 代码监控依托于js代码并部署到需监控的页面,手动计算时间差或者使用浏览器的的API ...
- Python中的条件判断和循环
1.使用elif代替else if,前者是后者的缩写. 2.所以for x in ...循环就是把每个元素代入变量x,然后执行缩进块的语句. 3.Python提供一个range()函数,可以生成一 ...
- ZeroMQ接口函数之 :zmq_msg_send – 从一个socket发送一个消息帧
ZeroMQ 官方地址 :http://api.zeromq.org/4-0:zmq_msg_send zmq_msg_send(3) ØMQ Manual - ØMQ/3.2.5 Name zmq_ ...
- 微信企业号办公系统-图片预览放大功能-previewImage
在微信里看过文章的应该知道,文章里的图片点击后可以放大.分享和保存. 然而自己在微信里开发的网页,里面的图片点击后没办法实现这个效果,然后就去看了下微信JS文档,里面有个previewImage可以调 ...
- 封装ajax(二)闭包的形式
(function(){ var $=(function(){ function create(){ if(window.XMLHttpRequest){ var xhr=new XMLHttpReq ...
- Openfire3.9.3源代码导入eclipse中开发配置指南
这篇文章向大家介绍一下,如何把openfire3.9.3源码导入eclipse中,编译并启动的详细过程. 首先得感谢这篇文章的作者,http://www.micmiu.com/opensource/o ...