Date created: Thursday, October 6, 2022 1:48:30 PM. Last modified: Thursday, October 6, 2022 1:49:18 PM

'adb' Notes

Running adb in a docker with an android device connected via USB (make sure adb isn't running on the host machine!):

$docker run -it --rm --privileged \
-v /dev/bus/usb:/dev/bus/usb \
-v /home/bensley/Downloads:/android \
ubuntu:22.04

$ apt update -y && apt install -y --no-install-recommends android-tools-adb android-tools-fastboot

$ adb devices
List of devices attached
XXXCCCVVVBBB    device

# If adb doesn't see the device try the following:
$ adb kill-server
$ adb start-server


$ fastboot devices
A209PXYX0202    fastboot

# If fastboot hasn't detected the device try something like the following, this fastboot should show the device

$ fastboot flashing unlock
(bootloader)     Device already : unlocked!
OKAY [  0.014s]
Finished. Total time: 0.014s

 


Previous page: Systap
Next page: Aliases