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 Run Android On The iPhone | The Iphone Blog
- Android on The iPhone in 70 Terrifying Steps
- Android on The iPhone in 70 Terrifying Steps | Hot Electronics Trends
- Video. Como instalar Android en un iPhone | mecambioamac
- Androidiani: Installare Android su iPhone 2G [Guida + Video] | android, guida, installazione, iphone 2g, porting « Androidiani.com
- Video guide: På 70-trin kan du nemt installere Android på din iPhone. « LatestNews.dk – Arkitektur, Design, Ferie, Livsstil, Sport, Techgear, Transportmidler, Verden
- Cyber Rabbits ;]
- Ramy's Blog
- La manera más fácil y única de instalar Android en tu iPhone 4G: Son sólo 70 pasos.. Animate! « iTouchhacks
- links for 2010-04-26 | andy.edmonds.be
- 動画:iPhone に Androidをインストールするガイド – digitalなひと
- Un tutorial complet pour installer Android sur iPhone | FrAndroid – LA communauté francophone Android
- World Tweets 2010-04-27 « Android Fun!
- Android on The iPhone in 70 Terrifying Steps | iPhone 3G Tricks
- Guía para instalar Android en iPhone 2g :
- Tutorial para instalar Android en un iPhone 2G | Vaya Huevos
- iPhone : how to install Android on your iPhone 2G! | TechiSoul
- How-To: Android am iPhone in 70 Schritten « iPhone News
- Android-a-Lot releases step-by-step tutorial for Android on iPhone 2G -> TamsIJungle
- Android auf dem iPhone installieren in fast 70 Schritten
- Videoanleitung: Android am iPhone in 70 einfachen Schritten | BENM.AT
- วิธีจับ Android OS ยัดลง iPhone มาแล้ว « Siampod
- HOW TO : Install Android On An iPhone 2G | IMBOOMz
- Устанавливаем Android на iPhone 2G | Житие в Вебе
- How to Install Android on iPhone 2G [Guide + Video] | TechPetals
- Instalando o Android no Iphone | Toolkit
- Android sur Iphone, oui c’est possible ! | -== Bienvenue sur la Boîte à Bazar ==-
- Android op je iPhone in 70 stappen – iPhone – Lees iPhoned.nl
- David Wong ports Android to iPhone
- ElmaSuyu.Net » Post Topic » iPhone 2G’nize Android
- Tutorial para instalar Android en un iPhone 2G « Somos Apple!
- Instalando Android en un iPhone 2G – Tranpalitu
- Android / Устанавливаем Android на iPhone 2G « Мой новый блог
- La guida su come installare Android su un Apple iPhone 2G | Trucchetti.com
- Install Android on the iPhone 2G – detailed instructions
- Android On the iPhone
- PN.Truong Phuc's Blog
- Android for 3G iPhones Coming Soon | App Chronicles
- Appleunity » Google Android in “nur” 70 Schritten auf dein iPhone
- Android OS for 3G iPhones Coming Soon | iPhone 3G Tricks
- Install Android On iPhone 2G
- Iphone 2G Kullanıcıları Android’e Geçebilir | Mob-i
- Installer Android sous iPhone [Video]
- Installera Android på iPhone – Senaste tekniknyheterna först – Tekniknyheter
- Yawm
- Bust A TECH » Android on Iphone?
- World Tweets 2010-04-28 « Android Fun!
- NakedProductions » MyDroid
- Android en un Iphone 2G… mi experiencia | Elite Tech Force Blog
- Here’s how to install Android on your iPhone 2G
about 1 year ago
Are you a 100% sure you used the patched files from Download No. 6??
It is these files which make the touchscreen work.
about 1 year ago
nice, very big thx for the info about filezilla! works fine now.
about 1 year ago
My pleasure…..
about 1 year ago
Always glad to give back when gleefully taken…
about 1 year ago
Thank you so much Siddharth. I finally got that cute little linux penguin.
While loading everything, I noticed this on the bottom:
“[ 43.180000] multitouch: couldn’t get a-speed firmware, trying again…
[ 43.190000] iphone-multitouch iphone-multitouch: firmware: requesting zephyr_aspeed.bin”
It keeps repeating this over and over again. The numbers like “43.190000″ keep getting bigger (up to 513.330000) but it seems to be stuck in a loop trying to load the multitouch firmware.
Did anyone else get this?
about 1 year ago
None of the tutorials i have been following has that problem mentioned. But the error suggests, like you rightly mention, that the patched files to use the touchscreen drivers are the culprit here. Perhaps starting the process again ensuring that the patched files from “Download # 6″ are used might do the trick.
about 1 year ago
Still bricked my iphone after changing to filezilla …dun know what is wrong…..but I think filezilla did help in certain extend, as the i notice the output when i select the openiboot …
but wondering which step did i miss out ….
My final output on Ubuntu is not tele with the output on my iphone, where i notice my iphone got installation done, refreshing image list, but not on the ubuntu ….
so I force restart the phone, and it bricked… !!! will try again tomorrow …… and that will be the fourth times ….
NEVER GIVE UP !!!
about 1 year ago
Thanks Siddharth. I could have sworn I downloaded the patched files. Anyways, I downloaded them again, extracted them and copied them directly to private/var with FileZilla. Now I can successfully boot into Android. I can make and send text messages. Wifi works too.
Again, thanks a lot.
about 1 year ago
Seriously, what’s really keeping this build from becoming a usable OS is the lack of a screen display timeout. Anyone tried to circumvent this problem?
about 1 year ago
A pleasure as always….
Happy iDroid”ing”….
about 1 year ago
Sorry to post again so soon, but does anyone know how to change the openiboot boot screen? I want to put Android’s green robot logo on it under the apple instead of whatever that other ugly thing is.
about 1 year ago
about 1 year ago
when i type this code “nor_read 0×09000000 0×0 1048576″ my iphone reboot anyidea ???
about 1 year ago
when i type ./loadibec openiboot.img3 and then select android ith home button and release home button 2-3 secound, it go to android directly without instal it!! after rebot openiboot don’t appear and i go to iphone mac os!!
when i don,t hold home button in openiboot menu and type ./oibc i get Unknown id: ./oibc!!
i copy my file with FileZilla idon’t know where is my mistake?
please help me!
about 1 year ago
I GOT IT WORKING PERFECT
but my wirelss don’t work & camera don’t work & no idea how to add music to my musicplayer anything can be fix of that i really do hope so ???
about 1 year ago
Thank you androidalot for the instructions.
I was able to install it using Windows 7 using virtual Box. I followed all your instructions to the letter and I am now running Android! Thank you!
The only problem I encountered during the installation was that Ubuntu (under VirtualBox) had a hard time recognizing the USB devices (recover and openiboot modes). What I did was to power down Ubuntu then choose settings ->USB then manually add the devices to the list.
about 1 year ago
I got it to work last night….. Awesome instructions, but I can’t seem to make a call or get wifi working. Running all the files from your site. Any idea what I can replace? Running a legit AT&T sim, I’ve also tried manually putting in the APN but no luck! Thanks
about 1 year ago
hey topic authoer can u tell us how did u add music to the android ?
about 1 year ago
You can’t still add any form of media to the Android port. The firmware still relies on the SD storage which an iPhone doesn’t have, but rest assured the developers are working on this issue. They have to change the code to sync the existing media from the iPhone OS.
about 1 year ago
hope next update fix the wifi make any buttom to close the screen & can hangon people without answering them & fix the camera & media lol
about 1 year ago
After installing and successfully booting into Android. I turned my phone off. I tried to boot into Anroid again and it won’t work anymore. I tried reinstalling it and it still won’t work. The “ANDROID” text comes on the screen and sparkles (or whatever you call it), but when it disappears, the screen stays black.
about 1 year ago
so…my ubuntu does not recognize my iphone in recovery mode, therefore i cant run the openiboot via terminal? ANY TIPS PLEASE?!
about 1 year ago
Got it loaded, thanks for the great instructions. I’m assuming there is no Email app on here? Can’t seem to find one pre-loaded…
Thanks again
about 1 year ago
If you are using windows (like I did), preload the iphone as a usb device in VirtualBox.
1. Connect your iPhone in recovery mode.
2. Before starting Ubuntu, choose Settings (between New and Run) then USB.
3. Add the iPhone Recovery Mode.
4. Run Ubuntu and follow the directions posted on the guide.
You have to repeat this for iPhone Openiboot mode. Shutdown Ubuntu then go to settings then run Ubuntu again.
about 1 year ago
Ok…i followed your device and got it preloaded, but in Ubuntu, it wont let me select device, it says it is busy with a previous request…someone help me!!!!!!!!!
about 1 year ago
I usually reboot it first or quit Virtual Box so that the device resets and won’t be busy. It took me a number of tries to get it right
Hmm… I’ve quit Android using reset mode, booted into iPhone. Now I can’t go back to android. When turning off iPhone and turning it on again, the OpenIboot is shown. I pick Android but it’s stuck at the WELCOME TO OPENIBOOT screen.
about 1 year ago
Ignore my previous comment: I’m just an idiot who forgot that I have to hold down the Home button when loading into android rather than just tapping it.
about 1 year ago
[1958.160000] libertas: unable to obtain helper firmware, trying again…?
about 1 year ago
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# su ./oibc
Unknown id: ./oibc
I got it last night, today I restored the phone again and started from scratch, ensuring I followed directions to the letter.
Again I get the same message…
Any suggestions
about 1 year ago
That also didn’t work for me. I used ./oibc instead
about 1 year ago
I can’t boot back to Android again.
about 1 year ago
I guess I should have said I tried that also, did some other failed attempts, now I have gotten it to work with ./oibc but when I typer”nor_read 0×09000000 0×0 1048576″ my phone reboots…
about 1 year ago
i need help im using a mac and everytime i download the ubuntu file but everytime i go to add it to the virtual box i keep getting the same error message that the hard disk is not readable, iv tried using safari and firefox anyone?
about 1 year ago
Hmm well let’s start by asking if you’ve extracted the actual Ubuntu file (GB sized) from what you downloaded (400+MB)?
about 1 year ago
Wow Great Job!!
Is there a way that I could try this perhap. On 1st gen. iPod Touch?
about 1 year ago
Same here
about 1 year ago
help meeee
after command ./loadibec openiboot.img3
send_file:unable to find file.
about 1 year ago
in the Disclaimer it says that your not responsible for our phones. What if I try doing that to my iPod Touch???
about 1 year ago
I keep getting the following.
ftl: restore scanning virtual blocks 0 – 999
It continues to restore for 30min then I get the Welcome to iboot which I install with no issue but every time I try to load into Android the same thing happens and begins the restore process.
Anyone else experiencing this repeat? Or know how to fix.
Thanks.
about 1 year ago
Great tutorial, got anroid running on my iphone
Did have the following problems:
- nor_read 0×09000000 0×0 1048576 –> causes reboot, i skipped installing openiboot
- problems with simcard –> has a pincode, could not get into anroid without removing the simcard
about 1 year ago
@nima
“In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (Recovery Mode)”
about 1 year ago
Please tell me: will this work on iPod touch 1G???
about 1 year ago
Managed to get it all running – great walkthrough!
The only thing that seems to respond is the home button which pops the bottom menu and the keyboard. but otherwise – the screen is completely not interactive.
HOWEVER…
Once I get Android running, the touch screen does not function
After a few secs. I get “the process android.process.acore” has crashed – forcing me to reboot.
Anyone??
about 1 year ago
There are no confirmed reports of the iPod Touch 1G working on iDroid. The iDroid in its current format is designed for the iPhone 2G. I suppose it would make sense to keep away till planetbeing confirms or releases a newer version, or makes this work somehow on the iPod Touch.
about 1 year ago
It works! Wifi works! Typing on the goofy keyboard is off by a few pixels… but this sort of silliness is expected for an alpha release. Good work. Now to figure out what I can do with Android…
Small stuff:
The mediafire links didn’t work — but I was able to Google around and download the required software via BitTorrent.
I had some troubles with the Ubuntu package management tool. To get the libusb package, I had to issue this command as root first: apt-cache update
Your documentation states what the password to the Ubuntu instance is (“reverse”) but not the username. Thankfully the VirtualBox download page had the username listed (“ubuntu”).
The docs also gloss over what is required to put the phone into recovery mode. Luckily there were plenty of sites available via Google to explain this.
Docs refer to a “Task Manager”. This is the “Activity Monitor” on the Mac.
Anyway: WOO HOO
about 1 year ago
Everything was good, finished the flashing procedure. But once I sellect OpeniBoot console it starts to load and crashes (stops) on the message
bdev:partition id:1. type : af sectors: 341082 – 3964905.
after that i get a garbled and messy ___Welcome to OPENIBOOT____ on the terminal.
ANY suggestions would be welcomed
about 1 year ago
LUKA: See “Finishing Off” step 4, did you hold down the home button? I neglected to hold down the button after selecting OpeniBoot and it did the same thing.
about 1 year ago
I just pressed the home button, fotgot to hold it.
Hope it works. Trying it now. Thanks a lot
about 1 year ago
Some dev said this about the Android’s faulty cache image so it won’t start correctly after rebooting:
“IMHO, your problem is in userdata.img, and so the boot won’t be started perfectly,, since the real android need Dalvik-Cache and iDroid didn’t provide that correctly… I guess, your 1st booting hit that and caused cache didn’t match correctly… just my 2 cents”
about 1 year ago
Thank you gain S.Pants – that worked! Like always i forgot something obvious
@jjsoviet – the install and the boot procedure went flawlessy i overlooked a simple step ( holding the home button) but thx 4 the input