How to Install Android 2.2 Froyo in iPhone 3Gs
My first post will be based on this link. How to install Android 2.2 in iPhone 3Gs, with the help of Ubuntu Karmic.
I managed to port the Android 2.2 image and firmware over to the iPhone with some level of success and wanted to share. Let me know if you have any questions about what I’ve written.
The general steps is as follows:
1) Jailbreak your iPhone
2) Set up Linux environment
3) Load Android image files and firmware
4) Install OpeniBoot
5) Start Android
Approximate time: 1 hour
Jailbreak your iPhone
1) I had my iPhone jailbroken with blackra1n and it kept on hanging at “radio: reading baseband nvram… done”. I was able to fix this by restoring up to 3.1.3 and jailbreaking with Redsn0w 0.9.4 using a firmware file for the 3G at 3.1.2.
2) Install OpenSSH using Cydia.
How to set up a Linux environment
1) Download the Ubuntu 9.1 image for Virtual Box, codenamed Karmic Koala, here
2) Download VirtualBox here.
3) Install Virtual Box. Set up a new Virtual Machine using the Wizard, with OS Type Ubuntu and select the image you just downloaded. Let’s start Ubuntu up! The default password is reverse
4) Go to System » Administration » Synaptic Package Manager and install (or make sure you have installed) libsub-1.0-0, libssl-dev and libreadline6.
Load Android files
1) The images I had most success with were the ones found here.
2) Untar the folder using something like 7-Zip or Winrar.
3) Download and install FileZilla. This apparently is more reliable than WinSCP.
4) Set your iPhone’s auto-lock to “Never” for now.
5) SSH to your iPhone from FileZilla and navigate to your root folder (up a few folders) (see this if you don’t know how). Sometimes this may take several tries.
6) Copy all the files from the images archive folder to /private/var
7) Copy all of the files in this archive to a new folder called “firmware” (note lowercase) on /private/var
8) Make sure all of the files have 777 permissions. The files are big – make sure all of them copied without problems (see screenshot below for comparison).
1) Download this file (16.7MB) onto your Ubuntu machine and unzip to your Desktop.
2) On your Windows machine, go to Task Manager and disable iTunesHelper.
3) Put your iPhone into Recovery mode by powering the iPhone down, unplugging your iPhone, holding the iPhone Home button while you plug in.
4) Go to your VirtualBox window and select “Devices” from the menu area, then “USB Devices” – you should see “Apple iPhone (Recovery Mode)” available. Select it.
5) Navigate to wherever you unzipped the files like so:
cd Desktop cd 3g cd openiBoot sudo ./client/loadibec openiboot.img3
When it asks for
[sudo] password for ubuntu:
type in “reverse”
6) At this point your iPhone should flicker and show the OpeniBoot screen.
7) Use the Power button to navigate to the Console logo (the second one) and press the Home button. At the end of some script lines you should see “Welcome to Open iBoot”.
8) Going back to your VirtualBox Devices » USB Devices menu, select the new “Apple iPhone (Open iBoot Mode)”.
9) Go back to your openiBoot folder using the same steps as #5. Then run:
Your Terminal should now show what your iPhone displays (something along the lines of “USB change 2-> 3″).
10) Type “install”. Once it says “Images installed”, you’re done. Type “reboot”.
11) Using the Power button, navigate to your Android icon!
Voila! You have successfully installed Android 2.2 Froyo on iPhone 3G.
Disclaimer: this guide is for educational purposes only and I will not be held liable for any unexpected behavior that ensues as a result of following these instructions.
Full Credits to: rioleo.org