Created
November 18, 2017 11:13
-
-
Save mmalchuk/8665149b7f08fdef5191c66b5c7fc60b 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 | |
sudo fastboot flash bootloader bootloader-hammerhead-hhz20h.img | |
sudo fastboot reboot-bootloader #or power off/start bootloader | |
sudo fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.30.img | |
sudo fastboot flash boot boot.img | |
sudo fastboot flash cache cache.img | |
sudo fastboot flash system system.img | |
# add params -S 256M if remaining memory is not enough . eg: sudo fastboot flash -S 256M system system.img | |
sudo fastboot flash recovery recovery.img | |
sudo fastboot reboot | |
# Wait boot to finish for application upgrade. | |
adb push SR3-SuperSU-v2.79-SR3-20170114223742.zip /sdcard/ | |
adb reboot-bootloader | |
# [Wait for bootloader to start] | |
sudo adb start-server | |
sudo fastboot flash recovery twrp-3.0.3-0-hammerhead.img | |
sudo fastboot reboot-bootloader | |
# on the screen, Navigate into Recovery mode -> 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