C language basics Lesson 3 Use of ADB (Android Debug Bridge)
Since I have published a Linux blog before, I will not post a blog on Linux basic commands separately. In this tutorial, I will use adb to connect to a mobile phone to review basic Linux commands. You are also familiar with the underlying operations of mobile phones. you can install software, uninstall software, and transmit data from PCs without interface operations.
Contents
1 Connect android devices to PC. 3 through USB
2 View the current device... 3
3 Go to device shell. 4
4 Execute the shell command... 4
5 Introduction to the andriod command... 4
6 Copy device files to PC. 4
7 Copy the PC file to the device... 5
1. Connect the android device to the PC through USB
Enable the "Settings" function of the Android device;
Open "Developer options ";
Select USB debugging,
2. view the current device
Adbdevices
Install adb to drive C
Set the path environment variable so that it can find the adb executable program
3. Enter the device shell
Adbshell
4. execute shell commands
Adbshell command
Enter an ls command
5. About andriod commands
Cat
Pwd
Date
Df
Kill
Ln
Mkdir
Rmdir
Rm
Mv
Ps
Top
You can see the detailed information in the directory.
6. Copy the device file to the PC
Adb pull device file path PC file path
For example:
Adb pull/system/app/SecPhone.apk d: SecPhone.apk
Disk D.
7 copy PC files to devices
Adb pushPC file path: Device File Path
This step will be handed over to you for practice.