Use of Android ADB commands

Source: Internet
Author: User

ADB is a client-server program where the client is the computer you use to operate, and the server side is the Android device.
First say the installation method, the computer needs to install the client. The client is included in the SDK. No installation is required on the device, just open the option settings-applications-development-usbdebugging on the phone.
For Mac and Linux users, the downloaded SDK can be unpacked and placed in any directory. Then modify the ~/.bash_profile file to set the tools directory where the run environment points to the SDK.
In particular, open the ~/.bash_profile file (if you do not have this file you can add it yourself), adding a line inside:
Export path=${path}:< your SDK directory >/tools
You can then use the ADB command.
Too troublesome to install the students can actually save the above installation steps, directly enter the full path to use the command
For Windows XP users, you need to install the USB driver first
Android_usb_windows.zip (1.33 MB), then you can download this separate ADB toolkit if you only plan to use ADB and don't want to download the entire SDK
Adb_win.zip (571.56 KB) after download, the inside Adb.exe and AdbWinApi.dll two files into the system disk Windows/system32 folder can be
  
1. Determine the root of the phone, root permission to delete the system files AH.
2. Download the Android_db.rar and unzip it to%windir/%system32.
3. Connect the data cable to the phone, open cmd on the computer, and enter the command
ADB remount
ADB shell
Su
Once the execution is complete, you will see:
* Daemon not running. Starting it now *
* Daemon started successfully *
4. Then the Linux command line mode, enter
CD System/app
You will find no change, then enter the LS return.
This time the list shows all the files in the System/app, which is the ROM integration of some software.
5. Start deleting it. Like deleting YouTube, his file name is Youtube.odex and youtube.apk
We want to delete these 2 files and typed the following command:
RM youtube.*
Restart, YouTube has been deleted, pay attention to the students do not delete you do not know what is the thing.
Specify the amount of memory allowed for AVD:
EMULATOR-AVD avdname-partition-size 256
Start a simulator called Avdname, which allows for up to 256MADB of memory for several commands commonly used
1. View the device
ADB devices
This command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display
2. Installing the Software
ADB install
This command installs the specified APK file on the device
3. Uninstalling the Software
ADB uninstall < software name >
ADB uninstall-k < software name >
If you add the-K parameter, the software is uninstalled but the configuration and cache files are preserved.
4. Log in to the device shell
ADB shell
ADB shell
This command will log into the device's shell.
The subsequent add will be to run the device command directly, equivalent to executing the remote command
5. Send files from the computer to the device
ADB Push < Local path > < remote path >
Use the push command to copy files or folders on your computer to your device (mobile)
6. Download files from the device to the computer
ADB pull < Remote path > < local path >
Use the pull command to copy files or folders on your device (phone) to your local computer
7. Display Help information
ADB Help
This command will display the Help information
  
Remove the software that comes with the Android system ROM
The Android system does not have the ability to uninstall ROM-enabled software. Some students may want to delete the useless YouTube, want to delete the wall of Twitter.
Plus the Android shortcut can not be changed to not be able to sort the page.
Installing too many programs will find it hard to find what you want.
To sum up, I think it is necessary to tell you how to delete your own program. 1. Determine the root of the phone, and get root permission to delete the system files AH.
2. Download the Android_db.rar and unzip it to%windir/%system32.
3. Connect the data cable to the phone, open cmd on the computer, and enter the command
ADB remount
ADB shell
Su
Once the execution is complete, you will see:
* Daemon not running. Starting it now *
* Daemon started successfully *
4. Then the Linux command line mode, enter
CD System/app
You will find no change, then enter the LS return.
This time the list shows all the files in the System/app, which is the ROM integration of some software.
5. Start deleting it. Like deleting YouTube, his file name is Youtube.odex and youtube.apk
We want to delete these 2 files and typed the following command:
RM youtube.*
Restart, YouTube has been deleted, pay attention to the students do not delete you do not know what is the thing.
Specify the amount of memory allowed for AVD:
EMULATOR-AVD avdname-partition-size 256
Launches a simulator called Avdname, allowing up to 256M of memory

Excerpt from: http://jingyan.baidu.com/article/fcb5aff7f55c63edab4a7174.html

Use of Android ADB commands

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.