-
Notifications
You must be signed in to change notification settings - Fork 2
/
Android_emulator.txt
104 lines (81 loc) · 3.33 KB
/
Android_emulator.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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