Monday, April 26, 2010

[Guide] How to install Android on iPhone 2G


Android and iPhone and quickly growing to become the two most popular smartphone platforms in world. So its not surprising that developers are working hard to get the best experience of both worlds into one device. Since Android is an open platform, it only makes sense that they would try and port that into Apple’s iPhone.

The end result is Android 1.6 Doughnut running on the original iPhone, and you can find the step by step guide on how to install Android on the Apple iPhone 2G below.

[DISCLAIMER] This website is not responsible for any loss of data or device malfunction which may occur as a result of following this guide. Please proceed at your own risk.

[NOTE] The following guide is based on Ubuntu (Linux). However it should be very similar on Windows and Mac computers. In case you are using a Windows PC, substitute using a command prompt where you require the terminal, which is available on Mac and Linux.

REQUIREMENTS
  • You need to have a jailbroken Apple iPhone.
    -
  • Download and install FileZilla.
    • Download and iPhone Explorer if you are using Mac or Windows (optional).
      -
  • Download Android images and sources.
    • Copy all the downloaded files into your Downloads folder
      -
  • Download patched images.
    • Copy all the downloaded files into your Downloads folder
      -
  • Make sure you have iTunes closed and killed the iTunes Helper process (windows/mac)

GUIDE
  1. Find your iPhone IP address by
    • Go to Settings > WiFi on your iPhone
    • Click the blue arrow close to the network name and note down IP address
      -
  2. Restart your iPhone in Recovery Mode (power off, hold down Home button, connect to USB cable) and connect it to your computer
    -
  3. Open FileZilla
    • Click New Site.
    • Type the IP address of your iPhone under Host.
    • Change Server Type to SFTP
    • Set Logon Type to Normal.
    • Type root for the User and alpine for the Password.
    • Click Connect and you will be connected to your iPhone
      -
  4. Copy the following files into the var directory of your iPhone.
    • ramdisk.img, userdata.img, cache.img and zImage from Android images and sources
    • system.img and android.img.gz from patched images
      -
  5. Open terminal, type sudo su and enter your password. (Windows users need to ensure they run command prompt as administrator)
    -
  6. Type cd Downloads/openiboot
    -
  7. Next type ./loadibec openiboot.img3 and you will see the OpeniBoot screen appear on your iPhone
    -
  8. Hold down the power button a couple of seconds on your iPhone.
    -
  9. The bottom option, openiboot console, will become selected
    -
  10. Press Home on your iPhone.  You’ll see a bunch of text appear and stop at “Welcome to openiboot”
    -
  11. In terminal type su ./oibc and enter your password.
    -
  12. You’ll see the same text from the iPhone in the Terminal.
    -
  13. Type (without quotes) ‘nor_read 0×09000000 0×0 1048576′ and press Enter.
    • Wait for it to say Done.
      -
  14. 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
      -
  15. Type install, press Enter.  When this is done you’ve got openiboot installed on your iPhone.
    -
  16. If you still have Terminal open with the oibc still running, just type ‘reboot’, press Enter and skip to step 18.
    -
  17. If you don’t have Terminal open, disconnect your phone, turn it off and back on.
    -
  18. When openiboot appears press Power button to switch to openiboot console (bottom option)
    -
  19. Hold down the Home button
    -
  20. Android will start to boot, but it might take a while

FAQ

Q1) My iPhone got bricked, how do I fix it?
  1. If your iPhone appears bricked do a DFU restore, using these instructions:
    • Connect your iPhone to your computer.
    • Turn iPhone off.
    • Hold power and home together for 10 seconds (exactly).
    • Release power but keep holding home until the computers beeps (observed on a PC) as a USB device is recognized.
    • A few seconds later iTunes should detect your iPhone.
    • If the Restore Logo is present on the screen, you are in Recovery Mode, not DFU.
  2. If iPhone is still 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.
  3. Still bricked?
    • 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.
  4. Still no luck? This trick worked under the windows XP.You need install LibUsb-Win32 drives on your PC.
    • Connect your iPhone to the PC.
    • Hold Sleep(Power) button and Home button for 10 sec(exactly).
    • Holding the home button and leave power.
    • After few seconds you PC will recognize the usb drivers and iTunes will detect the you iPhone in restore mode.
Q2) I cannot boot a second time into Android after successful installation. It stops with “Welcome to iboot” console.
  • 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!
Q3) When i type ‘nor_read 0×09000000 0×0 1048576′ and press Enter the iPhone reboots
  • Don’t copy and paste the string, type it by yourself!
The developers have even gotten features like calling, texting and Wi-Fi working. However its still work in progress, so things like the camera wont operate and you will have to deal with some force closing of apps.
However upgrading to future versions of Android after installing this mod is quite easy.


sourcesGeekoid | WinXBlog | planetbeing
DJRipster Web Developer

Morbi aliquam fringilla nisl. Pellentesque eleifend condimentum tellus, vel vulputate tortor malesuada sit amet. Aliquam vel vestibulum metus. Aenean ut mi aucto.

No comments:

Post a Comment