FORUMS
Remove All Ads from XDA

[Fixed] Encryption isn't working anymore

14 posts
Thanks Meter: 8
 
By parkbank, Junior Member on 18th August 2018, 04:38 PM
Post Reply Email Thread
I finally managed to find a working fix for this issue after having found this post. The origin of the problem is TWRP:
Quote:
Originally Posted by gordonthegopher

Formatting /data in TWRP uses up all the blocks, but encryption from Lineage needs 16kb of free space at the end of the partition to store the headers.

Fix
You have at least two solutions to fix this issue:
  1. Resize your /data partition to free up the needed space. Here and here are guides how to do it. I haven't give it a try, so I can't confirm it's working, but several other guys reported this fix working.
  2. If you're not comfortable to resize your partition, you can use an old version of TWRP. Beginning with version 3.2.0.0 TWRP seems to use up all blocks for /data. So you need a version prior to this one. I've used TWRP 3.1.0.0, but 3.1.1.0 should also work. Step by step:
    1. Download and flash TWRP 3.1.0.0.
    2. Boot into recovery and do a factory reset: Main menu -> Wipe -> Format Data (confirm with "yes"). I also wiped Cache and System (Main menu -> Wipe -> Advanced Wipe).
    3. If you're going to flash a Nougat based ROM you can stop reading and start flashing and encrypting
    4. If you're going to flash an Oreo based ROM you now need to update your TWRP version as anything prior to 3.2.0.0 doesn't support flashing Android 8.1. The official TWPR version sucks because you won't be able to decrypt your phone when booting in recovery. I've used the TWRP provided in this post.
    5. Install your preferred ROM and encrypt it.

I haven't tested it, but dirty flashing a ROM (without a factory reset) might also work. But this usually leads to some random ****ups.
Also the TWRP alternative "Orange Fox" was mentioned as a solution in this thread. I actually can't remember if I've used Orange Fox to factory reset my phone or if I've flashed it only after having performed a factory reset using TWRP. For me Orange Fox didn't work (= encryption didn't work). But you might give it a try...

Original post
Quote:

Hi guys,

I'm kind of stuck right now because I cannot encrypt my phone anymore and I don't know why. I got my phone last year and installed LOS 14.1 right away. For security reasons I also encrypted it - without any issues whatsoever. When LOS 15.1 came out, I upgraded my phone, with encryption still working. A couple of days back for some reason I decided to do a factory reset. Obviously, the device wasn't encrypted anymore after the reset. I then installed the new nightly of LOS (20180807) and tried to encrypt my phone once again. When I select "Encrypt phone", I need to enter my PIN, the phone restarts and reboots without encryption being started.

What I've done so far:

  • I've flashed two different TWRP versions: 3.2.3.0 and a customized one (https://forum.xda-developers.com/red...-15-0-t3690465).
  • I've clean installed different LOS versions (unofficial LOS 14.1 and LOS 15.1 starting from the 20180710 release)
  • I've clean installed Omnirom (current release and a release from 20180107).
  • I've even flashed MIUI 9 and reinstalled LOS thereafter because some guy in the above mentioned LOS thread wrote, that this did the trick for him.
  • I've disabled WI-FI and mobile data before trying to encrypt my phone, because I found a blog article stating that this might help.
Nothing helped. The phone just reboots and stays unencrypted.
Do you guys have any additional hints or ideas how I can manage to encrypt my phone once again? Could another TWRP version do the trick? Is TWRP even involved in any kind when it comes to encryption of the OS? Do you think another ROM could be helpful?

The Following 7 Users Say Thank You to parkbank For This Useful Post: [ View ] Gift parkbank Ad-Free
 
 
18th August 2018, 05:33 PM |#2  
Senior Member
Thanks Meter: 28
 
More
Try orangewolf recovery ....

Sent from my Redmi Note 4 using Tapatalk
The Following User Says Thank You to shakil002 For This Useful Post: [ View ] Gift shakil002 Ad-Free
18th August 2018, 05:35 PM |#3  
CanBostanci's Avatar
Member
Thanks Meter: 10
 
More
I'm also having trouble with this. Many days ago, someone told they had successfully encrypted their phone. I tried to replicate what he did, got miui.eu and flashed LOS afterwards.

After tons of restarting, reflashing, all kind of stuff, the encryption still doesn't work. Pfff.
18th August 2018, 06:18 PM |#4  
OP Junior Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by shakil002

Try orangewolf recovery ....

Thanks for the advice. But I'm afraid it didn't help
18th August 2018, 06:25 PM |#5  
OP Junior Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by CanBostanci

I'm also having trouble with this. Many days ago, someone told they had successfully encrypted their phone. I tried to replicate what he did, got miui.eu and flashed LOS afterwards.

After tons of restarting, reflashing, all kind of stuff, the encryption still doesn't work. Pfff.

That's the most ****ed up part. For some people it does work, for some not.
There surely must be some ridiculous small detail we're not getting. Like disabling WI-FI while Bluetooth is enabled.
19th August 2018, 10:14 AM |#6  
OP Junior Member
Thanks Meter: 8
 
More
Things I've also tried:
  • installed a new kernel: ElectraBlue (https://forum.xda-developers.com/red...ote-4-t3655651)
  • flashed an old LOS 14.1 with kernel 3.18.31 which I found here
  • used different screen lock types (PIN, password, pattern, swipe)
  • charged my battery up to 100%
  • reformatted my data partition with f2f
Of course, my device is still unencrypted...

Has anyone any idea why encryption might fail? I mean, it did work in the past with LOS 14.1. So why does it even fail with an old release of LOS 14.1? I don't do knowingly anything different to all the times I've successfully encrypted my phone in the past.
Does the factory reset still leave some files untouched?
19th August 2018, 09:23 PM |#7  
CanBostanci's Avatar
Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by parkbank

Things I've also tried:

  • installed a new kernel: ElectraBlue (https://forum.xda-developers.com/red...ote-4-t3655651)
  • flashed an old LOS 14.1 with kernel 3.18.31 which I found here
  • used different screen lock types (PIN, password, pattern, swipe)
  • charged my battery up to 100%
  • reformatted my data partition with f2f
Of course, my device is still unencrypted...

Has anyone any idea why encryption might fail? I mean, it did work in the past with LOS 14.1. So why does it even fail with an old release of LOS 14.1? I don't do knowingly anything different to all the times I've successfully encrypted my phone in the past.
Does the factory reset still leave some files untouched?


Mmm, maybe it's about the firmware? I was almost going to try lineageos 14.1...
20th August 2018, 08:48 AM |#8  
OP Junior Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by CanBostanci

Mmm, maybe it's about the firmware? I was almost going to try lineageos 14.1...

Huh... I didn't even think about the firmware. That would explain why the one user who flashed MIUI before installing LOS could actually encrypt his phone. I'll definitely give it a try.
20th August 2018, 08:53 AM |#9  
CanBostanci's Avatar
Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by parkbank

Huh... I didn't even think about the firmware. That would explain why the one user who flashed MIUI before installing LOS could actually encrypt his phone. I'll definitely give it a try.

I'm looking forward to hear the results. I'm about to become insane because of this encryption issue.
20th August 2018, 03:44 PM |#10  
OP Junior Member
Thanks Meter: 8
 
More
I've flashed both the dev and stable firmware found in this thread. No success
20th August 2018, 08:02 PM |#11  
OP Junior Member
Thanks Meter: 8
 
More
By flashing I mean factory reset, flashing the firmware and then installing LOS. I noticed, that flashing a new firmware while a ROM is still installed leads to some random ****ups.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes