[Verizon HTC One (M9)] weinberk:
Encryption Woes (Again)

--I am so confused - please read through this post, and then the edits below, especially #2 - I'm baffled how this could be. --

Now that xposed has officially been released for Noguat, I decided to upgrade my Verizon M9 to this LineageOS 14.1 (currently on the Oct 10, 2017 build). xposed with xprivacy works great. I'm thrilled to be on the latest build with latest android security patches. I'm running Santood's latest firmware 4.49.605.11

The last build of Lineage 13.x that had working device encryption for me was the build from January 15, 2017 - ancient at this point. Everything after that failed to boot once encryption was enabled. (discussion here and earlier in that thread). Tried for a couple months until [MENTION=3082717]Flyhalf205[/MENTION] moved completely onto 14.1 - as he should have.

Unfortunately, now that I've got 14.1 on the phone, I'm disappointed to see that encryption still isn't working.

I've got TWRP 3.1.1.0 installed. Wiped the device including system/data/cache. I've tried installing Lineage from recovery and from fastboot with fastboot flash zip lineage....zip No difference. I've tried with and without the supersu from Lineage addons. I tried initially after my phone was all setup with xposed and gapps. When that failed, I tried wiping everything and only installing LOS and nothing else. Still no luck.

Here's what happens:

1) I select encrypt phone (I've tried with a 5 and 6 digit pin - could there be an issue where only a 4 digit pin works somehow??)

2) The phone reboots quickly

3) the black screen with the green android guy shows up for 1-2 seconds (only)

4) I get the lineageOS boot animation for 10ish seconds

5) the phone reboots on its own, shows the HTC logo with the red internal use only warning

6) that boot htc screen stays there for 9ish seconds and then the phone restarts

7) step 6 repeats over and over and over. left it for an hour. restarts every 9 seconds.

I can eventually get into the bootloader and into recovery. I then can wipe the phone, reinstall LOS, and get the system working, but if I try to encrypt, the same thing happens every time.

Encryption is critical to me. Suggestions? I can't be the only one trying to encrypt. Has anyone else been successful???

[ VERY IMPORTANT ADDITIONAL INFO BELOW]

---

edit #1: I thought I'd give putting Lineage 13 (Jan 15) back on, encrypting, and then trying to install 14.1 over that. 13.1 encrypted fine, but LOS 14.1 won't install over that: "Can't install this package on top of incompatible data. Please try another package or run a factory reset." However, I thought it would be useful to recap what happens when encryption works. -- hit encrypt, phone reboots. Green android guy for 2-3 seconds, then "android" text graphic appears for 10ish seconds, then htc logo with red warning text, then android boot logo followed by a prompt for the pin.

edit #2: After I couldn't install 14.1 over an encrypted 13, I did a wipe of system/data/cache in TWRP. Then I installed 14.1 again, at least to get it configured while I waited for some thoughts here (or a fix??). What's incredible to me is that upon first start of 14.1 it asked for my PIN!?1?1? This was in theory a clean install, but apparently a full wipe in TWRP doesn't wipe that somehow???? I entered the pin, and 14.1 started up to the LOS setup process. I then immediately went to settings->security and the system is showing as ENCRYPTED!! Totally baffled. I was able to enter a startup pin. SO, this seems like a viable workaround, for now at least. What happens with the next LOS update? Any idea what in the world could be going on here?? edit 2b: I believe because I did a wipe instead of a FORMAT of the data partition, encryption remained.