首先: adb reboot bootloader,进入fastboot mode,
A. fastboot flash bootloader bootloader.img
(if it isn’t called bootloader.img, use the actual file name)
B. fastboot flash radio radio.img
(if it isn’t called radio.img, use the actual file name)
C. fastboot reboot-bootloader
D. fastboot flash recovery recovery.img
E. fastboot flash boot boot.img
F. fastboot flash system system.img
G fastboot reboot
(我只刷了recovery,boot,system. 不必进行以下OTA步骤)
其次:进入recovery mode,
adb sideload your_ota_package.zip
最后:root,执行
- Download the SuperSU file you need from here.
- Download the Android SDK for Windows here.
- Download the fastboot file for Windows here and extract the folder in the android-sdk-windows\platform-tools directory.
- Connect the Nexus 5 to the computer with the USB cable.
- Transfer the SuperSU zip file over to the internal SD card of the phone (without unzipping the file).
- Power down the phone.
- Download the ClockworkMod recovery file.
– save it to the same /platform-tools directory. - Boot the Nexus 5 in fastboot/bootloader mode by holding down the Volume Down and Power buttons.
- Navigate over to the /platform-tools directory and right-click any blank white space and hold down the Shift key. Now choose to open the Command prompt.
- Type the following command:
fastboot flash recovery recovery-clockwork-touch-6.0.4.5-hammerhead.img
- Now select the Recovery options from the fastboot menu.
- You should now be in the custom recovery mode.
- Scroll down the list until you see “install zip” and select the option.
- Now select the “choose zip from SD card”.
- Search for the SuperSU file in your internal memory.
- Confirm you wish to install the SuperSU file.
- Wait for the installation to complete before going back to the main recovery menu and selecting the “reboot system now” option.
nexus 5保留数据从android 5.0.1升级至android 5.1