Android Common Command Collection

Source: Internet
Author: User

1CMD command Android, the Sdkand AVD Manager interface appears, showing the SDK version information.

2CMD command Android list Avds, the created Android emulator will appear.

The 3CMD command Android list targets will list all available versions of the SDK.

4CMD command ADB devices list all mounted settings

5CMD command the ADB shell will enter the device root directory to gain control of the device, such as the input LS command, etc.

6ADB install xxx.apk. This command installs the APK file, and if you have multiple devices (and you want to install the APK into the emulator-5554 emulator), enter: adb install-s emulator-5554 d:/ xxx.apk.

7EMULATOR-AVD Avdname

This command will start an emulator and learn this, so you don't have to open eclipse the next time you start the simulator.

8.mksdcard 256M d:\sdcard.img

For the simulator, of course, to create a sdcard, this command will be generated under the D-Disk 256M sdcard.

9.ADB pull <remote> <local>/adb push <local> <remote>.

After we have created the sdcard, we need to put something in it, or get it out, and use the above command. With ADB push (store things outside the sdcard.) For example, use the following: ADB push foo.txt/sdcard/foo.txt

10.android Create AVD--name Android2.0--target 5

This is the command to create the AVD. --name is followed by the name of the AVD, Target is the SDK version. This statement creates an AVD with the name Android2.0 and version 5.

You can use Android list Avds to finish the creation. See if a success has been created.

11.ctrl + F11 Key Usage

When we start the simulator, it's usually port mode, and if we want to see the effect on land, the combo button is used.


This article is from the "Code of Things" blog, be sure to keep this source http://hw168.blog.51cto.com/10425348/1673292

Android Common Command Collection

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.