[Android Tips] 25. ADB Command Note
2016-12-08 17:26
260 查看
copy from https://github.com/operando/Android-Command-Note
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
adb logcat -m 100
adb shell log -t [tag name] [message]
adb shell log -p [log level] [message]
adb uninstall [Package Name]
adb shell pm list packages -e
adb shell pm list packages -d
adb shell pm list packages -s
adb shell pm list packages -3
adb shell dumpsys -l
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
adb shell input keyevent KEYCODE_BACK
adb shell input keyevent KEYCODE_MENU
adb shell getprop [property name]
adb shell setprop [property name] [property value]
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
adb shell screenrecord --output-format raw-frames /sdcard/test
screenrecordの"unofficial" optionsは夢がいっぱいだった
YYYYMMDD:年月日 hhmmss:時分秒
要Root
【Android】adb shell date は System User or radio Groupじゃないと反映されない
adb shell dumpsys dropbox --print
adb shell dumpsys dropbox --file
lint [application directory] --simplehtml [file name].html
adb shell cat /proc/kmsg
adb shell pm grant [permission.name] ...
adb shell pm revoke [permission.name] ...
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 Command Note
Logcat
adb logcat -v timeadb 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 colorAndroid 7.0〜
adb logcat -e androidadb 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 bugreportApplication
adb install [Apk File]adb uninstall [Package Name]
pm - PackageManager
adb shell pm list packagesadb 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 dumpsysadb shell dumpsys -l
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 rootKey Event
adb shell input keyevent [event key]
adb shell input keyevent KEYCODE_HOMEadb shell input keyevent KEYCODE_BACK
adb shell input keyevent KEYCODE_MENU
Alarm
adb shell dumpsys alarmSystem properties
adb shell getpropadb shell getprop [property name]
adb shell setprop [property name] [property value]
screenrecord
adb shell screenrecord /sdcard/test.mp4adb 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.mp4adb shell screenrecord --output-format raw-frames /sdcard/test
screenrecordの"unofficial" optionsは夢がいっぱいだった
Date
adb shell date -s YYYYMMDD.hhmmssYYYYMMDD:年月日 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 dropboxadb shell dumpsys dropbox --print
adb shell dumpsys dropbox --file
Lint
lint [application directory] --html [file name].htmllint [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%.htmlLinux or Mac
lint [application directory] --fullpath --quiet --html lint_$(date +"%Y%m%d-%H%M%S").htmlKernal
adb shell dmesgadb shell cat /proc/kmsg
Permission
adb shell pm list permissions -d -gadb shell pm grant [permission.name] ...
adb shell pm revoke [permission.name] ...
Other
adb shell printenvadb 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 debug bridge command line-adb shell tips -logcat/am/pm/dumpsys
- Android_adb command not found
- (unix实战-配置android adb)adb"不是内部命令和sudo: adb: command not found
- Android Dev Intro - Android ADB Command Examples
- Mac Android Studio提示adb: command not found
- android-错误:refused to install the app by The ADB command !
- (转)[Android 调试] 解决错误方法:com.android.ddmlib.AdbCommandRejectedException: device offline
- com.android.ddmlib.AdbCommandRejectedException
- How to Use Android ADB Command Line Tool on mac
- android-错误:refused to install the app by The ADB command !
- Android AdbCommandRejectedException和cannot bind to套接字地址(协议/网络地址/端口)只允许使用一次
- 使用Adb shell command直接送key event 给 Android
- 错误com.android.ddmlib.AdbCommandRejectedException
- 使用Adb shell command直接送key event給Android
- [Android Tips] 18. Enable/Disable WiFi via adb
- android device action and adb command
- 【android-tips】adb 常用命令汇总(持续更新中)
- How to Use Android ADB Command Line Tool
- com.android.ddmlib.AdbCommandRejectedException: device offline Error while Installing APK解决
- com.android.ddmlib.AdbCommandRejectedException: device offline