adb tips - yszheda/wiki GitHub Wiki

info

ARM CPU

vendor key

profile

dumpsys

activity

strace

logcat

Change orientation

Problems

adb push: Permission denied

chmod: bad mode

error: more than one device and emulator

insufficient permissions for device

  1. lsusb find the vendor id.
  2. create /etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" 
  1. chmod a+r /etc/udev/rules.d/51-android.rules
  2. udevadm control --reload-rules
adb kill-server
adb start-server

Read-only file system

su
mount -o rw,remount /system
# do stuff
mount -o ro,remount /system