[One (M7) Q&A, Help & Troubleshooting] spaboleo:
[Q] From TWRP back to stock Recovery & locked Bootloader, keeping root & Custom ROM?

Hey everyone,

around new years eve I found out that the Android Device Manger's remote wipe is not secure enough for my needs, as it doesn't wipe the data (pictures, app data etc.) on the virtual "sdcard" of the HTC One's storage. So a potential thief could easily access my Custom Recovery and simply by flashing a custom ROM gain access to the data.

I described the problem in more detail over here: http://xdaforums.com/showthread.php?t=2598154

While unlocking a friend's phone I noticed that during the "fastboot oem unlock" procedure all data is wiped from the device. Something I totally forgot about.

This behavior is exactly what I want if my device gets stolen.

I can accept the hassle to deal with a temporary custom recovery or ways to perform an online nandroid, without the comfort of a Custom Recovery and having to lock the Bootloader again after every Custom ROM upgrade. (Yes, it will be a pain in the b*ttocks, but I want my data to be inaccessible.)

What do I have:

HTC One (international GSM version)

HTCdev.com unlocked

SuperCID

TWRP as Custom Recovery

Rooted CustomRom (SinLess in my case) installed

What I want:

Bootloader to be locked (so that you can't simply flash a Custom Recovery)

Stock Recovery (so that you can't simply flash a Custom ROM)

being able to make a nandroid backup, before unlocking again

keeping root and the Custom ROM

keeping SuperCID (req. for SinLess)

I don't want to make a mistake, so I am asking for some guidance. :angel:

I am assuming correctly that just flashing the Stock Recovery image is enough to get rid of TWRP?

I know that this temporary loading of a Recovery was a thing some time ago (HTC Desire), but I haven't looked into it for years now.

Is this still possible and how do I do it? Does this allow me to perform a nandroid backup with a locked bootloader?

Otherweise: If my bootloader is locked and my recovery reverted to stock, is there a way to nandroid backup my HTC One? I know about the App "Online Nandroid" (Play Store Link) that allows to perform a nandroid backup on a rooted phone without booting to recovery. Does it work with the HTC One?

What happens if I "relock" this htcdev.com unlocked phone? Will I simply be able to use "fastboot oem unlock" (followed by a full wipe) to unlock the bootloader again? Or are there more strings attached, like requiring htcdev.com again or any other problems?

Is the CID setting affected by any of this?

Am I missing something else?

Will the following routine be my way to go if I want to flash something (ROM, Kernel etc.)?

Backup Apps: Titanium Backup

Perform full nandroid Backup (App: Online Nandroid?)

Pull nandroid Backup, Titanium Backup Files and all Data from /sdcard/

Unlock phone --> result: full wipe of device (no big deal, as everything is backed up)

Flash Custom Recovery

Push Installation files for (rooted) Custom ROM, Kernel etc.

Push Titanium Backup Files

Install (rooted) Custom ROM, Kernel etc.

Boot Phone, set it up as usual and restore Titanium Backup

Push Data back to /sdcard/

Flash Stock Recovery

Relock Bootloader

Is this correct?

Or did I miss something?

Thanks in advance :)