Tuesday, March 28, 2023

Android on linux

 ADB - Android Debug Bridge - sudo apt install adb

To enable go to Settings - About phone - scroll to bottom - tap many times - Build number - until you get a message Developer mode enabled.
Now go to Settings - Developer mode - enable USB DEbugging

Connect android via usb to computer - you will get a message to allow connection.

sorin@hp250:~$ adb devices
List of devices attached
ZY326M79LR device

sorin@hp250:~$ adb tcpip 5555
restarting in TCP mode port: 5555

sorin@hp250:~$ adb connect 192.168.0.201:5555
connected to 192.168.0.201:5555

sorin@hp250:~$ adb devices
List of devices attached
192.168.0.201:5555 device

Then use scrcpy (sudo apt install scrcpy ) to connect to the phone from laptop.
Record screen with OBS Studio - and select scrcpy window.

DroidCam - use camera