Ultimate Blog for Android Phone Owners
HOW TO: Install Android On An iPhone 2G
I’ve written up a tutorial for anyone to install Android on their iPhone 2G. It’s quite long, but only because it’s so simple and each step has been broken down to almost every click just so it’s easy for a total beginner to try this out!
Disclaimer
I take no responsibility for any damage you might cause to your phone by following this guide. Whether it gets bricked, blocked or eventually thrown out of the window, I can’t be held responsible. Use this guide at your own risk. Thanks!
Introduction
Today’s hype has all been about Android on an iPhone. As soon as I heard I knew what I’d be doing after work. Anyway, I’ve finally managed to get Android working and thought I’d write up a clear tutorial for anyone who wants to do it. Remember, I did this all on a Mac, but it should be possible on Windows or Linux too. Windows users just get the Windows version of VirtualBox.
The end result is far from a fully working Android system. It’s Android 1.6 with basic features – calls, texts, WiFi but no camera and probably a few Force Closes. It’s easy to upgrade Android versions once you’ve managed to get to the end of this tutorial so there’s no harm in getting the hard part out of the way now!
Downloads
Here’s a bunch of stuff that you’ll need before you start:
- IMPORTANT! Jailbroken iPhone 2G
- VirtualBox (link). Get the right version Windows/Mac
- VirtualBox Ubuntu Image (link). Download number 10, Ubuntu Linux 9.10 codename Karmic Koala x86
- iPhone Explorer (link). If you’re on Linux you can use FTP such as FileZilla instead.
- Android images and sources (link)
- Patched images (link). Courtesy of Geekoid.
Preparation
Let’s get some of the basics out of the way:
- Open Task Manager
- Kill the iTunes Helper process
- Install iPhone Explorer
- Connect your iPhone to your Mac/PC
- Run iPhone Explorer
- Click the Change Root button
- Select “/” Real iPhone Root Directory
- Browse to private/var
- Copy ramdisk.img, userdata.img, cache.img and zImage from Downloads#5 (Android images and sources) to that var directory
- Copy system.img and android.img.gz from Downloads#6 (patched images) to the that var directory
- That’s all the Android files on your iPhone, now to make them run!
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!
Well done on getting this far! This is where the fun beings (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!
Finishing Off
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
Good Night
I think this guide is plenty enough to help you get Android on your iPhone. As mentioned, it’s not the full OS yet, but hopefully we’ll see a lot more devs contributing and a lot of advancement of this project. It’s gotten quite late and I woke up really early so I’m heading off to bed. Feel free to mention any issues in the comments and I’ll try to help out tomorrow. I’ll also get some screenshots and videos up tomorrow too!
Credits
planetbeing – the man who did all the hard work!
WinXBlog – guide for getting openiboot running
Geekoid – for the full system images
marco79 for FAQs 3-6
The entire Android and iPhone dev communities, making all this stuff a reality!
Anyone I missed? Sorry if I have but feel free to tell me. I don’t want any credit for other peoples work.
FAQ
- My iPhone is bricked now, how do I fix it? Use the steps in the Bricked Phones section below to make your brick work
- It gets stuck at the baseband message? You’re probably using WinSCP for the file transfer. Use FileZilla instead and everything should work. Thanks Siddharth
- Problem: I cannot boot a second time into Android after succesful installation. It stops with “Welcome to iboot” console.
Solution: When selecting the os in the openiboot screen (Apple or Android), DON’T just single click the home button but keep it pushed for about 3 seconds! - Problem: I can’t add the downloaded ubuntu image to virtual media manager in VirtualBox
Solution: You have to unzip the archive. The extension “7z” means that it is a compressed (kind of) Zip file. Use any “7zip” capable unarchiver, i.e. Winrar, 7zip, BetterZip etc. - Problem: When i type ‘nor_read 0×09000000 0×0 1048576′ and press Enter the iphone reboots
Solution: Don’t copy and paste the string, type it by yourself! - Problem: In terminal, when running command ’su ./oibc’, I cannot type the password
Solution: Yes you can, you just won’t see it (no cursor). Just type it blind (and welcome to Linux shell btw).
Thanks to marco79 for FAQs 3-6!
Bricked Phones!
- If your iPhone appears bricked do a DFU restore, using these instructions:
1. Connect your iPhone to your computer.
2. Turn iPhone off.
3. Hold power and home together for 10 seconds (exactly).
4. Release power but keep holding home until the computers beeps (observed on a PC) as a USB device is recognized.
5. A few seconds later iTunes should detect your iPhone.
6. If the Restore Logo is present on the screen, you are in Recovery Mode, not DFU. - My iPhone is still bricked! Don’t worry it’s still not fully bricked. Just retry the above DFU steps every 5 minutes or so. People have reported that it can take up to an hour or two before the iPhone enters DFU mode
- Still bricked, are you taking the mick? Nope, no mick taking. Connect your iPhone to the mains wall charger. Hold down the power key for at least 10 seconds. Nothing will happen. Take it off the charger and connect to PC using the steps in #1. You should now be in DFU mode.
- OMG. Still no luck! Try these steps:
This trick worked under the windows XP.You need install LibUsb-Win32 drives on your PC.
1) Connect your iphone to the PC.
2) Hold Sleep(Power) button and Home button for 10 sec(exactly).
3)Holding the home button and leave power.
4)After few seconds you PC will recognize the usb drivers and itunes will detect the you iphone in restore mode.
Thanks to Macin for that!
Updates
Update 1 (23/04/10 11:05GMT): Added extra step to download fixed openiboot.img3 file in Setting Up Ubuntu section. Thanks to planetbeing
Update 2 (23/04/10 15:26GMT): Merged updated openiboot.img3 with the openiboot.zip download. Should work on all 2G’s now, regardless of jailbreak method.
Update 3 (23/04/10 21:17GMT): Updated Getting Android Working, step to get correct superuser permissions before attempting to write openiboot. Thanks blazter2k
Update 4 (26/04/10 12:13GMT): Reuploaded files for step 5 to multiupload (link)
| Print article | This entry was posted by Superhero on April 23, 2010 at 12:18 am, and is filed under Modding, News, Tutorials. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
- How To Install Android on Your iPhone – Step by Step
- Tutorial instalare Android OS pe iPhone 2G | Inspector Gadget – we inspect gadgets
- VIDEO: How to install Android on iPhone « Android A Lot
- How to Install Android on iPhone – Step by Step Guide [Video] | Redmond Pie
- How to install Android on iPhone 2G | ithinkdifferent
- Dual Booting iPhone OS 2G and Android OS « AlbaClips Blog
- iPhone Android OS: Guida Installazione | iPhonefunia
- Video tutorial para instalar Android en el iPhone 2G | [ Neuronal Training ]:
- Guide Step by Step: How to Install Android on iPhone [Video] | iPhone Firmware
- How to install Android on iPhone 2G « how to do
- Cum sa instalezi Android OS pe iPhone 2G | iPhone Help Desk
- Cum sa instalezi Android pe iPhone | iPhone – tutoriale jailbreaking, unlock, customizare, jocuri.
- How To Dual Boot iPhone and Android In 5 Easy Stages | areacellphone.com
- How to install Android OS on iPhone – Guide with Video | Sizzling Bit
- How to Install Android on iPhone | The Geek Engineer
- Come installare Android su iPhone 2G [Video] – Tutto Android
- Instructions for installing Android on older iPhones released | Iphone India
- Here’s how to install Android on your iPhone 2G | Saoud Rana's Thoughts
- tuto installer Android sur iPhone
- Here’s how to install Android on your iPhone 2G : BlogLime
- Here’s how to install Android on your iPhone 2G – ditted
- Here’s how to install Android on your iPhone 2G | Technology & Lifestyle Tech News
- Life Stream Digest as of April 25th | fuzzz.gaulin.ca
- Here’s how to install Android on your iPhone 2G | Gadget News
- Here’s how to install Android on your iPhone 2G | News on Fire
- Here’s how to install Android on your iPhone 2G | Informasi Terkini, Berita Hangat, Gosip, Selebritis, News Update, Download Software, Artikel Gratis, Software Gratis, Tutorial Komputer, Download Software Gratis
- Here’s how to install Android on your iPhone 2G | Cell Phone Tracking Blog
- Here’s how to install Android on your iPhone 2G | SISAREA
- Here’s how to install Android on your iPhone 2G | InfoFork.com
- Here’s how to install Android on your iPhone 2G | Electronically Gifted Minds
- Here’s how to install Android on your iPhone 2G | Sanjiv's Blog
- Korptix Computer Services Blog » Blog Archive » Here’s how to install Android on your iPhone 2G
- Here’s how to install Android on your iPhone 2G | PcDoctor Joel
- Here’s how to install Android on your iPhone 2G | E-Z Life
- Android on iPhone « logicka – Code is Art.
- How to install Android on the iPhone « MobileTechWorld
- Standroid
- Here’s how to install Android on your iPhone 2G | Techne.ws
- Here’s how to install Android on your iPhone 2G | CPUTER.COM
- Here’s how to install Android on your iPhone 2G | Miniquestion.com
- Here’s how to install Android on your iPhone 2G « Tech Pulse!
- iDroid – Tutoriel pour installer Android sur un iPhone 2G « how to do
- Custom Android Build Enables Installation on iPhone Hardware : Test Drive
- Custom Android Build Enables Installation on iPhone Hardware | ComputerDumb.com
- Funny Gadget Gifts | Here’s how to install Android on your iPhone 2G
- Android running on iPhone! | Wiki for Android
- Android on iPhone: step-by-step Installation Instructions | Blog | HTCYou
- iPhone 2G装Android说明书(英文) | InAndroid
- Así se instala Android en un iPhone 2G at ES.HADNEWS.COM
- Así se instala Android en un iPhone 2G | Vaya Huevos
about 3 years ago
i cant get ubuntu to be recognized by virtual box
what do i do?
about 3 years ago
Are you on Windows or Mac?
What specific problem are you having? Which Virtual Image did you download?
about 3 years ago
Dude you just made this sound so easy! I can’t wait to try this soon using my ubuntu system.
Thanks.
about 3 years ago
Hi!
Thanks for your steps but you should correct #4 at Getting Android working.
Your text is “# Hold down the power button a couple of seconds (iPhone)” when it should be “# Press the power button (iPhone)”
Pressing down a couple of seconds launches Android instead openiBoot console. Although this can be useful to try Android without installing it ! I did and played a few minutes with it.
Anyway, I get a brick after “reboot” when finished openiBoot like following PlanetBeing instructions… Can you help me ?
Best regards, and please, correct your #4 as I told you.
Soukron
about 3 years ago
Sorry, I just read again and… you are right! I misread!!
Anyway, what about the brick after “reboot” command?
about 3 years ago
I followed all the steps until I received Installation done, and Refreshing Image… and my iphone hang got no response for few minutes… So, i thought the process is done, and I try to enter reboot, there is no response from the phone. So I hold the power and home button to restart …. after that …
My Iphone is dead … cannot power on, holding the power button or home button got no response .. anyone can help on this matter?
about 3 years ago
Can you get into recovery? Turn off, hold down Home and connect to USB. This should work and then you can remove openiboot using QuickPwn and try again.
Everyone who’s having problems, please can you state how your iphone was jailbroken. Thanks
about 3 years ago
I used same
Did the same thing and now my iPhone is also a paper weight… I used Blackra1n or pwnagetool… can’t actually remember… a while ago… But the iPhone is DEAD. You can’t turn it on. i have tried anything. And you can’t restore either. it is dead / in coma…
about 3 years ago
Assuming everything went fine, is there a possibility to remove all this openIboot stuff and android again afterwards?
Do I have to simply restore the iPhone to achieve that?
Thx for the great tutorial. Will definetly try it out this weekend.
about 3 years ago
@cem2ran, did you download the updated openiboot.img3 and replace the old one?
EDIT: I’ve now merged the new openiboot.img3 with the openiboot.zip archive. Remove the old openiboot folder on Ubuntu, download the new version and then try again!
@marco79 – yes, just run QuickPwn on it.
Important!!!! For those with bricked phones, just do a DFU restore!!
1. Connect your iPhone to your computer.
2. Turn iPhone off.
3. Hold power and home together for 10 seconds (exactly).
4. Release power but keep holding home until the computers beeps (observed on a PC) as a USB device is recognized.
5. A few seconds later iTunes should detect your iPhone.
6. If the Restore Logo is present on the screen, you are in Recovery Mode, not DFU.
about 3 years ago
Hey there! first of all, thanks for the great post. I got up to the part where I have to load openiboot.img3 and it says that I don’t have permissions to write to the device and that it is not in recovery mode… but it is in recovery mode.
I jailbroke with with Sn0wbreze
about 3 years ago
Did you do the step before it, selecting the iPhone (Recovery Mode) from the Devices menu in VirtualBox?
In that menu does it actually say iPhone (Recovery Mode), with a tick next to it once selected?
Also, I just (about 5 minutes ago) updated the zip file in step 8 of Setting Up Ubuntu. Delete your current openiboot folder, download the new version and let me know if it works!
about 3 years ago
It says Apple Mobile device (recovery mode) and I checked it.
about 3 years ago
ubuntu@ubuntu-desktop:~/Downloads/openiboot$ ./loadibec openiboot.img3
libusb couldn’t open USB device /dev/bus/usb/001/002: Permission denied.
libusb requires write access to USB device nodes.
open_device: unable to connect to device.
your device must be in recovery mode.
Here
about 3 years ago
Update: Sorry for the triple post, I installed the openiboot (By putting sudo ./loadibec openiboot.img3.. I added sudo in front) but it is stuck at reading baseband nvram and I dont see the device in ubuntu
about 3 years ago
I also have bricked my iphone
DFU mode is not working at all!
about 3 years ago
@Eli – don’t worry, I’m going home in about 15 minutes. I’m going to reset my phone and remove Android and then do the whole process again starting with jailbreak, to make sure everything is right!
PS: Did you try with the updated openiboot.zip that I mentioned in my previous comment?
I’ve put more guides of getting out of bricked mode in the FAQs.
about 3 years ago
I also have the no permission problem. It says Apple Mobile device (recovery mode) too. It´s a fresh 2G 3.1.3 jailbroken with PwnAgeTool 5 minutes ago
.
about 3 years ago
I’ve tried all items from the FAQ list. No one is worked.
about 3 years ago
This may be a stupid question but can you make it run for iPod touch too?
about 3 years ago
iPhone bricked?
about 3 years ago
Well he posted only a few minutes after I posted the FAQ so I doubt it – one of the FAQs says to wait an hour or two!
Just hold off for a while. I’m taking Android off and repeating the whole thing again to make sure the tutorial isn’t missing anything, and if it bricks I’ll tell you the method that definitely unbricks!
Have a look here for a running video of it working: http://androidalot.com/modding/video-iphone-running-android/
about 3 years ago
Now doing DFU, hopefully it will work and i can follow the steps once again …definitely want to get android works today .. !!
about 3 years ago
People with bricked/dead iPhones!
I had to plug my iPhone to the wall charger, turn it on(the screen is still off) and then plug it to my mac again(remember to reboot) where it was recognized as a iPhone in DFU mode. Restore and you are going. I have successfully installed android by using the new openiboot… But i have problems using the system. It doesn’t recognize screen input.
about 3 years ago
Alright, so this is where I am at this point. I Followed every step of the guide untill it says “Type reboot” after the reboot I went down to the correct icon and held down the home button. When I do it doesn’t load the Android OS. I’m almost positive I moved over all the right files via SSH but I can’t check now because I have no WiFi connection where I am and can’t get on to my phone. but could that be the problem? would I be able to fix it all by just moving over all of the android files again to the right /private/var directory?
about 3 years ago
for the permission problem:
first sudo su —> password
sudo ./loadibec openiboot.img3
that worked for me
about 3 years ago
is it possible to run the android on an iTouch 2g?
about 3 years ago
@cem2ran – nice to know that worked for you. Screen input should work. Have you used the patched images from step 6?
@Eli – yes, try copying the files over again, and remember to use the patched android and system file
@kamil waheed – no, not yet anyway
about 3 years ago
Hi. I wonder if anyone can help me.
When i type the nor_read 0×09000000 0×0 1048576 command – my iphone reboots to the regular iphone os and i dont get the message “done”.
I would really like to get that backup of my nor before i install openiboot.
thanks!
about 3 years ago
Everytime I enter the nor_read 0×09000000 0×0 1048576 command the phone reboots.
I decided to change it to nor_write 0×09000000 0×0 0×100000 (I read that its what I needed to do on hackint0sh forum) and that worked but then when I got to the reboot part the phone bricked. I eventually got it into DFU mode, so Its not bricked anymore.
But am I the only one who is having nor_read 0×09000000 0×0 1048576 reboots?
about 3 years ago
Hi,
Everything has been installed properly, however android does not want to unlock my sim card, connect to wifi …
Any idea? (I used the last patched image version and openiboot)
about 3 years ago
Quick question … once you boot up android .. how do you turn it off ? or reboot back to openiboot ???
about 3 years ago
Yeah I’m a bit concerned about what the options were on the custom image file from Geekoid. I also can not connect via wifi (did he include the Marvel drivers?), and get no service for the phone even though it works in the Apple OS.
Great tutorial though.
about 3 years ago
Everything went fine but when I try to boot into Android when it gets to
radio: reading baseband nvram… Done
It just stops.
Any ideas? I have patched images from above. I’ve reloaded them multiple times. Still the same result.
about 3 years ago
Qn: Does this work on 1st Gen iPod Touch(jailbroken) ?
Comments: Nice tut there but I think you should specify the firmware version of the iPhone to be used and which jailbreaking software to use. I’m on 3.0.0 jailbroken with redsn0w, yeah didn’t bother to update!
about 3 years ago
redid it all and I was able to buut back into apple but I still get hung up on the Welcome to openiboot screen…
about 3 years ago
actually- scratch that. now my newest problem is that when I try to select the iphone (openiboot mode) under usb devices, virutalbox gets a “failed to attach” error. on my iphone screen it flashes a bunch of usb state changes. anyone know why it can’t link properly?
about 3 years ago
I installed everything again after haivng a bricked iphone..lol Anways, I restarted it and chose the iboot icon and it loaded up but said Welcome to Openiboot….it stays at that…I also learned that I tried to boot into apple and it just goes to a white screen..any ideas?
about 3 years ago
Hey i just bought a iphone 2g for 20$ what do you recomend using to jail break the iphone? i know of blackra1n and blacksn0w and PwnAgeTool, which do you suggest using?
about 3 years ago
Hey- Followed every step perfectly, up until #4. in “getting android working”- In the terminal type ./loadibec openiboot.img3
did this, and even tryed sudo ./loadbec openiboot.img3
every time got:
./loadibec: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory
anyone get this error or know how to fix it?
about 3 years ago
Ok. New problem.
Getting Android Working
Step 10: In terminal type su ./oibc
Step 11: I put my own password
Step 12:???? I dont see any text other than the command i had typed. Anyone knows what i am doing wrong here??
about 3 years ago
I got to the following step:
“Press Home (iPhone). You’ll see a bunch of text appear and stop at “Welcome to openiboot”
However, the “Welcome to Openiboot” text is distorted. Then, when I go to “Devices>USB Devices>Apple Inc. Apple Mobile Device (OpenIBoot Mode) [1103]” it says this:
“Failed to attach the USB device Apple Inc. Apple Mobile Device (OpenIBoot Mode)[1103] to the virtual machine Ubuntu.
USB device
‘Apple Inc. Apple Mobile Device (OpenIBoot Mode)’ with UUID {1e3722cd-e58a-4ade-863c-7f6ff1de7915} is busy with a previous request. Please try again later.”
Then I just turned the iPhone (2g) off and restarted it again in Recovery Mode. After all that text goes by, it keeps stopping at the distorted “Welcome to openiboot” and not letting me proceed. Obviously my phone isn’t bricked because I can still boot into Apple OS and use everything. Can someone please help me? Thanks.
about 3 years ago
Does it work for iPod touch 2nd gen?
about 3 years ago
worked like charm
about 3 years ago
Hey there,
When i am done with step 8 of “Getting Android Working”, the step 9 throws up an error in VirtualBox.
The error reads: “Failed to attach the USB device Apple Inc etc etc etc
And
“busy with a previous request. Please try again later”
Anyone else has faced this problem and maybe has a solution to it???
Cheers….
about 3 years ago
This is a great how-to. I have got through the entire instructions with no problem and have everything installed. So i go back to openiboot and try to load android. It loads and sits at: “radio: reading baseband nvram… done” I know it’s supposed to take a while, but how long? I have let it sit for 15mins with no results. The phone reboots fine with home+power back to openiboot
about 3 years ago
Excellent guide! Everything worked except usb devices on ubuntu in a VM (I just used a spare live cd I had around). Also I forgot to save my backup, which hopefully doesn’t come back to bite me. THANKS
about 3 years ago
I am having the same problem as several others where it gets stuck at “radio: reading baseband nvram”. Ive wiped the phone twice and tried everything to the letter multiple times. Same results. Any thoughts or help?
Thanks for your effort!!
about 3 years ago
For those who have the problem that the iphone boots after you try reading the NOR memory:
when i used copy/paste on the command it didnt work, but if i typed it myself, it worked…
maby there is something fishy about copy/paste between the OS and virtualbox. hope it works out.
Great tutorial! thanks!
about 3 years ago
I had the same problem, but i went back and checked the files in iphone explorer. It seems like it didnt copy all of them – so i redid it by copying one file at the time. now it works