adb tips - yszheda/wiki GitHub Wiki
info
ARM CPU
vendor key
- https://stackoverflow.com/questions/32132434/set-adb-vendor-keys
- https://stackoverflow.com/questions/26213954/how-to-solve-adb-device-unauthorized-in-android-adb-host-device
profile
- http://jingyan.baidu.com/article/ac6a9a5e7e5f352b653eacfa.html
- https://testerhome.com/topics/3849
- http://blog.gaoyuan.xyz/2013/11/22/android-app-profile-tools/
- http://blog.chengyunfeng.com/?p=458
- http://www.rudy-yuan.net/archives/59/
dumpsys
- http://stackoverflow.com/questions/11201659/whats-the-android-adb-shell-dumpsys-tool-and-what-are-its-benefits
- http://qa.blog.163.com/blog/static/190147002201611833520773/
- http://log4think.com/adb-shell-dumpsys-parameter-list/
- https://stackoverflow.com/questions/11201659/whats-the-android-adb-shell-dumpsys-tool-and-what-are-its-benefits
activity
- 使用adb shell dumpsys检测Android的Activity任务栈
- https://stackoverflow.com/questions/13380590/is-it-possible-to-start-activity-through-adb-shell
- Andoird开发调试时不修改Manifest直接启动任意Activity的方法
- Android 用 adb shell啟動 Activity
- 如何透過 adb command line 指令啟動 Android App
- https://stackoverflow.com/questions/20230285/error-activity-class-does-not-exist-when-launching-android-app-with-adb-shell
strace
- https://stackoverflow.com/questions/12166917/android-how-to-strace-an-app-using-adb-shell-am-start
- https://stackoverflow.com/questions/12166308/how-to-strace-adb-shell-am-start-myandroidapp
logcat
- https://developer.android.com/studio/command-line/logcat.html
- https://segmentfault.com/a/1190000000426049
- http://www.cnblogs.com/imouto/archive/2012/12/11/filtering-adb-logcat-output.html
Change orientation
- https://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb
- https://stackoverflow.com/questions/40094761/rotate-android-display-without-changing-orientation
- https://stackoverflow.com/questions/11420617/android-emulator-screen-rotation
Problems
adb push: Permission denied
chmod: bad mode
error: more than one device and emulator
insufficient permissions for device
lsusb
find the vendor id.- create
/etc/udev/rules.d/51-android.rules
:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
chmod a+r /etc/udev/rules.d/51-android.rules
udevadm control --reload-rules
adb kill-server
adb start-server
- https://developer.android.com/studio/run/device.html
- https://stackoverflow.com/questions/5510284/adb-devices-command-not-working
- 'Insufficient permissions' error on
adb push
command on 12.04 - Android adb shell 无法启动:insufficient permissions for device 解决方案
- Debian wiki: How To Identify A Device USB
Read-only file system
su
mount -o rw,remount /system
# do stuff
mount -o ro,remount /system