Jump to content
Sign in to follow this  
ford1001

How to Install Android on an iPhone 2G

Recommended Posts

Guide from http://androidalot.com/tag/iphone/

 

 

 

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:

 

1.IMPORTANT! Jailbroken iPhone 2G

2.VirtualBox (link). Get the right version Windows/Mac

3.VirtualBox Ubuntu Image (link). Download number 10, Ubuntu Linux 9.10 codename Karmic Koala x86

4.iPhone Explorer (link). If you’re on Linux you can use FTP such as FileZilla instead.

5.Android images and sources (link)

6.Patched images (link). Courtesy of Geekoid.

 

 

Preparation

 

Let’s get some of the basics out of the way:

 

1.Install iPhone Explorer

2.Connect your iPhone to your Mac/PC

3.Run iPhone Explorer

4.Click the Change Root button

5.Select “/” Real iPhone Root Directory

6.Browse to private/var

7.Copy ramdisk.img, userdata.img, cache.img and zImage from Downloads#5 (Android images and sources) to that var directory

8.Copy system.img and android.img.gz from Downloads#6 (patched images) to the that var directory

9.That’s all the Android files on your iPhone, now to make them run!

 

Setting Up Virtual Box

 

1.Install VirtualBox

2.Open VirtualBox

3.Go on File > Virtual Machine Manager

4.Make sure Hard Disks is selected

5.Click Add

6.Locate the ubuntu-9.10.vdi file (download#3) and select it

7.Close Virtual Media Manager

8.Go on Machine > New

9.Click Next

10.Under Name enter “Ubuntu”

11.Select Linux Operating System

12.Select Ubuntu Version

13.Click Next

14.Set an amount of RAM, the default should be fine

15.Click Next

16.Select “Use existing hard disk”

17.Select the ubuntu-9.10.vdi

18.Click Next

19.Click Finish

20.Select that new machine to start up Ubuntu

21.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!

 

1.Click System (top bar) > Administration > Synaptic Package Manager

2.Enter the password: reverse

3.In the quicksearch box, type libusb-1.0, click the Check Box next to libusb-1.0-0 and select Mark for installation

4.In the quicksearch box, type libreadline, click the Check Box next to libreadline5 and select Mark for installtion

5.Click Apply

6.When it’s all installed close the Package Manager

7.Open Firefox (in Ubuntu)

8.Download openiboot installer from here

9.Click Places (top bar) > Downloads

10.Right-click openiboot.zip and click Extract Here

11.Click Applications (top bar) > Accessories > Terminal

12.Without the quotes, type ‘cd Downloads/openiboot’

13.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)

 

1.In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (Recovery Mode)

2.In the terminal type (without quotes): ’sudo su’

3.Enter the password: reverse

4.In the terminal type ./loadibec openiboot.img3

5.You’ll see the OpeniBoot screen appear on your iPhone

6.Hold down the power button a couple of seconds (iPhone)

7.The bottom option, openiboot console, will become selected

8.Press Home (iPhone). You’ll see a bunch of text appear and stop at “Welcome to openiboot”

9.In VirtualBox, the Ubuntu Window, go on Devices > USB Devices and select iPhone (OpeniBoot Mode)

10.In terminal type su ./oibc

11.Enter the password: reverse

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

14.Wait for it to say Done

15.Type (without quotes) ‘~norbackup.dump:1048576′

16.This creates a backup of your NOR memory – save a copy on USB stick, or email it to yourself or something

17.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:

 

1.If you still have Terminal open with the oibc still running, just type ‘reboot’, press Enter and skip to step 3

2.If you don’t have Terminal open, disconnect your phone, turn it off and back on

3.When openiboot appears press Power button to switch to openiboot console (bottom option)

4.Hold down the Home button

5.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

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

 

1.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.

2.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

3.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.

4.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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...