Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
105 lines (81 sloc) 3.33 KB
Android emulator
#####################
Information and Tutorials about the android emulator
#####################
###########################
#1 How to run?
#2 Where to find the *.img
#
#
#
#10 How to compile a custom emulator
# list of references
###########################
####################
# 0 Easy run of own Build
####################
1. Install latest SDK (in /opt/android-sdk_linux_x86_r12/)
2. copy ramdisk.img and system.img out of /out/target/product/generic
3. run /opt/android-sdk_linux_x86_r12/tools/android
and create a AVD (android-Virtual-Device) with 2.3.3
4. call emulator:
$ /opt/android-sdk_linux_x86_r12/tools/emulator -avd test_2.3.3 -ramdisk ~/Uni/tmp/generic/ramdisk.img -system ~/Uni/tmp/generic/system.img
AVD 2.3.3 works also with a 2.3.4 Build
####################
#1 How to run?
####################
Beispiel von Patrik.Latz [7]
emulator -avd name -kernel ~/zImage -ramdisk ~/tdroid/tdroid-2.1_r2.1p/out/target/product/generic/ramdisk.img -image ~/tdroid/tdroid-2.1_r2.1p/out/target/product/generic/system.img &
emulator -avd my_Android -kernel /opt/android-sdk_linux_x86/platforms/android-10/images/kernel-qemu -ramdisk /opt/android-sdk_linux_x86/platforms/android-10/images/ramdisk.img -image /opt/android-sdk_linux_x86/platforms/android-10/images/system.img &
we need following [1]
-sysdir
-datadir
-kernel /opt/android-sdk_linux_x86/platforms/android-10/images/kernel-qemu
-ramdisk /opt/android-sdk_linux_x86/platforms/android-10/images/ramdisk.img
-system /opt/android-sdk_linux_x86/platforms/android-10/images/system.img
-data ~/.android/avd/my_Android.avd/userdata.img
-cache ~/.android/avd/my_Android.avd/cache.img
-sdcard ~/.android/avd/my_Android.avd/sdcard.img
-snapstorage /opt/android-sdk_linux_x86/tools/lib/emulator/snapshots.img
# important!!!
###############
./emulator \
-sysdir /opt/android-sdk_linux_x86/platforms/android-10/images \
-kernel /opt/android-sdk_linux_x86/platforms/android-10/images/kernel-qemu \
-ramdisk /opt/android-sdk_linux_x86/platforms/android-10/images/ramdisk.img \
-system /opt/android-sdk_linux_x86/platforms/android-10/images/system.img \
-data ~/.android/avd/my_Android.avd/userdata.img \
-cache ~/.android/avd/my_Android.avd/cache.img \
-sdcard ~/.android/avd/my_Android.avd/sdcard.img \
-snapstorage /opt/android-sdk_linux_x86/tools/lib/emulator/snapshots1.img
=> wähle anderen snapshot!
-> läuft!
###################
####################
#2 Where to find the *.img
####################
$ hanno@odin:~/.android$ find . -name '*.img'
./avd/my_Android.avd/userdata-qemu.img
./avd/my_Android.avd/sdcard.img
./avd/my_Android.avd/cache.img
./avd/my_Android.avd/userdata.img
$ hanno@odin:/opt/android-sdk_linux_x86$ find . -name '*.img'
./tools/lib/emulator/snapshots.img
./platforms/android-10/images/userdata.img
./platforms/android-10/images/ramdisk.img
./platforms/android-10/images/system.img
./platforms/android-8/images/userdata.img
./platforms/android-8/images/ramdisk.img
./platforms/android-8/images/system.img
./platforms/android-7/images/userdata.img
./platforms/android-7/images/ramdisk.img
./platforms/android-7/images/system.imgls
####################
#10 How to compile a custom emulator
####################
-> look at Android_ATrace.txt -> Instalation: 2nd TRY
#########
#Quellen / list of qreferences
[1] emulator -help-disk-images | less
[2]
[7] http://code.google.com/p/droidbox/wiki/Compile