How to install android on iPhone

Source: Internet
Author: User
Tags scp command

News source: Personal Computer World website
This article teaches you how to install Google's Android operating system on the iPhone. Warning in advance, the hands-on ability is not strong, do not like tossing students or try again.
Maybe you want to let the iPhone escape from the apple claw. Maybe you just try something new. Either way, you have read the article about installing the Android system on the iPhone. Now you want to try it on your own.

Not complete yet

Although the Android system can be installed to implement most of the functions of the smart phone, it cannot meet daily needs. I have not completed the power management function, so it takes more than an hour to install the android iPhone.
There are still some bugs and performance problems, so the mobile phone can be used, but the speed is not very fast. If you do some Unconventional Operations (such as force-disabling the iPhone), it is likely that the system cannot be restored. However, no bug will make your iPhone brick or permanently damaged.
Finally, I would like to remind you that media synchronization is not available, so it is very painful to download a media file. I try my best to work hard and hope to solve these problems as soon as possible.

Read before flashing
First, you need to understand some basic concepts of the iPhone: how to bring the iPhone into the recovery mode, how to enter the DFU mode, and how to restore the firmware in these modes.
The iPhone is a machine with excellent engineering design. If you know these concepts, it is unlikely to make it brick. If all methods fail, remember that you can always restore the firmware in DFU mode.
Unless you have great information about your ability to compile binary files, you must be familiar with the operations on the command line interface, in addition, a PC running Linux system (or a Linux running on a virtual machine) is required ).

Flash needed

1,The first generation of iPhone or iPhone 3GThe firmware version is between 2.0 and 3.1.2 and has been jailbroken by redsn0w, blacksn0w, or pwnagetool. If the firmware version has been updated to version 3.1.3 or version 4.0, you must use pwnagetool to create a file named 3.1.2.ipsw to downgrade the jailbreak.
Note that the iPhone 3gs, all iPod Touch versions, and iPad are excluded Android and cannot be installed on these devices. I also explicitly excluded iPhone OS 3.1.3 and all 4.0 Beta versions. The version of spirit cannot be used for jailbreak.
If your iPhone hasn't been jailbroken, don't worry-the process is simple, just keep pressing "Next" in the Wizard. I suggest using redsn0w, because I write most of the source code.
2,32-bit liunx operating system or virtual machine(I recommend UBUNTU ). If you have not installed Ubuntu, see related tutorials.
Although most of the steps can be completed on any operating system, a tool (named oibc) does not yet have a Windows version. In addition, the executable files I provide are compiled on 32-bit ubuntu.
All files are compiled for Linux and MAC systems, but if you are adventurous, you can.
3,Pre-compiled images and binary files: Determine which file to use depends on whether your iPhone is the first generation or 3G.
4. The iPhone OS 3.1.2 ipsw file is also called iPhone 1, iPhone 3.1.2_7d11_restore.ipsw or iPhone 1.2 _ 3.1.2 _ 7d11_restore.ipsw. The computer must have such a file.
5,Firmware of the iPhone's internal Marvell WLAN Chip. Go to the Marvell website, and on the right side of the page, you will see a drop-down menu "select your platform ". Select the Linux 2.6-Snapshot file from the drop-down menu.

Detailed steps for installing android on iPhone
First, prepare the iPhone multi-point touch screen and WLAN firmware. For legal reasons, we cannot share these files. You can extract them from the ipsw file or download them from the Marvell website.
1,Create a directory namedFirewareDirectory.
2. upload to the temporary directory ..
3,Extract fwimage/helper_sd.bin and fwimage/sd8686.bin from sd-8686-fedora26fc6-syskt-gpl-9.70.3.p24-26409.p45.tar and put them in the firmware directory.
4,Rename helper_sd.binSd8686_helper.bin.
Now that you have the WLAN firmware, the next step is the multi-touch screen firmware.
5,In Linux, createIdroidAnd extract utils/dripwn from the previous tar file.
6,Copy or move the 3.1.2.ipsw file you obtained from the apple website to the dripwn folder of the idroid.
7,Start the command line (Ubuntu terminal) and enter the idroid folder. You can typeCd ~ /Idroid.
8,If you are using the iPhone 3G version, go to this webpage, if it is the first generation of iPhone 3G or enter this webpage. Copy the vfdecrypt key.
9,In the command line, for the first-generation iPhone, type the following:
./Dripwn iphone1, ipv3.1.2_7d11_restore.ipsw [the vfdecrypt key you copied]
For iPhone 3G, type the following:
./Dripwn iphone1, 2_3.1.2_7d11_restore.ipsw [the vfdecrypt key you copied]


