最終更新:2021-10-15 (金) 13:12:12 (921d)
adb shell
Top / adb shell
デバイス指定
adb -s <device> shell
グローバルオプション
-a listen on all network interfaces, not just localhost -d use USB device (error if multiple devices connected) -e use TCP/IP device (error if multiple TCP/IP devices available) -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) -t ID use device with given transport id
help
shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...] run remote shell command (interactive shell if no command given) -e: choose escape character, or "none"; default '~' -n: don't read from stdin -T: disable pty allocation -t: allocate a pty if on a tty (-tt: force pty allocation) -x: disable remote exit codes and stdout/stderr separation
rootになるdefault.propの項目
- ro.kernel.qemu=1
- ro.secure=0
- ro.secure=1 でも ro.debuggable=1 かつ adb root