[One (M8) Q&A, Help & Troubleshooting] iLevatate:
I currently have a T-Mobile HTC One M8.

I am running 4.4.4 with Sense 6.0

It is rooted, custom recovery (TWRP), S-OFF, with Xposed Framework installed.

I know this has been asked and discussed a million times in bits and pieces around XDA and the internet in general, but I am still having trouble finding one source with a definitive answer as to the steps I should follow.

I would like to update to Android Lollipop 5.0 (5.0.1)

- The OTA that has shown up on my phone as of now is Software Update: 4.20.531.4 (632.7 MB). I am not sure if there is already another one that would follow this one if I were able to successfully update to this version.

With that being said, I did not make a backup of my stock rom, nor recovery.

I am assuming that the process I need to take is this (to return my device to stock):

1) Uninstall XPOSED Modules and XPOSED Framework

2) Flash a STOCK ROM via custom recovery (TWRP)

3) Flash a STOCK RECOVERY via custom recovery (TWRP)

- Is this correct?

- If so, can someone provide me a link to the STOCK ROM and STOCK RECOVERY that I would need?

- If not, what are the steps I should follow?

Then what do I need to do to update my device to Lollipop?

Do I just refresh and check the software update in the ABOUT section of settings and update it as an OTA?

Can I skip all of these steps and just flash a factory LOLLIPOP IMAGE and RECOVERY via ADB with my device in it's current state?

Thank you in advance to anyone who will help me out :)

-----

UPDATE...

-----

*** I finally updated to Android Lollipop 5.0 (5.0.1)

This is what I did:

* I kept my device plugged into my computer this entire time

1) Download this STOCK ROM zip (TMOUS-M8-3.32.531.2-Stock-TWRP.zip)

2) Download this STOCK RECOVERY img (Tmo-M8-3.32.531.2-recovery.img)

3) Download this OTA zip (OTA-3.32.531.2 to 4.20.531.4)

4) Backup CURRENT ROM via TWRP (just in case)

5) Extract the files from STOCK ROM zip and place them in a folder named STOCK ROM

6) Move the STOCK ROM folder to your device under |sdcard / TWRP / BACKUPS / "random numbers & letters" / Place the folder here|, next to your CURRENT ROM backup

7) Move the OTA zip to your device under |sdcard / Download|

8) Move the STOCK RECOVERY img to whatever folder you have ADB (fastboot) setup in, on your computer

9) Reboot into TWRP, click restore, select STOCK ROM, then swipe to restore

10) After it finishes restoring, do not reboot. Just click back until you can select reboot, then select to reboot bootloader

11) Once it reboots to the bootloader and you are at the screen where it says FASTBOOT, open ADB (fastboot) command prompt and flash the STOCK RECOVERY img by typing: fastboot flash recovery "name of recovery".img

12) Once that has completed, reboot the device

13) Once the device has rebooted open ADB (fastboot) command prompt again and reboot into recovery by typing: adb reboot recovery

14) For me, it rebooted to a black screen, then turned into a black screen with a warning triangle, then I hit the volume buttons a few times as well as the power button and then it loaded up the recovery options (sounds weird, but this is how it happened for me)

15) Once the options appear, use the volume and power buttons to select apply from phone storage, then locate the OTA zip file that you moved into the Download folder, select it and hit the power button to apply it

16) Let it run and apply the update, then follow the instructions at the end to reboot the phone

17) Now you will have Android Lollipop 5.0 (5.0.1) on your device

*** When you apply the OTA zip, it will sit at "patching system files" for quite a while, so don't worry. Applying the OTA took around 15 minutes to complete for me

*** I never wiped data or cache or anything like that during this entire process. All my apps, settings, etc... remained how I had them before. I didn't have to set anything up after the final reboot. Everything was just like I had had it on my CURRENT ROM

*** I never uninstalled XPOSED Modules or XPOSED Framework, or unrooted the device. I simply did all the steps I just listed. Nothing else.

*** Of course after completion of this update process you will lose root, and would have to re-root and re-install XPOSED (which is possible now that XPOSED is compatible with Lollipop)