Requirements:
Pro:
Cons:
Guide:
some file names changes depending on version so please complete the {version_here} placeholder with the file you download
* prepend "sudo" on command line if you are on a Linux machine
Now you have the lastest stock image and all your data.
Change recovery (TWRP) and root:
Note that we haven't flash the stock recovery, but during every boot of an unmodified system there's a script that do that (supersu usually deactive this behavior during install).
If you had TWRP installed and the SuperSU zip on your device, at the end of the above procedure you can boot directly from bootloader to recovery and go directly to last step:
- you need to have a pc with adb working
- a stock firmware on your device (any)
- unlocked bootloader
- a working backup just in case
Pro:
- you will not lose your data / application
Cons:
- you will lose all system modification (root, busybox, custom kernel...)
- you'll take all the risk of operation (I've tested on my device)
Guide:
some file names changes depending on version so please complete the {version_here} placeholder with the file you download
* prepend "sudo" on command line if you are on a Linux machine
- download last version for your device here (if you want to root download the zip file in the section below to speed up the operations)
- extract
- extract image-{device_here}-{version_here}.zip in the same folder (no subdir)
- command line* (or reboot device with vol down pressed):
Code:
adb reboot bootloader
- command line*:
Code:
cd {your_path_here}
- command line*:
Code:
fastboot flash bootloader bootloader-{device_here}-{version_here}.img
- command line*:
Code:
fastboot reboot-bootloader
- command line*:
Code:
fastboot flash radio radio-{device_here}-{version_here}.img
- command line*:
Code:
fastboot flash system system.img
- command line*:
Code:
fastboot flash boot boot.img
- ONLY IF YOU FOUND A VENDOR.IMG IN THE ZIP command line*:
Code:
fastboot flash vendor vendor.img
- command line*:
Code:
fastboot flash cache cache.img
- command line*:
Code:
fastboot reboot
Now you have the lastest stock image and all your data.
Change recovery (TWRP) and root:
Note that we haven't flash the stock recovery, but during every boot of an unmodified system there's a script that do that (supersu usually deactive this behavior during install).
If you had TWRP installed and the SuperSU zip on your device, at the end of the above procedure you can boot directly from bootloader to recovery and go directly to last step:
- download: TWRP image (twrp-{version_here}-{device_here}.img) for your device
- download: chainfire SuperSU 2.71 on your device
- command line*:
Code:
fastboot flash recovery twrp-{version_here}-{device_here}.img
Code:fastboot boot twrp-{version_here}-{device_here}.img
- boot in recovery and flash supersu zip
Last edited: