Way to use the program on your computer how to use adb tool to manipulate your android phone

Adb tool is installed in the computer:

sudo APT install Android-Android-Tools-adb-fastboot Tools 
# checks for success
adb version

 

Open adb Service

 

sudo adb kill-server
sudo adb start-server

 

The phone side

Phone developers usually hidden by default option; It should be open as follows:

1. find the system set up inside and click at 7 in the above position, open developer options

2. In the Setup menu found inside the developer options, click open

3. Turn on USB Debugging

4. The phone has time to click on the pop consent

 

Verifying Successful computer end

adb devices
adb shell screencap /sdcard/screen.png

The first command will view the device

The second command executes an adb command to intercept phone screen and stored on the phone, the album can be found on the phone and check time a successful screenshot

 

Problems can refer to:

https://stackoverflow.com/questions/9210152/set-up-device-for-development-no-permissions

https://askubuntu.com/questions/908306/adb-no-permissions-on-ubuntu-17-04

https://stackoverflow.com/questions/23081263/adb-android-device-unauthorized

 

ADB usage Reference:

ADB operations command Detailed and usage Daquan

 

Guess you like

Origin www.cnblogs.com/wybert/p/11670983.html