How to update the system to Android 5.1.1 and retain data on the Nexus 5 mobile phone

Source: Internet
Author: User
Tags prepare zip

Tip: There is a risk to flash the machine. You must be cautious with the operation and be at your own risk.


However, I wrote a little too long, so I would like to summarize it briefly: (for those with existing flash brush experience)

PS: Although the data update system is retained, it is best to back up the app and data before the flash.

0. Prepare the environment:
0.1 prepare the adb and fastboot tools in windows (if you haven't flushed the machine, go to major forums to learn more)
-If not, look for a http://pan.baidu.com/s/1o6JvyX0 here.
-Decompress the package to the adb Directory (make sure there are both adb.exe and fastboot.exe), for example, D: \ adb (The following is an example)
0.2 and then the android driver. I don't know how to install it.

1. Download system: https://developers.google.com/android/nexus/images)
5.1.1 Direct address for Nexus 5: https://dl.google.com/dl/android/aosp/hammerhead-lmy48b-factory-596bb9c1.tgz

2. Decompress the hammerhead-lmy48b-factory-596bb9c1.tgz and decompress it
Bootloader-hammerhead-hhz12h.img
Radio-hammerhead-m8974a-2.0.50.2.26.img
Put it in D: \ adb

3. Unzip the image-hammerhead-lmy48b.zip to get
Recovery. img
Boot. img
System. img
These three files are also stored in D: \ adb.

4. Connect the mobile phone USB to the PC. Make sure the driver has been installed (you must have). Make sure that the mobile phone has enabled usb debugging.

5. Start to fl

-Open the command line window
-Cd to the directory where the adb and fastboot commands are located. The command is D: Press enter first, and then cd adb press Enter.
-Enter the Bootlloader mode on the mobile phone. The command is "adb reboot bootloader" (or "manually": press the power key + volume reduction key when shutdown)
-Sequentially click
Fastboot flash bootloader bootloader-hammerhead-hhz12h.img
Fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.26.img
-Restart the bootloader mode after the two are successfully flushed in. You can run the fastboot reboot-bootloader command to restart the bootloader.
-Then, click it in sequence.
Fastboot flash recovery. img
Fastboot flash boot. img
Fastboot flash system. img
-Restart

Re-emphasize: there is a risk of flash brush. Non-professionals should not click it!



Update Android 5.1.1 with retained data line refresh + Android 5.1.1 root

The last update of this tutorial is 0521:
This document uses nexus 5 as an example to describe how nexus devices work. You only need to download different system base packages.

Google has released a base package for Android 5.1.1 [all devices except nexus 6 now have a base package for Android 5.1.1]. if you are not in urgent need of ota, you can use this tutorial to retain data and upgrade to Android 5.1.1!

Preparation Tool: Make sure your mobile phone is unlocked. If it is not unlocked, you need to unlock it first. The inexus Forum also provides many methods. We recommend that you use the post on the top of the Forum (in bootloader mode, you can use fastboot oem unlock to unlock the instance. If you have already unlocked the instance, you can ignore it.

The following are specific steps: (If you have any questions, post them separately. Otherwise, you will not be able to respond)

1. First download adb, fastboot:
Http://pan.baidu.com/s/16AxVH


Download and copy adband fastboot.exe to c:/windows/system32.
Then copy all the files whose names contain adb to c:/windows/system.


It perfectly solves the problem that fastboot and adb are not internal or external commands.

2. Find the official Android 5.1.1 image of the corresponding machine:

Nexus Chinese network for all important nexus4/5/6/7/9/10 Android 5.1.1 system Bottom package are sorted, download address see: http://www.inexus.co/thread-18488-1-1.html
If the system package you want is not found in the post above, you can download from here (need to flip the wall): https://developers.google.com/android/nexus/images

3. Decompress the. tgz file and place it in C:/adb/(create it without this directory). It is very important.

Finally, you will have files similar to the following ):





4. If you want to retain the data upgrade to Android 5.1.1 nexus 5, nexus 7, nexus 6, nexus 9, nexus 10 users use the following method to modify the flash-all.bat:

Pc computer with text editor such as Notepad open flash-all.bat, linux or mac use the relevant editor to open the flash-all.sh inside, fastboot update command before "-w" to remove, if-w is not removed, your data will be deleted.

Here, take nexus 5 as an example and use a text editor to add the fastboot-w update flash-all.bat in the flash-all.sh (PC) or image-hammerhead-lmy47d.zip (mac or linux computer)
, You need to change to update image-hammerhead-lmy47d.zip
Actually, the flash-all.bat0000.shto be flushed by different devices. Here, you only need to remember to find the flash-all in the Android 5.1.1 Image package of the corresponding device. Remove the fastboot-w update image.xxxx.zip file and save it, run the following method to retain the data.



5. Connect your nexus 5 and PC to enable USB debugging. If you do not know how to enable USB debugging, please read the beginner's guide.

Then, open the command prompt, enter the mobile phone to fastboot mode, enter the doscommand to enter the c:/adb/directory, and enter adb reboot bootloader. The specific input is shown in the figure below.




If you do not want to use the command, you can also manually switch to the Bootloader mode (when the instance is shut down, press the power key + volume reduction key ).


This step is very important, or you will encounter a "waitting for the device" error message.


Wait for the phone to enter this mode, and then enter the flash-all.bat, see the figure below (must use remove-w. bat, otherwise it will clear the data), or directly on the computer double-click the flash-all.bat to run it.


Then wait. If "missing system. img "problem, congratulations, you need to go to another tutorial in the small compilation to manually brush the machine. See solution for manual upgrade of Android 5.0" missing system. img "problems




If you strictly follow the above method, you will not fail.

The test is successful.

II. nexus 4/5/6/7/9/1/Android 5.1.1 root solution

We recommend that you use "nexus 4/5/6/7/9/10 Android 5.1 root, brush the native Android system, and unlock the tutorial" for one-click root work. Please inform us of any incompatibility

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.