Forked from rhyttr/Android 6.0.1 (Build M4B30Z) Root for Nexus 5
Created
May 23, 2018 10:01
-
-
Save samuraee/89c7a62ba290f90c1c6a941c056ca64c to your computer and use it in GitHub Desktop.
Android 6.0.1 (Build M4B30Z) Root for Nexus 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download latest Android image, "hammerhead" for Nexus 5 (GSM/LTE) | |
https://developers.google.com/android/nexus/images#hammerhead | |
# Download latest TWRP | |
https://dl.twrp.me/hammerhead/ | |
# Download latest SuperSu | |
https://download.chainfire.eu/supersu | |
Enable USB debugging. | |
Reboot into bootloader (power off, volume down + power on or sudo adb reboot-bootloader) | |
# Wait for boot loader to start | |
# Install factory ROM: | |
unzip hammerhead-m4b30z-factory-625c027b.zip | |
cd hammerhead-m4b30z | |
unzip image-hammerhead-m4b30z.zip | |
fastboot flash bootloader bootloader-hammerhead-hhz20h.img | |
fastboot reboot-bootloader #or power off/start bootloader | |
fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.30.img | |
fastboot flash boot boot.img | |
fastboot flash cache cache.img | |
fastboot flash system system.img | |
# add params -S 256M if remaining memory is not enough . eg: sudo fastboot flash -S 256M system system.img | |
fastboot flash recovery recovery.img | |
fastboot reboot | |
# Wait boot to finish for application upgrade. | |
adb push SR1-SuperSU-v2.82-SR1-20170608224931.zip /sdcard/ | |
adb reboot-bootloader | |
# [Wait for bootloader to start] | |
adb start-server | |
fastboot flash recovery twrp-3.1.1-0-hammerhead.img | |
fastboot reboot-bootloader | |
# on the screen, Navigate into Recovery mode (Reboot) -> Install -> zip, select SR3-SuperSU-v2.79-SR3-20170114223742.zip -> Swipe to confirm Flash | |
# Reboot System | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment