Guest Paul Posted July 8, 2009 Report Posted July 8, 2009 I am currently using the Android emulator on my machine with a copy of the excellent Cyanogen 3.6.5 ROM I am running on my device. If you'd like to do the same, here's how (it's a great way to play with things like the Android Market that aren't in the real emulator!) Windows PC 1. Download the Android SDK (which includes the emulator) from here. 2. Extract the downloaded zip. 3. Run a command prompt, and change to the 'tools' directory of the SDK (or add the tools directory to your path). 4. Type 'android list target' 5. Note the 'id' number of the '1.5' target (in my case it's '2') 6. Type 'android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required) 7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. ;) 8. Download and unzip this image file. 9. Copy the above file to the location of the enhanced.avd directory ('C:\Documents and Settings\<user>\.android\enhanced.avd' on Windows XP, and 'C:\Users\<user>\.android\enhanced.avd' on Windows Vista). 10. You're ready! Type 'emulator -avd enhanced' to run! Note: inital boot may take a few minutes! If you get Java errors, you need to download the JDK for your system from here! Mac OSX 1. Download the Android SDK (which includes the emulator) from here. 2. Extract the downloaded zip. 3. Run Terminal, and change to the 'tools' directory of the SDK (or add the tools directory to the path settings in ~/.profile). 4. Type './android list target' 5. Note the 'id' number of the '1.5' target (in my case it's '2') 6. Type './android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required) 7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. :D 8. Download and unzip this image file. 9. Copy the above file to ~/.android/avd/enhanced.avd/system.img (e.g. if you saved it to and unzipped it to downloads enter 'cp ~/Downloads/system.img ~/.android/avd/enhanced.avd/system.img') 10. You're ready! Type './emulator -avd enhanced' to run! Note: inital boot may take a few minutes! If you get Java errors, you need to download the JDK for your system from here! :) P
Guest zombiefly Posted July 8, 2009 Report Posted July 8, 2009 (edited) hi, followed the instructions, had problems with java so installed from the link provided, however i'm still getting this: D:\android-sdk-windows-1.5_r2\tools>android list target Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/s dkmanager/Main (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Tools dir is added to system path variable. I'm using windows xp. Thanks ZF Edited July 8, 2009 by zombiefly
Guest Russ-ST24 Posted July 8, 2009 Report Posted July 8, 2009 Hi Paul, Thank you for putting together this quick tutorial. I am very tempted by an Android device as I have various WinMo devices with custom ROMs and an iPhone 3Gs but am never satified. Did you by chance know how I can run a HERO ROM in the emulator? I am very interested in the Hero and would like to play in the emulator. I can find the ROM just need to know if I need any special settings to get it to work. Many thanks Russ
Guest Paul Posted July 8, 2009 Report Posted July 8, 2009 I haven't managed to get a Hero ROM running, and I don't actually think it's possible because of the Kernel in use (but I could be wrong)... P
Guest Paul Posted July 8, 2009 Report Posted July 8, 2009 Zombiefly, did you install the JDK from above, not just the JRE? P
Guest zombiefly Posted July 8, 2009 Report Posted July 8, 2009 (edited) Zombiefly, did you install the JDK from above, not just the JRE? P I installed the file that I downloaded from the link... which was : jdk-6u14-windows-i586.exe Do i need to update the JRE too? i'll give that a go now... edit: nope, that made no difference. Will try this on my home pc this evening ;) Edited July 8, 2009 by zombiefly
Guest Paul Posted July 8, 2009 Report Posted July 8, 2009 No, you should be sorted I would have thought - odd! P
Guest Russ-ST24 Posted July 8, 2009 Report Posted July 8, 2009 I haven't managed to get a Hero ROM running, and I don't actually think it's possible because of the Kernel in use (but I could be wrong)... P Thats a shame, I will play this rom in the emulator. Having trouble finding the Calendar on this ROM? I am being thick? Thanks Russ
Guest Paul Posted July 8, 2009 Report Posted July 8, 2009 You're right! Where the hell has the Calendar gone! ;) Investigating! P
Guest Russ-ST24 Posted July 8, 2009 Report Posted July 8, 2009 You're right! Where the hell has the Calendar gone! ;) Investigating! P Web browsers seems to have done a runner too! When I use the google search bar it just crashes with acore. Russ
Guest Blinkerz Posted July 11, 2009 Report Posted July 11, 2009 I think you can try out several Hero roms that has been "Cyanogenized" (they have the Cyanogen Kernel)
Guest l3v5y Posted July 13, 2009 Report Posted July 13, 2009 Oops, needs some work methinks! ;) P Is it due to the Apps2SD thing used in quite a lot of android ROMs?
Guest Russ-ST24 Posted July 15, 2009 Report Posted July 15, 2009 Ok, So have anyone got a fully working ROM for this emulator? I just want to test out IMAP Secure mail etc before I buy a Hero. Thanks Russ
Guest Russ-ST24 Posted July 15, 2009 Report Posted July 15, 2009 Hi, I am using this for some testing and I need to connect to an IMAP server on port 993 for SSL IMAP but with a self signed cert. The OS is too protective and says security issue! and wont let me past. Anyone know how to add your own trusted certs into android? Also I guess as the brower is missing it wont download anything from the marketplace :-( Thanks Russ Dont care about the emulator just want to know if its possible on the real deal.
Guest baka_neko Posted July 26, 2009 Report Posted July 26, 2009 i tried this but i got stuck at boot loop. it brought me up to the page where it says click on android to continue setup of google account. i try to click on the android, nothing happens. the hardware buttons work but the touch screen does not. After 1min or so it reboots. FYI it works perfectly without the cyanogen's image
Guest zencloud Posted July 28, 2009 Report Posted July 28, 2009 (edited) Paul, Many thanks for this very usefull guide :-) Is there a way to create an update-cm-3.9.1-signed.system.img.zip for current cyanogen version ? http://forum.xda-developers.com/showthread.php?t=539744 It would be great to find a way to test cyanogen versions on the emulator Edited July 28, 2009 by zencloud
Guest zencloud Posted July 29, 2009 Report Posted July 29, 2009 Here you have 3.9.1 thanks to Bavilo: http://sharebee.com/7b5ff589 it works fine in the emulator :-)
Guest zencloud Posted August 8, 2009 Report Posted August 8, 2009 (edited) JacxHero 1.1 working on the emulator: http://www.4shared.com/file/123670697/9f01c4e6/system.html big thanks to MikeIzFresh Edited August 8, 2009 by zencloud
Guest reesd Posted August 11, 2009 Report Posted August 11, 2009 Here you have 3.9.1 thanks to Bavilo: http://sharebee.com/7b5ff589 it works fine in the emulator :-) Can someone point me to the steps for how to create a system.img from a custom ROM like cyanogen? I've been surfing around and am obviously missing some key understanding about how the system.img relates to the updates.zip these guys are now distributing their ROMs as. Thanks, d
Guest reesd Posted August 13, 2009 Report Posted August 13, 2009 JacxHero 1.1 working on the emulator: http://www.4shared.com/file/123670697/9f01c4e6/system.html Using this system.img in the emulator I am having two issues that are keeping me from getting through the initial setup. I am first getting the error message "google talk service (process com.google.process.gapps) has stopped unexpectedly" and my only choice is to Force Close. Then after I enter my gmail info I get the error message "Can't establish a reliable data connection to the server." I am using target 2 with SDK 1.5r3. I have successfully used the Cyanogen 3.9.1 a few times with other AVDs, so I think I have the process right and its something different with this image. I've attached a screenshot of each error and the log from ddms. Anyone have any suggestions on what I can try? Thanks, davejackhero.log.txt
Guest Paul Posted August 13, 2009 Report Posted August 13, 2009 Best way is probably to create a nandroid backup from your modified recovery image, then copy the system.img that it creates from your SD card? P
Guest reesd Posted August 13, 2009 Report Posted August 13, 2009 (edited) Can someone point me to the steps for how to create a system.img from a custom ROM like cyanogen? I've been surfing around and am obviously missing some key understanding about how the system.img relates to the updates.zip these guys are now distributing their ROMs as. Best way is probably to create a nandroid backup from your modified recovery image, then copy the system.img that it creates from your SD card? Thanks, I was wondering if there is someway to do it without installing it on a device first. Or is there a way to run a recovery.img on the emulator? d Edited August 13, 2009 by reesd
Guest zencloud Posted August 16, 2009 Report Posted August 16, 2009 (edited) This is the right way to use the JacxHero system.img on the emulator: http://www.mediafire.com/?f5edzmhh3gt emulator.exe -avd jacxhero -system system.img -partition-size 150 -sdcard sdcard previously you have to create an avd named jacxhero and also create a sdcard using mksdcard.exe Edited August 16, 2009 by zencloud
Guest Misiek_ud Posted September 8, 2009 Report Posted September 8, 2009 (edited) I have question to the author of this thread. How did you run market service, I can't log in using emulator? And one more question. How should I use mksdcard.exe? When I start it, it shows for a second and disapear. :) Edited September 8, 2009 by Misiek_ud
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now