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. |
- Here’s how to install Android on your iPhone 2G | Gamez Menu
- [Видео]Установка Android на iPhone 2G « Блог SSM-DEV
- Comment installer Android sur votre iPhone ? (tutoriel)
- Installer Androïd sur un iPhone | Teckn0'LogiK
- Cómo instalar Android en tu iPhone 2G [Video] | Aplicaciones, Juegos y Manuales para el iPhone – iPod Touch
- Installer Android sur son iPhone | Blog Iphone-Apple.fr
- Ako nainštalovať Android na iPhone 2G « Techblog.sk
- Here’s how to install Android on your iPhone 2G | Resellernews.com.au
- Tutoriel : apprenez à installer Android sur votre iPhone
- מדריך וידאו – התקנת אנדרוייד על אייפון 2G | חדשות אייפון סקירת אפליקציות משחקים אייפון אייפוד טאצ
- How to Install Android on your iPhone 2G? | UK Gadget and Tech News, Reviews and Shopping
- Guide to Install Android on iPhone 2G | dralnuX
- How To: Installing iDroid On iPhone 2G – e's PhoneBlog
- Un tutorial pour installer Android sur un iPhone 2G | ACDF2i Perpignan internet ingenierie informatique Audit, conseil, formation, logiciels
- Here’s how to install Android on your iPhone 2G | Zunley
- How to Install Google Android on the iPhone 2G
- | News Jeux video – SFA
- Urban News – How to Install Android on your iPhone 2G?
- Installez Android sur votre iPhone | Actualité people, Toute l'Actualité people
- installare Android sull´iPhone 2G | Hynco
- Jeff’s Home » Blog Archive » Here’s how to install Android on your iPhone 2G
- Installing Android On Your iPhone is Now Possible | Technologer
- Un tutorial pour installer Android sur un iPhone 2G · Geekews
- Android na iPhone – Instrukcja (video) | Palmtop.pl
- המדריך המלא להתקנת אנדרואיד על האייפון | Newsgeek
- GUIDA: Installare Android sull’iPhone 2G!
- Cómo instalar Android en el iPhone [Video] | Usuario Digital
- How to Install Android on iPhone | mouse2house – blog
- [Tutorial] – Instalar Android en tu iphone | blueplastic
- Veja como instalar o sistema operacional Android no iPhone | rodrigostoledo.com
- Android goes iPhone: Video-Anleitung « aptgetupdate.de
- Custom Android Build Enables Installation on iPhone Hardware « Techknology's Blog
- It’s your easy 70-step Android on iPhone install guide | All Things Android
- Video: Manual para instalar Android en un iPhone 2G – MacPrincipiantes
- Android OS on iPhone: Step by Step Installation guide | STMGZN
- Tutorial: Android no iPhone 2G | UNSIX Network
- Android auf dem iPhone – erste Videoanleitung online » iPhone, AndroidAlot, Android, Textversion, Schade, Guide » iPhone-Log.de
- Apple iPhone: jak zainstalować Android na iPhone 2G. Wiadomości ze świata Apple iPhone | MacKozer
- Så installerar du Android på din iPhone |
- Installer Android sur iPhone 2G » My Pense-Bêtes
- Android On iPhone 2G – DIY Video :: App Advice
- Android on iPhone | free linux mobile phone software
- Tutorial – Instalar Android En Tu Iphone En Español | Contacto Geek
- [TUTO] Installer Android sur iPhone | Tech Inside
- Installer Android sur un iPhone 2G (Edge, V1) « Le Cahier du Tech
- Android op een iPhone installeren in 70 stappen – Android – Androidplanet.nl
- Android on iPhone 2G [video] « Siteseein.gr Blog
- Instala Android en tu iPhone de primera generación
- How to install Android on an iPhone 2G « Mac OSx86
- Android iPhone’il: Meie katsetused | kahvel
about 3 years ago
Thanks Alot Joe!. It work’s for me.
Eli: You should do that Joe says.
about 3 years ago
keep holding the home key after you select android for few seconds.
about 3 years ago
# 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 part i can’t copy any file in that directory , iphone explorer just froze and stopped responding. seem like nothing allow to copy in that directory . i have 3.1.2 jail broken with blackrain phone.
about 3 years ago
I’m stuck at the “reading baseband nvram” part also. Dang it!
about 3 years ago
I have installed this 5 times….I either press the home button to boot up android and get the Welcome Screen and it freezes or I hold the home button down and I get radio: reading baseband nvram…done. I see others are getting this so I assume we are not all doing it wrong..or we are definitely missing something. thanks
about 3 years ago
hi, this tutorial is rock, thank u alot, i have Android running now.
But the Problem is, i scanned for Wifi network, saw somes, connected, but Browser always display the same thing: “Web page not available” even when i try to connect to Google’s Site, so Wifi is working but no internet:(
about 3 years ago
@bryan
Same problem here after rebooting the phone ,It freezes at Welcome to openiboot screen.
my firmware versions is 3.1.2 (Jailbreak)
about 3 years ago
Macin try this:
Power on (iphone)
When openiboot screen appears to select Apple OS and Openiboot console, select openiboot console (push power button) and then push home button and keep holding home button for two or three seconds
about 3 years ago
I got the same error too. I was tempted to skip backing up NOR and just installing it. But then I decided to just try andriod without installing (keep pressing the home button until it boots)
Now I am in Android. Playing around. Mostly works. Of cource bluetooth / speakers dont work. Cant use edge. Wireless works but DNS does, so have to time in IP addresses. Also seems to be running a little hot. I am not sure how to get into Andriod market ? Is it possible ?
about 3 years ago
will i be able to unistall it like when i restore the whole i phone will the ibot be deleted and back to normal ?
about 3 years ago
where is the ramdisk.img userdata.img cache.img and zImage?? I only see the cache.img in /prebuilt folder
about 3 years ago
Hello….
The initial few steps went right. However, on “reboot” the console is stuck at “radio: reading baseband nvram… done ”
Anyone has any ideas on how to get past this problem?
Cheers….
about 3 years ago
Same, stuck at “radio: reading baseband nvram… done ”
about 3 years ago
Siddharth Lele and Trinitus try to upload again to /private/var the files of step 9 and 10.
PS:Now i’m trying to play music in the music player like the planetbeing’s video but it says that there isn’t a memory card. Any ideas?
about 3 years ago
does it read the music in the ipod app on the iphone firmware or i have to add music on android it self?
about 3 years ago
@ FDK
Nope. Its still a no go. Does it have anything to with me being on 3.1.2?
I am gonna start afresh in just a bit.
Another thing. Instead of Virtual Box, I am doing this on a proper Ubuntu 9.10 version.
Cheers….
about 3 years ago
Could be. I’m on 3.1.2 also.
What’s everyone else on?
about 3 years ago
@ Maged
Music in the ipod library don’t appear in android. I suppose i have to add music on android it self but i don’t know how to do that.
@ Siddharth Lele
I have 3.1.2 version too and i only followed the steps and magically work. Try using Virtual Box and cross the fingers.
about 3 years ago
Hi !
when ported The andorid for 3g ???
about 3 years ago
I’m having problems copying the files over in Step 9 + 10 of Preparation using iPhone Explorer. It simply crashes when I attempt it.
about 3 years ago
I tried with 3.1.3 and 3.1.2 / redsn0w / Ubuntu 8.04 / VMWare Player…no luck
about 3 years ago
I just hold the home button down and I sit at reading baseband vram…done. I wish I knew how to load past this….alomst there…lol
about 3 years ago
i am really having trouble copying those file into that private/var directory, i can only make another directory in that directoy not files. please help i must be missing out something here . someone help?
about 3 years ago
hey i tried all this on ubuntu ten, got it workin but got the error with the iphone restarting when trying to back up nor, skipped that anyway and went on to install and then reboot, all works fine except it seems to be missing the touch driver or something?? its just irresponsive to touch but buttons work?? any ideas? like i say it all works besides that though and have been waiting for this for a long time so well done:D
about 3 years ago
and i had the same problem copyin the files to private/var, so stuck em in the safari download folder then moved them with ifile on the phone
about 3 years ago
If you get stuck try this one out http://masseymasseymassey.blogspot.com/
about 3 years ago
The first time I did this I had 3.1.2 done with Pwnage Tool. This was the one in the video yesterday.
Today I reset the phone completely and then did another jailbreak. This time it was 3.1.3 using sn0wbreeze.
Both times I got perfect results and will be uploading a video of me going through the whole process. The video is ready but just be patient as I have atrocious upload speeds.
For those with the baseband error, have you tried holding down the Home button for a bit longer when selecting openiboot console to get into Android?
Anyone with iPhoneExplorer crashes:
Under host enter the IP address of your iPhone
1) Open Cydia on your iPhone
2) Search OpenSSH
3) Install it
4) On iPhone connect to WiFi
5) Go to Settings > WiFi > Arrow next to your connected network
6) You should see an IP address
7) Download Filezilla or Filezilla portable
9) Username: root
10) Password: alpine
11) Port: 22
12) Connect and you should be connected to your iPhone. Browse to the private/var directory and copy across the files.
This way is slower because it’s via wireless rather than USB.
If you have a look for other iPhone file browsers you might find something else that works too.
People with the USB error in Ubuntu, I got the same error on Windows 7 too, and haven’t yet come across a solution. If you’re desperate to do this it might be worth trying it with a LiveCD or dual-booting.
about 3 years ago
Finally got it to work. I’m not sure if I properly backed up the NOR, but since my iPhone is a POS anyway I dont care.
I made a YouTube video of it booting. I wont post a link to it, since it may seem like spamming. But I use the same username as my post
about 3 years ago
I don’t think it’s spamming. Here’s the link for anyone who want’s to see it:
http://www.youtube.com/watch?v=LyBUgDDHJGg
about 3 years ago
Thanks a lot for the help “Ulfses.”
Now I’m stuck at the following screen:
“radio: reading baseband nvram… done”
about 3 years ago
Hi. Already installed Android on my iPhone and it runs pretty good. Here though are some kinks needed to be worked out:
- No option to turn screen off while idle or with a command. Any settings to enable this?
- No Android Market app for this build.
- Media files previously installed on the iPhone are inaccessible via Android.
- No available options for Ringtones other than default.
- Ringtone only rings once, no vibrate option.
- No camera/video camera function.
Otherwise though, the phone functions are intact as well as Wi-Fi surfing. Here’s my contribution to this effort, the iPhone key mapping for Android:
Power Button – Back/Previous
Home Button – Unlock, Home Screen Options (Add, Wallpaper, etc.)
Volume Up Button – Shortcut for Call Log
Volume Down Button – Back to Home Screen
Silent Mode Rocker Switch – None
I really hope that an update would be possible to at least add the option to turn the screen off, possibly map it with the original iPhone’s silent/vibrate mode rocker switch. Thanks!
about 3 years ago
People, it’s NOT a matter of holding the home button. It goes through the proper Android boot sequence until it gets to the baseband error.
about 3 years ago
# In terminal type su ./oibc
when i do that step, it states Unknown id: ./oibc , what possibly cost that??
about 3 years ago
@Carlo – just type (without quotes) ‘./oibc’ instead
about 3 years ago
i did, but it doesn’t do anything , it just went next command line, not asking for any password or anything?
about 3 years ago
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot#
Unknown id: ./oibc
this is my problem. how can i fix it?
about 3 years ago
you’re right. thanks
about 3 years ago
WOW!!!!! Got iDroid working at last.
Couple of questions though.
1. Why wont it connect to my WiFi?
2. And how do we shutdown / restart the phone?
Cheers….
about 3 years ago
Shutdown/Restart is by using the iPhone’s trademark cold reset technique. You have to hold down the power and Home keys to reboot the iDroid.
Sadly, there’s no option to turn off the screen. Anyone having a solution to this?
about 3 years ago
mine will not connect to wifi either. i have an airport express
about 3 years ago
it asked password for you after u typed that? mine is just repeated
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# ./oibc
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# ./oibc
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# ./oibc
root@ubuntu-desktop:/home/ubuntu/Downloads/openiboot# ./oibc
about 3 years ago
Mine connected on its own after the first reboot. The only thing i could manage earlier was discover the network and put in my WEP key.
Might just work for you eh?
Cheers….
about 3 years ago
I finally restore my iphone with v3.1.3 and jailbreak it with redsnow, but unfortunately… still stuck somewhere … I followed all the steps till the last reboot…. yes the iphone reboot… but nothing happened…. bricked again …. don’t know which step did i miss out … i suspect because i’m running windows 7 ?
about 3 years ago
I was facing the same problem on 6 of my attempts. The mistake i was making was uploading all the necessary files in the /private/var folder using WinSCP. If you are doing the same, you need to switch to FileZilla.
When i switched, mine got through in the first attempt.
Hope this helps….
about 3 years ago
Filezilla? I was using winscp….. i think i need to try filezilla in this case ….
about 3 years ago
i got into android system finally!, but no touch screen and i can do nothing beside home key for that middle button. where did i do wrong?? help please, probably i copy those files wrong way? kernel folder, do i copy in whole folder or just files inside it? please little bit more specific thatpart? thank you
about 3 years ago
Pretty sure you will get it working now….
Cheers….
about 3 years ago
THANK YOU Siddharth!!
Everyone that gets stuck on nvram needs to delete the files and use Filezilla. Thats it! Works like a charm. Never thought WinSCP would be the problem
about 3 years ago
Glad to have helped. After 6 futile attempts, i realized some tutorial had mentioned WinSCP having issues with the iDroid. Shifted to FileZilla, and like you, VIOLA!!!!!
about 3 years ago
Nice one! Updating the FAQ now…