lsusb
ls -al
usbguard list-devices
sudo apt install android-sdk-platform-tools android-tools-adb android-tools-fastboot -y
sudo touch /etc/udev/rules.d/51-android.rules
sudo nano /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="1234", ATTR{idProduct}=="1234", MODE="0666", GROUP="plugdev"
groups
getent group plugdev
adb kill-server
adb start-server
If not working, restart PC.
adb shell dumpsys battery
Current Battery Service state:
AC powered: false
USB powered: true
Wireless powered: false
status: 5
status: 4
health: 2
present: true
present: false
level: 100
level: 50
scale: 100
voltage: 4219
temperature: 320
technology: Li-ion
adb shell getprop // list of properties related to the device
adb shell getprop | grep "ro.product.model"
adb shell dumpsys iphonesubinfo
Phone Type = GSM
Device ID = <IMEI>
adb shell ls // list all phone content
adb shell ls folder_or_file
https://linuxhint.com/install-use-adb-fastboot-ubuntu/
No comments:
Post a Comment