Wednesday, August 16, 2023

Android phone administration on Kubuntu

lsusb

ls -al

usbguard list-devices 

usbguard allow-device 11

sudo apt install android-sdk-platform-tools android-tools-adb android-tools-fastboot -y

adb shell

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"

sudo usermod -aG plugdev username

groups

getent group plugdev

sudo udevadm control --reload-rules

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 Subscriber Info:
 Phone Type = GSM
 Device ID = <IMEI>

adb shell ls // list all phone content

adb shell ls folder_or_file

adb pull /folder /destination/folder // copy files from phone


https://linuxhint.com/install-use-adb-fastboot-ubuntu/

https://developer.android.com/studio/run/device

No comments:

Post a Comment