Android Port For iPhone [Step By Step Guide]
Those of you who cannot afford to buy an extra Android phone can now test Android on your iPhone itself. An Android port for iPhone is now available, including a step by step video guide. Thanks to PlanetBeing who came up with the Android port, and Android A Lot, who has given a detailed guide as to how to install Android on your iPhone 2G.
Disclaimer: This guide is for educational purposes only. Use it at your own risk. We cannot be held responsible if you brick your iPhone.
What you need:
1. A jailbroken iPhone 2G.
Follow our guide to jailbreak iPhone firmware 3.1.3 with Sn0wbreeze (Windows), or using PwnageTool (Mac OSX), or redsn0w 0.9.4.
2. VirtualBox (Windows/Mac OSX: Get the version for your needs).
3. Ubuntu image for VirtualBox. The latest Ubuntu release is 9.10 Karmic Koala.
5. Android images and sources.
6. Patched images.
Transferring Android Files To iPhone
1. First kill iTunes Helper process by going to Task Manager.
2. Run iPhone Explorer and click the Change Root button.
3. Select “/” Real iPhone Root Directory
4. Browse to private/var
5. Copy all the image files downloaded in step 5 (ramdisk.img, userdata.img, cache.img and zImage) and step 6 (system.img and android.img.gz) to the var directory.
Setting Up Virtual Box
- Install VirtualBox
- Open VirtualBox
- Go on File > Virtual Media Manager
- Make sure Hard Disks is selected
- Click Add
- Locate the ubuntu-9.10.vdi file (download#3) and select it
- Close Virtual Media Manager
- Go on Machine > New
- Click Next
- Under Name enter “Ubuntu”
- Select Linux Operating System
- Select Ubuntu Version
- Click Next
- Set an amount of RAM, the default should be fine
- Click Next
- Select “Use existing hard disk”
- Select the ubuntu-9.10.vdi
- Click Next
- Click Finish
- Select that new machine to start up Ubuntu
- The password to login is: reverse
Setting Up Ubuntu
Almost there – if this feels a bit long, just consider how short and simple each step is!
- Click System (top bar) > Administration > Synaptic Package Manager
- Enter the password: reverse
- In the quicksearch box, type libusb-1.0, click the Check Box next to libusb-1.0-0 and select Mark for installation
- In the quicksearch box, type libreadline, click the Check Box next to libreadline5 and select Mark for installtion
- Click Apply
- When it’s all installed close the Package Manager
- Open Firefox (in Ubuntu)
- Download openiboot installer from here
- Click Places (top bar) > Downloads
- Right-click openiboot.zip and click Extract Here
- Click Applications (top bar) > Accessories > Terminal
- Without the quotes, type ‘cd Downloads/openiboot’
- Restart your iPhone in Recovery Mode (power off, hold down Home button, connect to USB cable)
Getting Android Working!
Credits to WinX Blog for these instructions – link.
- In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (Recovery Mode)
- In the terminal type (without quotes): ’sudo su’
- Enter the password: reverse
- In the terminal type ./loadibec openiboot.img3
- You’ll see the OpeniBoot screen appear on your iPhone
- Hold down the power button a couple of seconds (iPhone)
- The bottom option, openiboot console, will become selected
- Press Home (iPhone). You’ll see a bunch of text appear and stop at “Welcome to openiboot”
- In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (OpeniBoot Mode)
- In terminal type su ./oibc
- Enter the password: reverse
- If this doesn’t work just type: ./oibc
- You’ll see the same text from the iPhone in the Terminal
- Type (without quotes) ‘nor_read 0×09000000 0×0 1048576′ and press Enter
- Wait for it to say Done
- Type (without quotes) ‘~norbackup.dump:1048576′
- This creates a backup of your NOR memory – save a copy on USB stick, or email it to yourself or something
- Type install, press Enter. When this is done you’ve got openiboot installed on your iPhone. You’re done!
Getting Android To Run On iPhone
What you’ve achieved up til now is Android files on your iPhone, and then installing openiboot so that you have an option to start iPhone OS or Android when you turn on your phone. Openiboot was necessary because that’s the only way right now that you can boot into Android. Here’s how to finish off and get into Android:
- If you still have Terminal open with the oibc still running, just type ‘reboot’, press Enter and skip to step 3
- If you don’t have Terminal open, disconnect your phone, turn it off and back on
- When openiboot appears press Power button to switch to openiboot console (bottom option)
- Hold down the Home button
- Android will start to boot, but it might take a while
That’s it. You now have a fully working Android 1.6 on a dual boot on your iPhone. This port has all the basic features working, including calls, SMS, WiFi. However the camera app is not yet supported.
Here is the video guide: