Skip to content

Instantly share code, notes, and snippets.

@guillaumewuip
Last active March 14, 2016 20:36
Show Gist options
  • Save guillaumewuip/16dca9cb54071bcd0f23 to your computer and use it in GitHub Desktop.
Save guillaumewuip/16dca9cb54071bcd0f23 to your computer and use it in GitHub Desktop.
Update rooted Nexus 5 from UNIX

How to update rooted Nexus5 with last factory image without loosing app or files

  • download last factory image from Google Dev platform and unzip
  • download last TWRP recovery for Nexus 5
  • download last SuperSu version for Nexus 5
  • adb devices Device should be listed here
  • adb reboot bootloader Reboot on bootloader
  • open flash-all.sh in factory folder and remove -w in line "fastboot -w update image-hammerhead-.zip" in order to not erase all your files and applications
  • ./flash-all.sh Will take some time
  • adb reboot bootloader
  • fastboot flash recovery <TWRP recovery file> Install TWRP
  • Enter recovery on phone, enter adb sideload menu.
  • adb sideload <SuperSu file>
  • reboot system
  • verify root on phone with "Root Checker" app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment