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. |
- Cara Instal android ke sebuah iPhone 2G | Tarikkabel.Com
- Guides to setting up USB host mode on android phones – Android Phones Review
- Boloms Blog » Google vient concurrencer FaceTime
- occupy seattle
- iphone text alert sounds
- android|application android|android firmware|android game|android os|android upgrade
- droid 4
- android update
- debit card processing news
- VIDEO: How to install Android on iPhone | DroidZeus
- Linux Video Tutorials
- how to download video from facebook
- fb credits generator
- Free Facebook App And Viral App
- Scooter Website
- sparkles ugg
- Temple Run cheats
- Great article. Thanks for sharing!
- This is great…But it’s not always like this. People need to say what they desire…
- tweet adder crack
- remote access
- agencia
- Welcome to JailbreakEveryiPhone
- free
- How To Make Ringtones For Iphone
- danh ba
- shopping, shop
- Batten Board Shutters
about 2 years ago
Great Job. Worked! thank you.
about 2 years ago
Well I got it to install, sadly my sim card is locked and there’s no way to unlock it. I can’t seem to disable the sim card lock. It’s Orange Poland, incase someone knows.
For anyone having problems booting into Android a second time, you must hold the home button until you see the Tux logo on the screen. It might take a minute or so, but it’ll work.
about 2 years ago
I can’t add ubuntu-9.10.vdi file to virtual media manager, when I downloaded the file i got extension ubuntu-9.10.vdi.7z. Tried renaming to vdi but it didn’t work.
about 2 years ago
Hi, just a question, could this tutorial work in an iPod Touch? (jailbroken 2G). Thanks.
about 2 years ago
^^ what does the title say “HOW TO: Install Android On An iPhone 2G” .. iPhone 2G not and ipod touch! You could try and see how it goes.
about 2 years ago
You have to extract the zipped file before you can add it to Virtual Box. Use 7-zip.
about 2 years ago
I made a summary of common mistakes, problems and solutions.
Problem: iPhone Explorer crashes after trying to copy files to the iPhone
Solution: Use any SFTP client of your choice (except WinSCP) and copy the files via WiFi. You have to install “OpenSSH” via Cydia before, otherwise you won’t be able to connect.
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).
about 2 years ago
Are you using a 2nd Gen iPod Touch or a 1st gen? I fit’s a 2nd gen, definitely it will not work. If it’s a 1st gen, it MAY work. No guarantees since it is specifically stated to work on the iPhone 2G.
about 2 years ago
@marco79 – thanks, updated the FAQ section!
about 2 years ago
I think I move a step forward, but still stuck, this time I am able to see the message “Done with Installation!” and “Refreshed Image list”, so I proceed to reboot my iphone. Yes, the Openiboot screen came up and show me whether I want to proceed with Iphone OS or openiboot, after selecting openiboot, bunch of messages came out … and the last thing i notice is WELCOME TO OPENIBOOT … !!! several time tried, still no luck, anyone got any idea which step did i got wrong with this kind of symptoms?
about 2 years ago
@David:
I posted the solution three postings before yours!
Push the Home button several seconds and don’t just single click it to chose the OS!
about 2 years ago
Guys, Ignore my previous question, coz I overlooked the faq. Thanks. Got it working now… wanna try out android now..
about 2 years ago
Got it to work,,, pretty amazing!!! how you can do these days!!!
about 2 years ago
Is there any way to bypass the SD card check in order to play music or watch photos?
Maybe some kind of symlink? I’m currently at work and had no time to try whether it’s possible or not to connect through SSH in android OS. Anybody?
about 2 years ago
I can’t get the wifi to work though! but still thanks!
about 2 years ago
does the whole SD thing means we can connect the ipad camera kit to the iphone and read sd cards with it????
about 2 years ago
The Mediafire Download links are not working! ;( – I would love to try this on my iPhone 2G.
about 2 years ago
“In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (Recovery Mode)”
My computer failed to install teh drivers so I can’t “find” my iphone in ubuntu.
Can anyone help me on how to reinstall teh driver or fix it on windows 7?
about 2 years ago
Sometimes previous comments on other pages have already answered this.
I used Windows 7 to install. I’ll post this for the 4th time.
1. Disable itunes helper
2. Connect iphone in recovery mode
3. Open VirtualBox
4. Look for Ubuntu then click Settings (do not run Ubuntu yet)
5. Go to USB, then add iPhone (Recovery mode)
6. Apply/Save
7. Run Ubuntu.
8. Do the steps on the tutorial
9. When the iPhone is in OpenIboot mode, shutdown Ubuntu (remember what step you were in the tutorial).
10. Quit Virtual Box
11. Run Virtual Box, choose Ubuntu then settings
12. Settings -> USB, add iPhone (OpenIboot)
13. Apply
14. Run Ubuntu
15. Continue where you left off.
about 2 years ago
I’m having the same problem as Nick but the drivers install successfully in Recovery Mode but not in openiboot mode.
Using win XP…… again driver would be very useful
Excellent work on the tutorial!
about 2 years ago
The mediafire link 5 is not working
about 2 years ago
MediaFire Link is down … would you please upload to other filehoster?
about 2 years ago
Hello, I have reached step “Type install, press Enter. When this is done you’ve got openiboot installed on your iPhone. You’re done!” however it says that it is unknown command, everything else I was able to do, but this last step is a problem. Any help ?
about 2 years ago
@Svetoslav Traykov: Please Upload the MediaFire Files again … maybe i can help. Please use RapidShare or something else…
about 2 years ago
Reuploaded the files here: http://www.multiupload.com/B3FY1M82I9
@Svetoslav Traykov – you’re probably not in the oibc (openiboot client). You’ll need to make sure that the command “./oibc” returns the same text as you see on the iPhone.
about 2 years ago
Problem:
iTunes keeps throwing “Error 1600″ when trying to restore the iPhone with a custom ipsw 3.1.2/3.1.3 file (created with Pwnage tool).
Solution:
Navigate to folder “~/Libary/iTunes/Device Support” (where ‘~’ means your own user’s home folder) and delete the file inside. After that, copy your custom ipsw-file (created with pwnage tool) into the same directory and rename it to ‘x12220000_5_Recovery.ipsw’. Restore again, pushing the “alt” button on a Mac or “shift” on Windows to choose exactly this file.
about 2 years ago
This is really frustrating. I go through the entire process easily. Android starts, but the screen is non responsive – as if the touch screen capabilities are not there.
The only thing that works is the home button.
Am I the only one with this kind of problem? What can it be?
about 2 years ago
The question has been asked and kind of answered but I will ask again. because of the same (or similar) processor, does this work on a First Generation iPod touch?
about 2 years ago
This is probably a silly question, but I cannot find the answer anywhere out there – how do you put the phone to sleep? I have it locking the screen, but it won’t turn the screen off. Much appreciated!
about 2 years ago
I managed to install everything correctly and get it working. My problem started after the 2nd or 3rd boot into Android. The iPhone does everything like before, except after the fancy Android loading animation, it just displays a completely black screen. iPhone OS is fine though.
about 2 years ago
Hey, I installed the Android and everything works like on the tutorial, but after I reboot at the end of the installation the iPhone goes back to the iPhone OS without booting the openiboot. Anyone knows how to solve that?
about 2 years ago
Can this be used with an IPhone 3G?
about 2 years ago
Nevermind, problem solved, I ignored the last step which says “type ‘install’”
about 2 years ago
I am on “Finishing Off” I typed reboot, and it stuck on iphone screen welcome to obeniboot. Should i wait long on this screen ? or something is wrong ?
about 2 years ago
IN Ubuntu Synaptic Package Manager
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
I finish the first 2 click apply,
there is a window call Summary then i click apply again,
there is an error, it said they cant download the two files from the internet but i got internet connected
about 2 years ago
how do i delete everything and go back to just iphone os with no android or i have to restore my phone using dfu mode ?
about 2 years ago
I didn’t downloaded stuff and I was able to continue without downloading . Just press cancel.
about 2 years ago
When i hit ./oibc nothing happens, when i do su./oibc i get this Unknown id: ./oibc
anu advice on this issue?
about 2 years ago
@Manny, when you type in ./oibc, i believe it should take control of the phone, if it doesnt show whats being loaded on the phones screen, shutdown ubuntu, close virtual box completely, then open it all back up again and add ur iphone(openiboot mode) again. this should solve your problems…. it worked for me..
about 2 years ago
when i type ./loadibec openiboot.img3 it said no such directory
about 2 years ago
Thanks a lot man, worked :]
about 2 years ago
So pretty much everything went fine with an installation bit, booted in Android, but there is no touch, it doesnt work cant browse or do anything else.
any solutions?
about 2 years ago
I face an error when I try to start OpeniBoot mode. My iTouch won’t leave from Recovery mode. In addition, it will get disconnected from my PC (namely it won’t be recognized till I leave Recovery mode and restart my iTouch). I don’t think I’m doing anything wrong. Everything seems to be just fine. Just tell me that I waste my time trying to get Android installed on an iTouch and I will be fine.
about 2 years ago
First of all great stuff!
Got it working really fast, only thing that bothers me right now is the SIM card problem mentioned already before. For some reason it wont take my PIN code, so I have to remove the card if I wanna play around in Android.
Keep up the good work!
Milan
about 2 years ago
@ #19 written by Rex
yeah i tried those steps. the usb still isnt being picked up. and when its checked off it says windows didnt install it or something.
about 2 years ago
after last step “reboot” still getting welcome to iboot ; welcome to iboot .. and nothing happens
about 2 years ago
nor_read command results in bash:nor_read: command not found can anyone help?
about 2 years ago
everything fine except there is no available networks ..
I am not using at&t sim card, is it ok ?
once I switch to iphone os, it work..
about 2 years ago
I believe you need to extract the file. Renaming it won’t do. There are plenty of free decompression software out there for free, 7-zip, winrar, etc.
about 2 years ago
Do not copy/paste text . Type it.