ads

dimanche 20 septembre 2015

FIX for S-ON devices: Bootloop after OTA update when unlocked and rooted



Hi, I found a way to fix this bootloop which happens after you flash the latest ota update if you have unlocked and rooted your stock rom.
I own a HTC E8 China Unicom [M8Sw - dual sim], I don't know if it will work on other variants.

Requirements:
-some expertise with adb/flashing/twrp recovery management will be needed.
-stock firmware.zip, inside the OTA zip file, where you will find you stock recovery,boot image, etc
-Stock ROM, rooted with no modified existing system files
-TWRP Recovery the kernels from @Captain_Throwback works fine. http://forum.xda-developers.com/one-...overy-t3060188
-untouched Stock Kernel Modules (IMPORTANT)
-SchKernel Extra 3.3, to gain write permission to /system http://forum.xda-developers.com/one-...a-3-3-t3200090
-Battery +80 charge recommended...the process gonna demand a lot of power.
-Patience... loads of it.... :p


Before we begin, I want to make it clear that I am not responsible if you brick or damage you phone!!

It is the SU binary/files which are preventing the phone from updating correctly.
to be able to update... you need to unroot the phone before. Well, this was previously not possible due to system write protection.

But now we have a custom recovery mod which enables us to write to the system partition and thus can fully unroot with SuperSU apk itself.


Before you flash anything, be sure to have a working twrp full backup of you phone! In case anything goes wrong.


STEPS:

1. Copy the kernel 'modules' folder [found in system/lib/ in your phone] to another location ( for e.g. to your internal phone memory), you're gonna need it later.

2. Flash the twrp recovery if you haven't already and boot into TWRP recovery.

3. flash SchKernel Extra 3.3 kernel mod. It will launch the aroma installer. There will be options as overclocking/underclocking etc..
I left everything on STOCK option, disabled Swipe2sleep, unselected the everything in the optional addition page. Then went to install it.

4. Reboot, and open SuperSU app, go into setting, tap the FULL UNROOT option, this might take a while. The first time, when to unrooting notice shows and it seems that the app is not doing anything, you might be required to exit the app by pressing home button and swipe in recent list to close. Then open the app again a redo FULL UNROOT. If you exit the app and when re-opening the "unrooting notice" is still there, then it means it is working. This might take a bit of trial and error.

5. Ultimately, SuperSU app will close. Then you will need to reboot. You will see that SuperSU is gone and that you have no root access.
Ensure that all SU related files are gone in /system/xbin (daemonsu, su, supolicy). If not then something is wrong and I cannot say if the following steps will work.

6. Now, turn it off again to go to fastboot connect to PC and flash the stock boot.img via adb to restore the stock kernel.

8. There, mount /system partition and got to advance , root explorer/file manager.. (I forgot the name)

9. Now browse to /system/lib/ and delete the 'modules folder'. This is because the SchKernel Extra 3.3 kernel mod flashed previously will modify your kernel modules and when you will try to update the OTA, the stock recovery will report that xxxxx.ko has be modified and it will fail the update process.

10. Remember the previous 'modules' folder you copied previously, now move it to /system/lib/HERE , to replace the deleted folder. Don't try to overwrite the folder, it won't be possible. It said operation failed for me.

I also set the permission of the folder to 775.. which is think is unecessary.
Can someone please confirm that? :D

11. Reboot into fastboot mode, connect to PC (if not already), flash stock recovery.

12. Now, your good to flash the OTA updates. :good:

Donwload it if not already done.
If ever you have downloaded from PC and copied it to phone, and for whatever reason the phone is not detecting the zip file and asking for install.
Just move it to you exeternal SD card and rename it to "ptt.zip" , go into stock recovery and go down the list to "apply update from SD card"
and it should flash the zip file. When done, select the reboot option and it will say reboot to flash firmware.zip and the will boot. :fingers-crossed:

When booting it will take some time, and then go to the "optimizing apps" screen. This might take a lot of time if you have a lot of apps installed. The phone might get really hot during this process.

When the OS finally boot completely there will be an "HTC" screen and an exclamatin mark in the notification bar. >> NO WORRIES, it is the just the update working. It will go away when the update is fully processed.

I haven't tried rooting the device again as I'm still downloading other OTA updates while I'm writing this thread. But I think you should be able to root with twrp the usual way.

Hope I helped you. Don't forget to hit thanks ;)

Any suggestion and help would be much appreciated to simplify this tutorial and make it easier for the general users to understand. :good: :)



Aucun commentaire:

Enregistrer un commentaire