android------adb command pull or push mobile phone and computer file interaction

Let's talk about the adb command configuration first. If you encounter adb is not an internal or external command, nor is it a runnable program or batch file. Configure environment variables

1. adb is not an internal or external command, nor is it a runnable program or batch file.

Solution: Find the path in my computer - properties - advanced computer configuration - environment variables, system variables, and add the platform-tools of the sdk to it.

D:\Android\SDK\platform-tools

 

2. Use the command line to copy the files from the phone to the computer

Window+R---"cmd open, switch to the drive letter where the picture is saved

adb pull /storage/emulated/0/1.jpg

 Copy the 1.jpg image in the internal storage directory of the phone.

 

3. Use the command line to push the computer files to the mobile phone ( requires root mobile phone )

adb push 1.jpg /storage/emulated/0/

  Save the 1.jpg image to the internal storage directory of the phone.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325252811&siteId=291194637