10. Wait a moment and the command is executed. In the idroid folder, you will get three files: zephyr_main.bin, zephyr_aspeed.bin, and zephyr2.bin. Move them to the firmware folder.
Now all the files required by Android are ready for installation.
11,If OpenSSH is not installed, install OpenSSH first. You can install OpenSSH through cydia.

12. If OpenSSH is installed, connect to the iPhone through SSH and use the passwordAlpineLog On, TypePasswd RootTo change the password of the root user, and then typePasswd mobileTo change the password of a mobile user.
Do not skip this step. If the SSH default password is not changed, all iPhone worms can infect your machine.
13. Extract prebuilt/android.img.gz, prebuilt/cache. IMG, prebuilt/ramdisk. IMG, prebuilt/system. IMG, prebuilt/userdata. IMG, and zimage from the previous tar file.

14. Use the 'scp command or SFTP client to upload all these files to the/private/var directory on the iPhone.
You can use these commands in Linux, if you want to use SCP instead of the sftp gui client. Assume that you enter:
SCP android.img.gz root @ [IP address of iPhone]:/private/var/
SCP cache. IMG root @ [IP address of iPhone]:/private/var/
SCP ramdisk. IMG root @ [IP address of iPhone]:/private/var/
SCP system. IMG root @ [IP address of iPhone]:/private/var/
SCP userdata. IMG root @ [IP address of iPhone]:/private/var/
SCP zimage root @ [IP address of iPhone]:/private/var/
15. Use SFTP customer or SCP to create a name on/private/Var of the iPhoneFirmwareAnd then copy all the files in firmware on the computer.
You can use the following command:
SCP-R ~ /Firmware/root @ [IP address of iPhone]:/private/var/firmware
Android continued on the iPhone,
16. Restart the iPhone. For safety, check to ensure that the files are still running after the restart and the size of the files remains unchanged.
17. Extract utils/oibc, utils/loadibec and prebuilt/openiboot. img3 from the previous tar file and release them to the idroid directory.
18. Disable the iPhone and go to the recovery mode. During the iPhone process, connect the iPhone to the computer through USB and press and holdHoldAndHomeWhen the backlight is on, releaseHoldKey until connect to iTunes appears, then releaseHomeKey.
19. Run the following command on the terminal:
Cd ~ /Idroid
Sudo./loadibec openiboot. img3
If everything goes well, the 'openiboot' Startup menu should appear!

20. Use the volume control button or the hold key to select the second menu option, and press the Home Key to select.
The text-mode console should run on the screen, with information about welcome to openiboot at the end.
21. TypeSudo./oibc
The information displayed on the iPhone also appears on the computer terminal. Next, you should back up the nor (when the iPhone boot program is a storage device) to prevent your iPhone from becoming brick-and-mortar.
22,EnterNor_read 0x09000000 0x0 1048576This will read the entire nor into the main memory.
23. In Terminal/oibc ~ Norbackup. Bin @ 0x09000000: 1048576. A file named norbackup. Bin is generated in the idroid directory and saved.
This command uploads nor to a computer. After the backup is completed, you are now free to modify the nor. Next, install openiboot to nor to replace the existing Apple iboot bootloader.
24. Enter install in the terminal/oibc
This process may take several minutes. After installation, the complete message appears.

25. TypeReboot, And then pressCTRL + cExit.
This openiboot menu appears every time the iPhone is started. Note: You can uninstall openiboot and run the uninstall command in oibc. TypeHelpHelp
You still pressHomeUntil the connect to iTunes screen appears, to enter the recovery mode (do not pressHomeKey ).
Finished! Use openiboot to boot the Android system. However, currently, the android system cannot be normally disabled, and the mobile phone can only be forcibly disabled by holding down hold and home at the same time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.