Command Run Andorid simulator

Source: Internet
Author: User

At the Linux terminal, enter:

xxnan@xxnan-pt:~/android/android-sdk-linux/tools$./EMULATOR-AVD android4.0.3

is to open the simulator you created.

~/android/android-sdk-linux/tools$ Directory is the SDK's tools directory, android4.0.3 is the name I created the simulator.

Such as

In general, we sometimes develop changes in the source content, and then compiled, and finally repackaged system.img to the simulator to see the effect (in the source directory make Snod),

So how do you system.img,userdata.img and ramdisk.img when the simulator starts loading?

Generally we use the command:

Remember to go under the tools directory of the SDK:

xxnan@xxnan-pt:~/android/android-sdk-linux/tools$./EMULATOR-AVD Android4.0.3-kernel Source/prebuilt/android-arm/ Kernel/kernel-qemu-armv7-system

System.img path/system.img-data userdata.img path/userdata.img-ramdisk ramdisk.img path/ramdisk.img

The following are my paths:

[Plain]

XXNAN@XXNAN-PT:~/ANDROID/ANDROID-SDK-LINUX/TOOLS$./EMULATOR-AVD android4.0.3

-kernel ~/android_source/android_4.0.3/prebuilt/android-arm/kernel/kernel-qemu-armv7

-system ~/android_source/android_4.0.3/out/target/product/generic/system.img

-data ~/android_source/android_4.0.3/out/target/product/generic/userdata.img

-ramdisk ~/android_source/android_4.0.3/out/target/product/generic/ramdisk.img

This will be able to load system.img,userdata.img and ramdisk.img when the simulator is started, and see the effect of modifying the source code in the simulator.

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.