C language basics Lesson 3 Use of ADB (Android Debug Bridge)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.