[FIX][8.1][Treble]Decryption Unsuccessful and TWRP Internal Storage 0MB

Search This thread

AkmalWarrior

Member
Dec 7, 2015
28
8
Kuala Lumpur
As the tittle says, this is my current workaround for issues that happened after most people update their AOSP based ROMs after 3rd July 2018.

Decryption Unsuccessful

Q: Why does this happens ?
A: There's some weird issues with the latest AOSP based ROM that makes encrypted ext4 based data partition unable to be decrypted in both system and older version of TWRP if you're encrypted before (intentionally or unintentionally). This however doesn't apply to F2FS and unencrypted ext4 data partition.

Q: How do I solve this ?
A: There's 2 ways you can do to solve this issue.

The best way and the most recommended way is to repartition your data into F2FS. However it does require you to do a backup beforehand since this will wipe everything in your internal storage.

1. Backup your internal storage from TWRP (either to a SD card or PC via ABD)
2. Format it by going into TWRP and select Format and choose "wipe data"
3. Type "yes" and let the process end.
4. Flash your ROM and GApps.
5. Finish the setup without setting any screen lock so that it doesn't encrypt your data partition.

-Or-

The other way does is to install a custom kernel is made after 20 July 2018
List of kernel that can boot successfully without the need to wipe /data :
-Xenial b25x or newer
-Revolt EAS-R13
(Got kernel that works and doesn't show up here? TELL ME, I'll add it to my list for everyone's reference)

Link for the working TWRP that can detect Internal Storage :
Jairus' modded TWRP
https://androidfilehost.com/?fid=5862345805528049168
Or you can look up Orange Fox recovery
(link will be added soon)
 
Last edited:

omarilzz

Senior Member
May 10, 2012
567
609
In your house!!
Good Stuff Also This Happened to me while i was using the Android P DP3 i tried twrp and redwolf and was the same i flashed the Orange Fox and it worked
 
  • Like
Reactions: Alb_trp

antony felix

Senior Member
Jul 28, 2014
106
122
kerala
First I tried orange fox beta and it showed my internal storage
Then I flashed the RR endless
But the encryption was still there
Then I tried the twrp from this thread and flashed rom with latest xenial
And it worked no problem
Thank you
 
  • Like
Reactions: AkmalWarrior

DarksTor

Member
Feb 6, 2017
45
9
How for steps come from nougat Rom up to Oreo, should i flash xenial kernel directly after the ROM flashed? i want flash Aicp Oreo currently i'm on Los14.1
 

antony felix

Senior Member
Jul 28, 2014
106
122
kerala
How for steps come from nougat Rom up to Oreo, should i flash xenial kernel directly after the ROM flashed? i want flash Aicp Oreo currently i'm on Los14.1
Sine you are using nougat i recommend to format data (wipes internal storage) so take a backup if you want
And I have also seen users reporting bugs about aicp oreo on telegram so try some other ROMs like resurrection remix,screwd,lineage os extended,aex ........

All oreo Roms are now treble
So use treble twrp
And treble magisk
 

DarksTor

Member
Feb 6, 2017
45
9
Sine you are using nougat i recommend to format data (wipes internal storage) so take a backup if you want
And I have also seen users reporting bugs about aicp oreo on telegram so try some other ROMs like resurrection remix,screwd,lineage os extended,aex ........

All oreo Roms are now treble
So use treble twrp
And treble magisk
Thanks,So i must format internal too,. It's ok but how if i want to comeback use nougat..? I hear who's downgrade after using oreo will get "encryption was interrupted" on any nougat los/aosp base rom,should be format internal for working back the devices..
I think by this thread shared we get solution for who's want to downgrade from oreo without facing encryption issue enytime for oreo back to nougat or vice
 

ngydna

Senior Member
Nov 7, 2013
116
4
What if i flash Jairus' modded TWRP from fastboot? Does it solve the encryption problem without losing all the data? Also does it work on non-treble roms?
 

DarksTor

Member
Feb 6, 2017
45
9
Flash the rom and test it out if you can boot it. I think most rom now have native support for ext4 based data partition.
If you can't boot however, try one of the kernel listed on the OP.
Finally i can confirm for fixed "encryption was interrupted" by changing data partition into F2FS, yes i think it's only way to get free from that, i'v been test it back to back from oreo down to nougat or vice, no worry anymore

Below screenshot for oreo left side and nougat in right
 

Attachments

  • Screenshot_DiskInfo_PRO_20180802-104620.png
    Screenshot_DiskInfo_PRO_20180802-104620.png
    164 KB · Views: 562
  • Screenshot_20180802-110145.png
    Screenshot_20180802-110145.png
    103.9 KB · Views: 555
Last edited:

AkmalWarrior

Member
Dec 7, 2015
28
8
Kuala Lumpur
What if i flash Jairus' modded TWRP from fastboot? Does it solve the encryption problem without losing all the data? Also does it work on non-treble roms?
Read the OP, the recovery only help you boot into recovery and format your data partition or flash a custom kernel to allow you to boot into system as this issue does affect some older version of TWRP recovery. The recovery alone can't help you boot into system.
 

AlreadyFree

Member
Feb 1, 2017
46
13
I took out my sdcard and did format data on the internal storage and now i can't mount my sdcard. Didn't think about the fact that removing the encryption on the internal storage would make it unable to recognize the encryption on the sdcard afterwards. Is there any way to fix this? Or did I just screw myself?

---------- Post added at 01:53 PM ---------- Previous post was at 01:00 PM ----------

When I reinstalled the rom and tried to boot it still asks me for my password which still works even though I can't boot because it says that the data is corrupted. But the encryption key should still be stored somewhere apparently. There must be a way to use it to decrypt the sdcard.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    As the tittle says, this is my current workaround for issues that happened after most people update their AOSP based ROMs after 3rd July 2018.

    Decryption Unsuccessful

    Q: Why does this happens ?
    A: There's some weird issues with the latest AOSP based ROM that makes encrypted ext4 based data partition unable to be decrypted in both system and older version of TWRP if you're encrypted before (intentionally or unintentionally). This however doesn't apply to F2FS and unencrypted ext4 data partition.

    Q: How do I solve this ?
    A: There's 2 ways you can do to solve this issue.

    The best way and the most recommended way is to repartition your data into F2FS. However it does require you to do a backup beforehand since this will wipe everything in your internal storage.

    1. Backup your internal storage from TWRP (either to a SD card or PC via ABD)
    2. Format it by going into TWRP and select Format and choose "wipe data"
    3. Type "yes" and let the process end.
    4. Flash your ROM and GApps.
    5. Finish the setup without setting any screen lock so that it doesn't encrypt your data partition.

    -Or-

    The other way does is to install a custom kernel is made after 20 July 2018
    List of kernel that can boot successfully without the need to wipe /data :
    -Xenial b25x or newer
    -Revolt EAS-R13
    (Got kernel that works and doesn't show up here? TELL ME, I'll add it to my list for everyone's reference)

    Link for the working TWRP that can detect Internal Storage :
    Jairus' modded TWRP
    https://androidfilehost.com/?fid=5862345805528049168
    Or you can look up Orange Fox recovery
    (link will be added soon)
    1
    Good Stuff Also This Happened to me while i was using the Android P DP3 i tried twrp and redwolf and was the same i flashed the Orange Fox and it worked
    1
    Does this twrp can flash both treble and non treble ROM?
    Yes, it does
    1
    First I tried orange fox beta and it showed my internal storage
    Then I flashed the RR endless
    But the encryption was still there
    Then I tried the twrp from this thread and flashed rom with latest xenial
    And it worked no problem
    Thank you