[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)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态. 可以通过下列几种方法加入 ...
随机推荐
- 爱特梅尔ATMEL全系列芯片解密单片机破解
爱特梅尔ATMEL全系列芯片解密单片机破解 ATMEL芯片介绍: ATMEL公司为全球性的业界领先企业,致力于设计和制造各类微控制器.电容式触摸解决方案.先进逻辑.混合信号.非易失性存储器和射频 (R ...
- input的实时监控
<input id="phone" type="tel" placeholder="请输入手机号"> $("#phon ...
- jqGrid配置属性说明
Property Type Description Default1) ajaxGridOptions object This option allows to set global ajax set ...
- 用Less CSS定义常用的CSS3效果函数
定义圆角及调用 /* 定义圆角 @radius 圆角大小 */ .round(@radius:5px){ border-radius:@radius; -webkit-border-radius: @ ...
- 【Oracle】ora-28001 ora-28002提示用户密码即将过期的解决办法
-- 1.首先查看用户的配置文件中的用户密码生命周期,一般情况下默认是180天.登录时系统提示ora-28002该用户即将过期 -- 可以先查看一下各用户的状态 SELECT username,PRO ...
- 苹果未来:增强现实设备将会取代iPhone
近日,华尔街知名度相当高的苹果分析师木斯特(Gene Munster)决定转行组建自己的风险投资公司,临走前他发布了最后一份关于苹果的研究报告,他对苹果未来的发展进行了一番预测.Munster表示,以 ...
- JDBC连接数据库(数据源的方式)
在tomcat安装目录下的context.xml文件中配置DataSource <Resource name="jdbc/news"(JNDI的名字,news是数据库的实例名 ...
- [BZOJ3139][HNOI2013] 比赛
Description 沫沫非常喜欢看足球赛,但因为沉迷于射箭游戏,错过了最近的一次足球联赛.此次联 赛共N支球队参加,比赛规则如下: (1) 每两支球队之间踢一场比赛. (2) 若平局,两支球队各 ...
- Javascript for循环指定锚点跳转
在某些使用多层嵌套for循环的场合里 会用到break和continue来中途跳转循环 break是跳出整个循环 continue是跳出当前循环,继续下次循环 而多层for循环嵌套里使用这两个关键字默 ...
- 淘宝弹性布局方案lib-flexible实践
2个月前,写过一篇文章<从网易与淘宝的font-size思考前端设计稿与工作流>总结过一些移动web中有关手机适配的一些思路,当时也是因为工作的关系分析了下网易跟淘宝的移动页面,最后才有那 ...