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 1 year ago
I GOT IT TO WORK!!!!
about 1 year ago
I’m stuck on the part where you have to allow the virtual machine to capture the IPhone, Windows 7 attempts to install a driver, but then fails due to the device being “unplugged”, any insight on this?
about 1 year ago
i have the same problem…
how did you fix it…?
about 1 year ago
It is working and is awesome
i kept getting stuck at crappy points but it was my own bad spelling… fail, but restored by a wain it is completely working with reboots and all
@Sharukh hold down the power button (top) and the home button (front) for about 9 seconds
about 1 year ago
try restarting ur pc and then ubuntu, but before you turn on ubuntu see to it that the iphone is added under the usb devices in the settings tab besides the new tab on virtual box
about 1 year ago
It works now, i can boot up openiboot but for some reason when a hold down the home button on the console option it just boots into console saying “welcome to openiboot”, could that mean i have corrupt images?
about 1 year ago
what do i do with the nor backup? and if i want to restore to the normal iphone firmware do i just use itunes and do it?
about 1 year ago
i cant open the openiboot. hellp me
about 1 year ago
IT WONT LET ME TYPE ./loadibec openiboot.img3
all it says is “bash: ./loadibec: Permission denied”
about 1 year ago
For some reason iPhone Explorer keeps crashing when i try and add the files… I’ve tried reinstalling iPE but it still crashes…. Any suggestions?
about 1 year ago
Where are this files?
ramdisk.img, userdata.img, cache.img
about 1 year ago
@Superhero you skipped over the firmware file into private/var directory, the multi-touch and wifi files, any one having trouble there is an auto program (mac only) here http://www.iphodroid.com/ it is at the bottom of the page on the left
about 1 year ago
also there is this site it has screenshots on comp and iphone http://www.idroidproject.org/wiki/Installing_iDroid
still i was able to follow the steps here and make it work thanks @superhero
about 1 year ago
I get to this step: In the terminal type ./loadibec openiboot.img3
when i type that in, nothing happens. my iphone still shows the recovery mode graphic, and the terminal processes for a minute and then just shows the same line again. am i missing something?
about 1 year ago
You can find a torrent download for the “Android Images and Sources” here: http://graphite.sandslott.org:4080/pub/idroid/torrents.html
about 1 year ago
AJ, I had the same problem. Use iPhoneBrowser in stead
Link: http://code.google.com/p/iphonebrowser/downloads/detail?name=SetupiPhoneBrowser.1.93.exe&can=2&q=
about 1 year ago
When I get to “In the terminal type ./loadibec openiboot.img3″ I push enter and the iPhone goes white and the apple logo shows up, any fix?
about 1 year ago
when i get to ./loadibec openiboot.img3 i press enter and nothing happens, i only get root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# again and nothing on the iphone.
anyone knows what to do?
thanks
about 1 year ago
What am I doing wrong I have done everything right. I am using windows 7 to try to do this. But when I get to the In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (Recovery Mode) I get some message saying my phone is busy with something else please try again later what am I doing wrong? Someone Please HELP….
about 1 year ago
dose this have the original IPhone OS still installed or is it just android and can Android access the ipod partiton (for music ) also install android Apps ?
about 1 year ago
Remember not to paste…type it in. and it’s not a dash (-) it’s (SHIFT + key above tab). Anyone gotten WiFi working? And why most apps are crashing ? In planetbeing’s video demo wifi works,so does the browser… I like tinkering and have time to program… would like to help. I did this w/o VirtualBox BTW. I used Lucid Lynx
about 1 year ago
i get this when puting in the command “./loadibec openiboot./img3″ “unable to connect to device your deivce must be in recovery mode” i dont get it, is in recovery mode.
then when i click on devices on ubuntu i get a virtual box error saying failed to attach usb device inknown device to unbuntu, someone email me mrjoecool@hotmail.com to solve it
about 1 year ago
got it working but with no touchscreen drivers :-S i used all the methods and steps just no response when i use touch screen.
about 1 year ago
Hey Barney how did u get yours to work? Mine does the same thing and i can’t figure it out.
about 1 year ago
Got mine working only once..surprising Android powered up after i pressed home and selected the bottom icon at openiboot console. Everything worked except the camera/camcorder where sd card is required?After a while , the phone became quite hot and just hang.I managed to switch it off by pressing home and power button for a few seconds.Thereafter, it reverted back to iphone despite several reboots.I guess this is because i never complete the whole download procedure.Instead of getting usb(device) as iphone (openiboot mode) i got ” Netchip RNDIS/ethernet gadget inside my VirtualMachine(Linux)..Can someone help? Thx
about 1 year ago
how long is a while range
about 1 year ago
If you’re having issues with the ./oibc command, it was a timing thing for me. I posted an updated guide here: http://www.idroidproject.org/forum/viewtopic.php?f=28&t=728&p=9076#p9076
about 1 year ago
Does anybody know if installing Android on an iPhone will erase previous applications or any data? Because that would suck…
about 1 year ago
If I did this to my unlocked iPhone 2G on T-Mobile will it fully work, I mean could I call, text go on the market, and everything else on adroid os. Please write back to me merikcastro@yahoo.com thanks
about 1 year ago
Hello,
I´ve done all that i´ve to do but on the last step:
“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”
I do all this but if I enter reboot it´ll reboot but
if it´s start again openiboot loader´ll not open at start. It´s like i haven´t install openiboot but i do all! steps!!
Please help me!
Thanks:
thestyler10@ymail.com
about 1 year ago
umm the nor_read 0×09000000 0×0 1048576 need a ? at the end or atleast thats what i found so if ur having troubles with it try that
about 1 year ago
Ok so i like the guy above me i completly finished the whole thing from begining to end and it just boots normal straight into the iphone os i do not ever see openiboot am i supposed to force openiboot using the terminal to do this if so that is a little inconvienent am i maybe doing something wrong i did have an issue with the whole select openiboot and then type ./oibc in which windows didnt want to reconize it but i was able to be quick enough to do it before windows caused any issues so i am going to start from the begining in the morning and see if maybe a full retry with no errors will get it to work if u have any ideas please let me know
about 1 year ago
Ok so as it turns out the last dam step is a little kinda hidden/misleading lol as in the actual last step that i didnt seem to do was the INSTALL step that part should have been bold or something lol i still feel dumb for not noticing sooner but now my problem seems to be along the lines of well android isint an option to select in openiboot im starting to feel noob ish and this isint my first hack in anyway im going to double check the files and see what i come up with
about 1 year ago
ok so i did all the steps didnt download the android source files from where u said cause well it didnt come up so i did everything and now it boots but my touch screen wont work and only the home and lock button work and when i press up on the volume it crashes, can anyone help me i really would appriciate it =) thank you =)
about 1 year ago
Hey i completed the whole process and my iphone does boot to the openiboot menu to select iphone os and openiboot console but there isint an option to select android i tryed to delete the files from private/var and then re paste them in there and do all the steps again but it didnt make any difference so what is going wrong or what am i doing wrong to not have android show up at all as a selection?
about 1 year ago
hi so i have some questions,
first i use windows and in the windows version of iphone explorer i don’t have this button of changing the root… what do i do?
second i after i installed every thing and got stuck on the way a few times my iphone decided that he will become ipod with only the ability to receive calls but not making them…
so how do i use this norbackup.dump???
hope you can help thx.
about 1 year ago
When I type ./loadibec openiboot.img3, it says SEND_FILE: INVALID STATUS. HELP@!!@!@
about 1 year ago
when i type./loadibec openiboot.img3 nothing happens, i retried putting in recovery mode and still nothing please help
about 1 year ago
everything works fine, but when I reboot and select to open with iboot it just stops at “welcome to openiboot”
???????
about 1 year ago
ookay m stuck at the command on terminal =/ …
when i give the command of ./iloadbec openiboot.img3
it gives me this error:
“root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# ./loadibec openiboot.img3
open_device: unable to connect to device.
your device must be in recovery mode.
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# ”
even though i ve put my iphone in recovery mode… please help me… is it asking for DFU mode??
about 1 year ago
Hey,
i got everything done and ive done with installation but when i click on the openibooth icon in iphone 2g it just loads a lot of time. it doesnt loads up android… and i can see that it says in little letters:
couldnt set a speed firmeware , trying again
what can i do? please!
about 1 year ago
Hi,
when can we expect Andriod 2.2 instruction, one with instructions is old version.
–No camera
–Bad Interface
–Over heating of Phone
And many more issues. Sd card issues. Its an useless think to install, its just prove that you can Andriod on iphone thats it, but useful as regular it not as promised. Useless s/w for regular use.
about 1 year ago
Hi, I have a problem with step 3 and 4 in “Setting up Ubuntu”. In the synaptic package manager this libraries don’t appear. There are newer versions instaled – libusb 1.4. But it doesn’t work,
about 1 year ago
http://androidalot.com/modding/how-to-install-android-on-an-iphone-2g/
is broken, can you guys fix it plz
about 1 year ago
6-Patched images (link). Courtesy of Geekoid.
the link is broken, can you guys fix it plz
about 1 year ago
Can you all please fix the links to download the files
And thanks for the instructions great information
thanks
about 1 year ago
please fix the link for #6!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
about 1 year ago
can someone send me the #6 patched images through email or somthing cuz i really want this email it to me at chandl3r@q.com plz it will be greatly appeciated
about 1 year ago
6.step, Patched images (link) is expird
wheni open this site
http://www.mediafire.com/?qijtkmm2jzt
it shows Invalid or Deleted File
The key you provided for file download was invalid. This is usually caused because the file is no longer stored on Mediafire. This occurs when the file is removed by the originating user or Mediafire.
about 1 year ago
fix the link Patched images (link) its expird plz help i want to install andriod all done only this thing remining