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. |
about 3 years ago
to turn it off hold power + home for some secs
about 3 years ago
For people (like me) getting stuck at ./loadibec opeiniboot.img3, I think I’ve found the solution.
I used the Spirit Jailbreak (because I’m on 3.1.3). Spirit is incompatible with openiboot (see this page http://www.idroidproject.org/forum/viewtopic.php?f=6&t=192&start=10 )
Need to use redsn0w and go back to 3.1.2
I’ll be trying this tonight
about 3 years ago
why does my touch not working on android? i can’t touch any key. =(
about 3 years ago
Hey guys!! Having problems with this part (In the terminal type ./loadibec openiboot.img3)
when iam typing all the text i recieve:
open_device: unable to connect to device.
your device: must be in recovery mode.
PS iphone in recovery mode somehow nothing happens
about 3 years ago
Found solution.After windows Update installed drivers for iphone recover it finally started to process.But sadly on the next stage it not switching iPhone (OpeniBoot Mode) And WU dont appear
about 3 years ago
Hello, after install and reboot, my iphone is stopped on “radio: reading baseband nvram…done”. Can you help me?
about 3 years ago
when i type ./oibc it just repeats with
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot#
and nothing happens on the iphone screen or on ubuntu.
also su ./oibc does not work either says unknown id
so what do I need to do or what am I doing wrong?
about 3 years ago
Pierre i think you have the same problem like me. Iphone is not connected to iPhone (OpeniBoot Mode).See if it is connected or not.There must be a tick pointed in Devices > USB Devices
about 3 years ago
I got this all working, but the phone doesn’t seem to connect to any network or wifi. Any ideas/suggestions to fix it?
about 3 years ago
my windows is unable to recognise iphone in iboot mode hence could not load driver for it, i guess this the main problem for the ./oibc command not to work on my iphone in openiboot mode, please help what should i do to load the driver
about 3 years ago
Android Installed with helpful suggestions from
http://www.idroidproject.org/forum/viewtopic.php?f=6&t=192&start=10
First, needed to use redsn0w not Spirit jailbreak
In Windows XP (for me), I needed to re-add the iPhone once in openiboot mode
Android now boots, but I get no network connectivity. It connects to my WiFi, but I can’t use the browser. And it will not find AT&T (it works fine in iPhone OS)
But it works, I have touchscreen. I just wish I could make phonecalls.
about 3 years ago
Just got it working fine, after a lot of hours of failing at various steps.
I used WinSCP as some others, which somehow screwed things up here. Just used Filezilla as someone suggested here and it worked
also had issues with the network card not working in Virtualbox, so just switched to another computer.
But when I first got it working most things thats supposed to work, works – like WiFi & multitouch.
What doesnt work is the phone, since It`s impossible for my sim card to disable the PIN (get wrong PIN regardless if its correct or not when I try to disable it through “change PIN”).
thanks a lot for the guide!
about 3 years ago
Hi, can you tell us where to download this update?
Thanks
about 3 years ago
Hi, can you tell us where to download this update?
Thanks
Sorry for this message i clicked wrong “quote” ;P
about 3 years ago
My touch screen isn’t working!!!
Any ideas???
about 3 years ago
amazing tutorial. I have a problem, my phone is stuck in android while saying power off shutting down. Cant get rid of it and phone wont shut down. what should i do?
about 3 years ago
I have a big litte problem, im using windows vista when i try to drag the files from downloads #5 and #6 to the VAR folder in iphone explorer a square pops out and says not responding and then iphone explorer crases… wha t am i doing worng?? thanks for your help.
about 3 years ago
when i enter
nor_read 0×09000000 0×0 1048576
command my iphone is restrat.
plz help.
about 3 years ago
Hello guys
I’ve installed android and it works fine. You say that it’s easy to upgrade the version of android. Do you have a tuto wich explain how to do that?
thanks in advance and sorry for my bad english.
about 3 years ago
I`ve maked all things lik i the tutorial i have only problems at “Getting Android Working!” number 3 because in my Ubuntu (Terminal) i can`t type in any Passwort i cant press any key
Please Help me!!!!!!
about 3 years ago
will this work with ipod touch 2g? Cause i really want it!!!
about 3 years ago
anyone can help me? i tried to install android on my iPhone 2G , but i cant get my iPhone to the rocovery mode. well its in recovery, but my windows wont show it as USB iPhone (Recovery Mode), so i cant choose it in UBUNTU. any help?
about 3 years ago
Hi i have been trying to install android on my iphone but i’m getting stuck on “./oibc” it just goes back to “root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot#” on Devices it wont connect to openIboot mode can someone help?
about 3 years ago
After step 4 of installing openiboot nothing happens,no openiboot on 3g iphone screen and iphone gets disconnected from Ubuntu divices.
about 2 years ago
I’ve been using the android on the iphone 2g for a while now,,, but yesterday when I tried to boot back to android, it gets stuck on boot up page (black page with scrolling down boot up info),,, any help?
about 2 years ago
Hi, can someone help me i just install android on my iphone everything looks like it went fine but my problem is that is not loading. I got stuck on loading i left overnight thinking that in the morning it will be ready does anyone how long it takes to load??? Did i do anything wrong, should i install it again???
about 2 years ago
got it working, thanks a lot to this guide and everyone here
about 2 years ago
I place my phone in recovery mode and then try to run the ./loadibec openiboot.img3
I never see the OpeniBoot screen. Help!
about 2 years ago
What version of jailbreak should i be using?
2G 3.1.3 … ??????????
about 2 years ago
my multi touch dont work :[[ plz help me
about 2 years ago
Me also…look like we have to extract touchscreen driver and wifi driver manually because it is legal. Maybe this will help http://howto.techworld.com/personal-tech/3224127/how-to-install-android-on-your-iphone/
about 2 years ago
What’s your error message?
about 2 years ago
i’ve tried to install android on my 2g but when i should install the libusb and libreadline it’s just writing download forever and he says he failed to fetch or some like that.. what should i do?
i’m running windows 7 if it has something to do with it
about 2 years ago
everythink seems fine with installation. i choose android and click home button. i wait and iphone stuck on
Loading kernel…
Loading initrd…
Booting Linux…
radio: reading baseband nvram…done
about 2 years ago
The Iphone starts the Iboot, but then a screen on my pc comes on with the messages that the drivers for the Iboot modes aren’t installed. It also can’t find them.
Because of that I can’t select the iphone in ubuntu. What is wrong?
about 2 years ago
Next to ./loadibec openiboot.img3 …… Nothing!…
Iphone 2G 3.1.3 I used Redsnow… to Jailbr.
about 2 years ago
OMFG PEOPLE!!!!
I have been trying this for weeks now and it was right in front of me the whole time so I’m gonna show you guys how i did it!! First of all ifunbox is better then iphone explorer, sec get winrar, third right click the the idroid release n open with winrar, fourth do not decompress that stupid android image!!
That stupid file was my problem the whole time, I decompressed it before n never got it to boot lol
So after you drag n drop ur file to the var sec, you will have a working idroid plus touchscreen!!!
HOPE THAT HELPS PPLZ???
about 2 years ago
any update on the radio reading baseband nvram hang up?
about 2 years ago
@creatures,
Delete all the files from var, n start fresh n drag n drop 1 at a time with what i said above u it will work then.
about 2 years ago
is it possible for anyone to send me the needed files for this ? the reason I ask is because i live in china and for some stupid reason the great firewall is not allowing me to access the needed pages.
thanks in advance and will keep on eye in this thread for and reply’s.
about 2 years ago
How did you fix it? Windows won’t load the driver for Apple Mobile Device (openiboot mode). running Win7 x64 here. suggestions?
about 2 years ago
Attention all who are stuck on installing openiboot using Windows (XP/Vista/7). If you are like me you ran into problems with Windows not being able to find drivers to support the iPhone in openiboot mode. I fixed this problem by creating an ubuntu 9.10 virtual machine in VMWare Player instead of Virtual Box. When you use VMWare Player, it has no problem accessing the iPhone in both recovery and openiboot modes. Also, you need to enter the ‘./oibc’ command right after hitting the home button at the openiboot screen (before the tux linux logo appears). I struggled at this step for hours but using this method, it worked on the first try! Hope this helps.
Anybody know how we can upgrade the version of Android? I assume you just replace the files in the private/var directory with a newer version but idk if the files are available anywhere.
about 2 years ago
I got stuck on step #4 under “Getting Android Working!” I type in ./loadibec openiboot.img3 and press ENTER but nothing happens! Can someone help me?
about 2 years ago
i have experience to share:
1. Use VM ware, it’s easy to connect Iphone Recovery Mode
2. if you have trouble with ./oibc , try to shut down your Linux and close your VM Ware, it’s work to me.
3. If you have Kercel Panic in booting android, try to copy again android.img.gz in to your iphone
4. if you have “0-999, 1000-1999, 2000-2999″ wait until it’s done you will see “Welcome to iBoot”
………………………………………………………………………………………..
now runing Android, but my SIM card can’t unlock,
and if i use camera, ANdroid said to put in SD card, in Iphone, where place for sd card??????
and how to connet android in to CPU…..?
about 2 years ago
When I try to run ./oibc from virtual machine, the system nothig do and Xp give an error. Why?
about 2 years ago
For those that arn’t getting anything with “su ./oibc”, just type “sudo ./oibc” instead and it will work. Worked for me. Im stuck on the welcome to iboot screen after im done :S
about 2 years ago
hi guys. i am stuck on installing openiboot because Windows XP cannot find drivers to support the iPhone in openiboot mode. any help?
about 2 years ago
hi guys. i am stuck on installing openiboot because Windows XP cannot find drivers to support the iPhone in openiboot mode. any help??
about 2 years ago
4. In the terminal type ./loadibec openiboot.img3
it says
open_device: unable to connect to device.
your device must be in recovery mode.
how do i fix it
about 2 years ago
im using windows7