Jailbreak your iPhone

Guide to Install Android on iPhone 2G


We had heard some time ago … Once the Google Android platform is open source, it would be hard to see it run on the iPhone. And the famous iPhone hacker known as planetbeing succeed. Earlier last week we told you about first successful porting of Android over iPhone 2G [Check here], since then we are getting too many e-mails, twitter mentions for a noob proof guide to install Android on iPhone 2G. I tried to make this post / guide as user friendly as possible, but if you still have any doubt / problem feel free to post a comment below.

First of all thanks to planetbeing for his hard work, and if you guys are happy with his work please donate support him.

Warning / Notes :

  • Only iPhone 2G is supported at the moment, don’t try this for iPhone 3G/3GS and iPod touch family.
  • Do it at your own risk, iDroid is in Alpha stage and if your device /explode/ during experiment we are not responsible.
  • Read the whole post 2-3 times before installing Android on your iPhone.

Prerequisite :

  • iPhone 2G already jailbroken.
  • Ubuntu Live CD / Ubuntu installed on PC (Ubuntu 9.10 latest version)
  • WiFi connection

Stage One :

1) Download iDroid package [Download here]

Due to licensing restrictions, these images do not include firmware files required for WiFi and the touch screen to function. For adding Touch screen support you need zephyr_main.bin, zephyr_aspeed.bin and for adding WiFi support you need sd8686_helper.bin, sd8686.bin You’ll need to obtain these files and add them into the android.img.gz and system.img images yourself.

If you are geek enough then check iPhoneWiKi [Click here] and do it your self. If you want my patched images ping me on my twitter iHackinjosh

2) Extract iDroid package to the desktop using 7zip [Download here]. You will need to extract the tar.gz which turns it into a .tar. Extract it again and .tar turns in to a folder.

3) SSH to you phone and transfer the contents of “Prebuilt” to the /private/var directry on your iPhone using WinSCP / Cyberduck . If you are unfamiliar with SSH transfers the follow our previous guide here.Capture

Stage Two : Install Open iBoot

Boot up an Ubuntu LIVE CD. Make sure you have libusb-1.0-0 installed. If not then just find and install it using the System – Admin – Package Manager tool.

ScreenshotAll commands below are run from your Linux computer, from within the iDroid > utils directory so copy “loadibec” “openiboot.img3” and “oibc” to your home folder in Linux.

  • Put your iPhone into Recovery Mode doing the following instructions.
    1. Turn the device completely off and disconnect it from cable/dock.
    2. Hold down the home button.
    3. While holding down the home button connect to a computer with a cable (easiest) or dock.
    4. Keep holding down the home button until you see a connect-to-iTunes screen You are now in recovery mode.
    • Run sudo ./loadibec openiboot.img3 Screenshot-1
    • The openiboot menu should now be displayed on your phone.
    • Press the button on the top of your phone to select the openiboot console, then press the home button.
    • Run sudo ./oibc. Your terminal should now show the same text that’s displayed on your phone’s screen.
    • Type install.                                                                                   Screenshot-2
    • Once done, type reboot
    • The phone should boot back into openiboot. Again select the console option, but this time hold down the home button for 2+ seconds. This will boot Android.

    Stage Three : Booting / Switching Android or iPhone OS

    1. Reboot your phone to get back to the openiboot menu.
    2. Press the Lock button to highlight the Console option.      IMG_0232
    3. Press and hold the Home button for 2 to 3 seconds. This will boot Android.
    4. Enjoy!

    Note: If you messed up your device after installing openiboot, you need to enter DFU mode and Restore  using iTunes.

    Stay tuned with us for your daily dose of iDevice news, you can follow us on twitter via @ihackinjosh You can also subscribe to our daily free e-mail news letter and keep your self updated with the latest of iDevice community.


    Comments ( 22 )

    Have Something To Say ?

    1. jazz June 3, 2010 Reply

      i dont know if this is gonna be simple for me….i think i will need to install ubuntu on my dino age system….some program which can help me install smoothly without installing ubuntu or red hat

    2. Jdills1196 May 10, 2010 Reply

      I will try this on iPod touch 2G, will post results.

    3. abraham May 8, 2010 Reply

      hi i did the full android os in my phone just touch panel wont work i cant touch icons in android os can some one plz help A_lucio@comcast.net

    4. xer0_ April 29, 2010 Reply

      @mibaksh i set my DNS to those numbers but for some reason still no go on data transfers from the android to the interwebz. iphone works fine still.

    5. xer0_ April 29, 2010 Reply

      I have this running on my phone. Word of advice that he has on here. Dont SSH into your device using WinSCP. For some reason IT DOES NOT TRANSFER THE FULL FILES YOU NEED. I used iphonebrowser and it worked perfectly

    6. Divyangriziya April 29, 2010 Reply

      Hey vinay i dont knw anything about Ubuntu
      wht is it nd how to get this things done…..i m reakky confusd….
      As u stated above can u just give me like a zip download for all dis above images…lab lab la
      u mantind above…..

    7. Ala' Assaf April 28, 2010 Reply

      What are the risks?????????????

    8. Orcun April 27, 2010 Reply

      Same question…..

      Ahmed Ali Shah said:

      I did it, but there is one problem im facing, that is while running the android, how to restart the iphone? there is no option in android to restart or shut off. Forceable restart is damaging the startup files of open iboot. Any one has any idea to deal with this?

    9. Mohsen Mehrvarz April 27, 2010 Reply

      that was amazing, I enjoy that.

    10. BranBrow April 27, 2010 Reply

      After a bit of trouble got Android to load but no response from the touchscreen. Before I dump and build my own image files did miss something?

    11. manno April 26, 2010 Reply

      nice work…!

    12. manno April 26, 2010 Reply

      Greate job man I’ll try it.

    13. Ahmed Ali Shah April 26, 2010 Reply

      I did it, but there is one problem im facing, that is while running the android, how to restart the iphone? there is no option in android to restart or shut off. Forceable restart is damaging the startup files of open iboot. Any one has any idea to deal with this?

    14. mibaksh April 26, 2010 Reply

      @Steve, set you DNS in Android to and 😉

      Press the home button (middle of phone screen) to access Advanced Options in Wifi.

      And thanks ihackinjosh

    15. Mohsen Mehrvarz April 25, 2010 Reply

      That is amazing.

    16. Steve April 25, 2010 Reply

      I did it all and it worked, Wifi on Android connects but can’t browse the net, and now my 2G also connects but can’t connect to anything, Browser, Cydia, Mail, iPtt etc …

      What the hell is going on here ? 🙁

    17. maxf April 25, 2010 Reply

      Actually it works, but after some reboots it damaged the system partition(fsck on startup of iPhone OS -> failed -> it’ll switch off itsself). Had to do a full restore… 😉

    18. Cybex April 25, 2010 Reply

      Awesome, this guide worked perfectly… I just needed to install libreadline5 also to get oibc to work.

    19. smanettone April 25, 2010 Reply

      This guide works for iPhone 3G also?

    20. neFos April 25, 2010 Reply

      Waiting for 3G 😀

    21. Anmol Singh April 25, 2010 Reply

      Great guide.

    22. Mohammad Saed April 25, 2010 Reply

      Greate job
      I’ll try it.

    Leave your comment here