Can Reverting back to Miui From RR disable encryption ? - Xiaomi Redmi Note 3 Questions & Answers

Hi,
I know that 7.1.1 ROM comes with encryption enabled by default but can changing rom or reverting back to stock ROM
will disable or remove encryption ?
I wanna know if there is way to disable default encryption on RR rom

To remove encryption, format data and flash one of the following
SuperSU, Magisk, Custom Kernel or FED Patcher
Before booting the rom.
All of above can disable force encryption.

corkiejp said:
To remove encryption, format data and flash one of the following
SuperSU, Magisk, Custom Kernel or FED Patcher
Before booting the rom.
All of above can disable force encryption.
Click to expand...
Click to collapse
By format data do u mean wiping data/media too ? Or just wipe data from twrp

@bHi71 said:
By format data do u mean wiping data/media too ? Or just wipe data from twrp
Click to expand...
Click to collapse
I said to Format Data, wiping data will still leave it encrypted.

corkiejp said:
I said to Format Data, wiping data will still leave it encrypted.
Click to expand...
Click to collapse
Tnx for the help

Reminder: - If you update your rom, flash your chosen method as well at the same time or the device will re-encrypt on boot!

corkiejp said:
Reminder: - If you update your rom, flash your chosen method as well at the same time or the device will re-encrypt on boot!
Click to expand...
Click to collapse
Tnx I'll keep that in mind while updating

@bHi71 said:
Hi,
I know that 7.1.1 ROM comes with encryption enabled by default but can changing rom or reverting back to stock ROM
will disable or remove encryption ?
I wanna know if there is way to disable default encryption on RR rom
Click to expand...
Click to collapse
I m also thinking the same
Help me too man.
I m on a custom rom Android 7.1.2
If I wanna flash miui 9 is there anything that I should keep in mind
I was just thinking to wipe my data nd install rom
Pls correct me if I am NOOB . Nd save my phone from brick ?

Related

First boot ask password

Hello guys, i have a problem, i tried to install RR 5.7.4 via TWRP ZCX, but the first boot asks me for a password
PS: I tried flashing RR while i was in MIUI 8 global stable
Factory reset in TWRP.
using TWRP filemanager go to /data/system
Delete all .key files and also delete locksettings.db file.
Reboot enjoy
Guys, my TWRP ZCX crashed, it is stuck on its logo
theoneofgod said:
Factory reset in TWRP.
Click to expand...
Click to collapse
HI, I am also facing same issue. For every boot I am being asked to draw the pattern. Factory reset in TWRP will not effect my current rom and data stuff ????
[email protected] said:
HI, I am also facing same issue. For every boot I am being asked to draw the pattern. Factory reset in TWRP will not effect my current rom and data stuff ????
Click to expand...
Click to collapse
Yes it will.
Do what's said here https://forum.xda-developers.com/showpost.php?p=70354200&postcount=3
theoneofgod said:
Yes it will.
Do what's said here https://forum.xda-developers.com/showpost.php?p=70354200&postcount=3
Click to expand...
Click to collapse
Thanks for the info
Can you explain what is this feature? because I didn't get this when i am in miui 8. But as soon as I flashed ZCX TWRP and installed RR I started getting this. Thanks in Advance
[email protected] said:
Thanks for the info
Can you explain what is this feature? because I didn't get this when i am in miui 8. But as soon as I flashed ZCX TWRP and installed RR I started getting this. Thanks in Advance
Click to expand...
Click to collapse
What he suggested will delete the lockscreen password/passcode etc so you can boot the phone without any prompts. You do this within TWRP.
theoneofgod said:
What he suggested will delete the lockscreen password/passcode etc so you can boot the phone without any prompts. You do this within TWRP.
Click to expand...
Click to collapse
Many thanks guys..You are quite supportive :angel:
[email protected] said:
Thanks for the info
Can you explain what is this feature? because I didn't get this when i am in miui 8. But as soon as I flashed ZCX TWRP and installed RR I started getting this. Thanks in Advance
Click to expand...
Click to collapse
this is because force encryption of internal storage. do a factory reset in twrp after flashing lazy flasher. and if its stuck on twrp boot logo thn u have to flash latest fastboot dev rom through miflash. thn unlock bootloader thn flash twrp thn flash lazy flasher thn factry reset. .
hope it helps
smustafasms said:
this is because force encryption of internal storage. do a factory reset in twrp after flashing lazy flasher. and if its stuck on twrp boot logo thn u have to flash latest fastboot dev rom through miflash. thn unlock bootloader thn flash twrp thn flash lazy flasher thn factry reset. .
hope it helps
Click to expand...
Click to collapse
oh in that case, should I have to factory reset everytime I flash a rom through my TWRP? I use ZCX TWRP, so Lazy flasher is not required after rom flashing right?
you just need it once . to decrypt your storage
[email protected] said:
oh in that case, should I have to factory reset everytime I flash a rom through my TWRP? I use ZCX TWRP, so Lazy flasher is not required after rom flashing right?
Click to expand...
Click to collapse
In the information about the ZCX TWRP I found below:
ZCX TWRP : http://forum.xda-developers.com/redm...persu-t3462448
- Based on official TWRP 3.0.2-0
- Patches boot.img automatically (Removes dm-verity flag)
- Disables forced encryption
Should I have to tweak anything in TWRP settings to remove this dm-verify flag everytime?
[email protected] said:
In the information about the ZCX TWRP I found below:
ZCX TWRP : http://forum.xda-developers.com/redm...persu-t3462448
- Based on official TWRP 3.0.2-0
- Patches boot.img automatically (Removes dm-verity flag)
- Disables forced encryption
Should I have to tweak anything in TWRP settings to remove this dm-verify flag everytime?
Click to expand...
Click to collapse
no ,but you should flash lazy flasher once . to decrypt ur internal storage. dm-verity flag does nothing to decrypt storage
smustafasms said:
no ,but you should flash lazy flasher once . to decrypt ur internal storage. dm-verity flag does nothing to decrypt storage
Click to expand...
Click to collapse
Thank you very much :angel:
gulshanstrider said:
using TWRP filemanager go to /data/system
Delete all .key files and also delete locksettings.db file.
Reboot enjoy
Click to expand...
Click to collapse
I tried it. Earlier i did not have any issue even if i install custom rom on my Redmi note 3. But today i thought of trying Pure Nexus *Substratum* rom. And on the first boot it asked me to enter password. though i have never kept password for my mobile, i tried all the passwords that i remember, which didnt solve my issue. then saw ur reply and tried it, and still it didnt work for me. Any other way?:crying:
AnilLonely said:
I tried it. Earlier i did not have any issue even if i install custom rom on my Redmi note 3. But today i thought of trying Pure Nexus *Substratum* rom. And on the first boot it asked me to enter password. though i have never kept password for my mobile, i tried all the passwords that i remember, which didnt solve my issue. then saw ur reply and tried it, and still it didnt work for me. Any other way?:crying:
Click to expand...
Click to collapse
Are you coming from MIUI? If so then MIUI encrypts the data partition, hence the new ROM asking for a password.
Before you install the ROM, you must "format data" on wipe in TWRP, this is different from wipe data.
Note that this will delete all your data obviously.
kimxk said:
Are you coming from MIUI? If so then MIUI encrypts the data partition, hence the new ROM asking for a password.
Before you install the ROM, you must "format data" on wipe in TWRP, this is different from wipe data.
Note that this will delete all your data obviously.
Click to expand...
Click to collapse
Yes i am coming from MIUI. I had done that But no use. Tried what ever that has been discussed in the following thread as well, but that also did not work for me.
http://en.miui.com/thread-324522-1-1.html
Posted a thread on MIUI forum as well. Waiting for some sort of help. Earlier i was able to install Custom Rom's without any issue, (though i am coming from MIUI), but now what ever may be the rom that i am trying to flash, the first boot is asking me for password. Unable to understand what is the issue.
AnilLonely said:
Yes i am coming from MIUI. I had done that But no use. Tried what ever that has been discussed in the following thread as well, but that also did not work for me.
http://en.miui.com/thread-324522-1-1.html
Posted a thread on MIUI forum as well. Waiting for some sort of help. Earlier i was able to install Custom Rom's without any issue, (though i am coming from MIUI), but now what ever may be the rom that i am trying to flash, the first boot is asking me for password. Unable to understand what is the issue.
Click to expand...
Click to collapse
Are you sure that you used "format data"?
Wipe data doesn't remove the encryption.
See this page for an image:
http://xiaomitips.com/media/2016/07/Format-Data-TWRP.png
kimxk said:
Are you sure that you used "format data"?
Wipe data doesn't remove the encryption.
See this page for an image:
http://xiaomitips.com/media/2016/07/Format-Data-TWRP.png
Click to expand...
Click to collapse
Perfect. Worked bro. Thanks a lot for the help. I was wiping cache,and internal storage. Now only came to know this. :highfive:

After Bootloader unlock no Phone function, no FP, no Sound

Hello, guys,
i unlocked my Bootloader properly, i flashed a ROM, i flashed all ROMs but the phone function is gone, no Audio Sound, no FP working!!! I dont know what to do, could someone teach me how to get my phone working again?
Did you flash xiaomi.eu pie rom before flashing an android pie rom?
Did you follow the installation instructions in the rom post that you tried to install?
you can always go back to miui stock downloading a fastboot rom image and using miflash
Flash stock miui 10 with mi flash and after this install miui 10 based on android p.
alexlowas said:
Hello, guys,
i unlocked my Bootloader properly, i flashed a ROM, i flashed all ROMs but the phone function is gone, no Audio Sound, no FP working!!! I dont know what to do, could someone teach me how to get my phone working again?
Click to expand...
Click to collapse
I have the same problem only the custom miui roms work properly
Did you fix it?
venezolano69 said:
I have the same problem only the custom miui roms work properly
Did you fix it?
Click to expand...
Click to collapse
Try flashing the firmware over your rom https://sourceforge.net/projects/revolutionos-miui/files/9.3.7/Mi 8 Lite/ then do wipes (cache and dalvik)
SubwayChamp said:
Try flashing the firmware over your rom https://sourceforge.net/projects/revolutionos-miui/files/9.3.7/Mi 8 Lite/ then do wipes (cache and dalvik)
Click to expand...
Click to collapse
Flash it before the rom and then reboot?
venezolano69 said:
Flash it before the rom and then reboot?
Click to expand...
Click to collapse
Yes, it could be before or after. This issue would be solved by restoring vendor partition but most of user don't made a backup before flash custom roms
SubwayChamp said:
Yes, it could be before or after. This issue would be solved by restoring vendor partition but most of user don't made a backup before flash custom roms
Click to expand...
Click to collapse
I can try with the backup of vesnor partition
venezolano69 said:
I can try with the backup of vesnor partition
Click to expand...
Click to collapse
Try it before if you have it
SubwayChamp said:
Try it before if you have it
Click to expand...
Click to collapse
I have the vendor partition of miu.eu pie
venezolano69 said:
I have the vendor partition of miu.eu pie
Click to expand...
Click to collapse
Try the next if one of this doesn´t result:
- Restore the vendor partition, do wipes, reboot
- Flash the firmware linked over your rom, do wipes, reboot
- Do a clean flash again, wipe cache, dalvik, system and data (if it´s important backup it before), flash the custom rom you are using, GApps, Magisk, reboot.
Report results to help others.
SubwayChamp said:
Try the next if one of this doesn´t result:
- Restore the vendor partition, do wipes, reboot
- Flash the firmware linked over your rom, do wipes, reboot
- Do a clean flash again, wipe cache, dalvik, system and data (if it´s important backup it before), flash the custom rom you are using, GApps, Magisk, reboot.
Report results to help others.
Click to expand...
Click to collapse
All of those step?
This guy is a savior.
Thank you, @SubwayChamp
Flashing fw_platina_miui_MI8LiteGlobal_9.2.15_35fd209ab5_9.0.zip solved my problems with sound and mic!
venezolano69 said:
All of those step?
Click to expand...
Click to collapse
No, just one and it doesn´t work then try the next. An user are reporting that by flashing firmware was solved so try first this step. @Snowdine Glad it solved.
SubwayChamp said:
No, just one and it doesn´t work then try the next. An user are reporting that by flashing firmware was solved so try first this step. @Snowdine Glad it solved.
Click to expand...
Click to collapse
It works with flashing the firmware
Thanx you save me

A little help here !

I am currently on Pixel Experience (Build no. : 190205) with Franco kernel. I have received the OTA update but unable to flash it from TWRP because of encryption enabled (ik I can use OTG tho) but I want to know how to disable that encryption WITHOUT flashing the data coz I don't want to rn, so is there any way to flash encryption disabker via magisk? I've searched around a bit for that but no help to force disable encryption without flashing the data first
And one more thing, after disabling the encryotion (without formating the data) can I dirty flash the OTA zip or again need to flash
A little help would really be appreciated :fingers-crossed:
dhruvsharma.dav said:
I am currently on Pixel Experience (Build no. : 190205) with Franco kernel. I have received the OTA update but unable to flash it from TWRP because of encryption enabled (ik I can use OTG tho) but I want to know how to disable that encryption WITHOUT flashing the data coz I don't want to rn, so is there any way to flash encryption disabker via magisk? I've searched around a bit for that but no help to force disable encryption without flashing the data first
And one more thing, after disabling the encryotion (without formating the data) can I dirty flash the OTA zip or again need to flash
Click to expand...
Click to collapse
I had this same question previously and did not have an answer, in my case I flash a new rom version with dirty flash, and data encryption was enabled, my new flash rom was very broken, I flashed the old version on my system and I lost access to /data, I was crazy at the moment trying to remember what I lost, but it was too late for that.
In your case you still have access to /data?
If so, backup for your notebook everything in the internal memory of your device.
If not, the only method of getting back to your device, is unfortunately, to do a Clean Flash.
PS: perhaps, there may be a good soul with a solution to it, but I did not have an answer that worked.
PS2: Always use DisableForceEncryptation after flashing some ROM, I've learned to lose things.
dhruvsharma.dav said:
I am currently on Pixel Experience (Build no. : 190205) with Franco kernel. I have received the OTA update but unable to flash it from TWRP because of encryption enabled (ik I can use OTG tho) but I want to know how to disable that encryption WITHOUT flashing the data coz I don't want to rn, so is there any way to flash encryption disabker via magisk? I've searched around a bit for that but no help to force disable encryption without flashing the data first
And one more thing, after disabling the encryotion (without formating the data) can I dirty flash the OTA zip or again need to flash
Click to expand...
Click to collapse
Backup first when you have the chance.
It seems that the official TWRP now can handle encryption/decryption. Check that and flash it, then boot back into TWRP and flash the OTA.
tnsmani said:
Backup first when you have the chance.
It seems that the official TWRP now can handle encryption/decryption. Check that and flash it, then boot back into TWRP and flash the OTA.
Click to expand...
Click to collapse
pkrename said:
I had this same question previously and did not have an answer, in my case I flash a new rom version with dirty flash, and data encryption was enabled, my new flash rom was very broken, I flashed the old version on my system and I lost access to /data, I was crazy at the moment trying to remember what I lost, but it was too late for that.
In your case you still have access to /data?
If so, backup for your notebook everything in the internal memory of your device.
If not, the only method of getting back to your device, is unfortunately, to do a Clean Flash.
PS: perhaps, there may be a good soul with a solution to it, but I did not have an answer that worked.
PS2: Always use DisableForceEncryptation after flashing some ROM, I've learned to lose things.
Click to expand...
Click to collapse
Well thanks for replying. I got a possible fix this btw ....
https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-2-3-decryption-t3853004
In this thread, the TWRP mentioned says " THIS TWRP DOES NOT DISABLE FORCE ENCRYPTION. IT WILL DECRYPT THE ENCRYPTED DATA WITHOUT THE NEED OF FORMATING IT " so I gave it a shot and it worked. Now I have encryption disabled from TWRP and working absolutely fine with internal storage mounted and needed not to format anything.
PS: just flashed that recovery via adba and viola oh and I always make a backup before tinkering with rom thanks tho

What to do when i am on a custom ROM and want to install a different ROM ?

So i am now on pixel experience Rom. and in the future i would like to try other roms what to do and how to install them using TWRP ?
like should i wipe data like when i installed my first rom only ? or data and system ?
and should i install vendor ROM and Disaple force encryption again after i wipe ?
or just delete data and install the new rom ?
i will really appreciate the help !
Thanks in advance !
TheVow said:
So i am now on pixel experience Rom. and in the future i would like to try other roms what to do and how to install them using TWRP ?
like should i wipe data like when i installed my first rom only ? or data and system ?
and should i install vendor ROM and Disaple force encryption again after i wipe ?
or just delete data and install the new rom ?
i will really appreciate the help !
Thanks in advance !
Click to expand...
Click to collapse
Remove your password pin pattern then wipe data system cache if you don't clean flash then you will get alot of force crashes. You can dirty flash on top of the same rom though if it's just a incremental update.
1. Remove pattern and pin. If you don't do this step then you will have to factory reset your phone with stock MIUI.
2. Wipe all except internal storage and external storage.
3. Flash vendor and rom.
4. Flash disableforceencryption with magisk 18.0.
5. Flash your twrp again so it isn't replaced by stock.
pingufanpoy said:
Remove your password pin pattern then wipe data system cache if you don't clean flash then you will get alot of force crashes. You can dirty flash on top of the same rom though if it's just a incremental update.
1. Remove pattern and pin. If you don't do this step then you will have to factory reset your phone with stock MIUI.
2. Wipe all except internal storage and external storage.
3. Flash vendor and rom.
4. Flash disableforceencryption with magisk 18.0.
5. Flash your twrp again so it isn't replaced by stock.
Click to expand...
Click to collapse
Thank you! I understood every step except for 5.
I am installing roms using twrp how is it gonna be replaced?
I thought replacing happens when i install miui.
Am i missing something?
TheVow said:
Thank you! I understood every step except for 5.
I am installing roms using twrp how is it gonna be replaced?
I thought replacing happens when i install miui.
Am i missing something?
Click to expand...
Click to collapse
hey bro
search for MULTIROM thread
you can flash multiple roms and your primary one won't be touched or affected as long as you follow the instructions.
for me ,i always use one of miui roms as a primary ( some bugs occur if miui used as secondary )
& AOSip/ pixel experience/ ..... as secondary roms.. add as much as you want.
learn the procedure carefully then you are ready to go.
ahmd gom3aa said:
hey bro
search for MULTIROM thread
you can flash multiple roms and your primary one won't be touched or affected as long as you follow the instructions.
for me ,i always use one of miui roms as a primary ( some bugs occur if miui used as secondary )
& AOSip/ pixel experience/ ..... as secondary roms.. add as much as you want.
learn the procedure carefully then you are ready to go.
Click to expand...
Click to collapse
Mbrt74 l 7war el multi roms dh :"D
TheVow said:
Mbrt74 l 7war el multi roms dh :"D
Click to expand...
Click to collapse
???? welcome ya kbeer
elfekra en 3ndk primary untouched in case u dont like 2ry.
Yes, Multirom is the way to go
https://forum.xda-developers.com/poco-f1/development/multirommiui-custom-roms-gsi-t3868734
TheVow said:
Thank you! I understood every step except for 5.
I am installing roms using twrp how is it gonna be replaced?
I thought replacing happens when i install miui.
Am i missing something?
Click to expand...
Click to collapse
No, you are right. Only OEM ROMs which have recovery built in will replace TWRP. None of the custom ROMs to my knowledge have recovery built in. So no need to flash TWRP again unless you are flashing OEM ROMs.
Even when flashing OEM ROMs, if you flash Magisk immediately after the ROM before booting, TWRP will remain.

Unable to decrypt FBE device

Plz anybody help this out...
I unlocked bootloader, then immediately flashed Pitchblack recovery, then booted into recovery.
Initially console shows decrypted FBE device with default password. But Encryption status : Encryped
So I went into wipe & Formatted Data inorder to get rid of encryption. Then I rebooted recovery & it shows Unable to decrypt FBE device.
[UPDATE] (24/12/20) : The console output Unable to decrypt FBE device was nothing but to tell us that incompatible operating system flashed.
I flashed global version roms which are the main cause for bootloops. I flashed stock rom, then immediately worked out of the box.
1. Format data after going into twrp *It will wipe you device*
2. If you don't want to install a custom rom just mod MIUI, remove your lock screen password or flash orange fox and if it asks for password just put your lock screen password.
3. Else if you want to install a custom rom
Open recovery
Wipe data cache davilk
Flash rom
Format data
Reboot.
LoadOP2 said:
1. Format data after going into twrp *It will wipe you device*
2. If you don't want to install a custom rom just mod MIUI, remove your lock screen password or flash orange fox and if it asks for password just put your lock screen password.
3. Else if you want to install a custom rom
Open recovery
Wipe data cache davilk
Flash rom
Format data
Reboot.
Click to expand...
Click to collapse
Thnx for reply. I've tried Orange fox too. When I format data, internal storage doesn't decrypt. Also when I flash custom roms, they flash, but I'm gonna stuck in bootloop.
My main problem is that I can't decrypt storage. Phone boots only when I'm on MIUI stock. Am I missing something ?
That is odd but still flash fastboot rom and then flash twrp , flash a rom of your choice then format data . Maybe it will help . Btw which rom are you installing.
LoadOP2 said:
That is odd but still flash fastboot rom and then flash twrp , flash a rom of your choice then format data . Maybe it will help . Btw which rom are you installing.
Click to expand...
Click to collapse
Thnx for the reply. I'm trying to have lineage 17.1 & resurrection remix official build. I think rom's not the issue here. I need to know one thing.
To exactly say my issue, I can do flashing. But when I do & then reboot, Internal storage doesn't show the size & mtp doesn't work too, with bootloop issues along together.
There is no official LineageOS for the device.
kalehrl said:
There is no official LineageOS for the device.
Click to expand...
Click to collapse
Oh, I've mistaken, I was about to say resurrection remix official build & lineage unofficial one. Btw what do you think my device is going up to ? How can I decrypt & use internal storage successfully? I can't use internal storage when I flash a rom. Bcaz internal storage renders useless because of encryption.
Which recovery are you using?
Try flashing magisk 20 or 21.
Flash twrp by marounfurio( I am sorry if I slaughtered the name) which is available on xda.
And format data.
It's midnight here and I am going to sleep I will help to tommorow morning.
LoadOP2 said:
Which recovery are you using?
Try flashing magisk 20 or 21.
Click to expand...
Click to collapse
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
I think encrypted data partition is the whole culprit here. How can I decrypt it ?
MPK99 said:
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
Click to expand...
Click to collapse
And what about flashing magisk in twrp.
MPK99 said:
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
I think encrypted data partition is the whole culprit here. How can I decrypt it ?
Click to expand...
Click to collapse
Formatting data normally decrypts it . I don't know why something like this is happening here.
Follow my guide again maybe? Give it a shot step by step.
LoadOP2 said:
Formatting data normally decrypts it . I don't know why something like this is happening here.
Follow my guide again maybe? Give it a shot step by step.
Click to expand...
Click to collapse
Yah, I'm feeling weird too. Normally there are 3 ways to remove decryption...I tried all those.
1. Formatting Data by typing "yes"
2. Formatting data partition from f2fs to ext4
3. Installing Decrypt script v2 zip immediately after flashing stock rom.
I tried everything I could. I know all sorts of common flashing things. I caz I always used to try so many roms on my previous redmi's, but this one is special case.
I'd suggest you use LineageOS recovery. That's how I removed decryption.
kalehrl said:
I'd suggest you use LineageOS recovery. That's how I removed decryption.
Click to expand...
Click to collapse
Sure. Encryption is the whole culprit for me to say exactly. I'm trying to decrypt & flash builds. I'll notify if it works. Nice to get help from you guys.
Try this.
How to decrypt rom/storage so you can easily switch roms without format
First I would thankx to @sakhatlonda for koutiliy.zip
Steps to download file
1. Download koutility.zip from below.
2. Documentation related to koutility
Read from below link (recommended)
Just a utility zip which can be flashed on every rom flash, to do some pre-defined tasks.
Can be used either to copy everything you place in sdcard/sudeep/system_root to respective dirs or to set config and use that to do predefined tasks
This is how it works:
Flash in recovery, every option has Note with it
Available Configs:
brbootdtbo - auto backup/restore boot & dtbo, will do backup if no backup present and will do restore if backup is there
bbootonly - always backup boot
bdtboonly - always backup dtbo
resbootdtbo - always restore boot & dtbo (brbootdtbo won't work if this is enabled)
enalways - encrypt always (edauto won't work if this is enabled)
dealways - decrypt always (enalways & edauto won't work if this is enabled)
edauto - auto change encryption state on each flash
avb - removes avb flags (if decrypted)
quota - removes quota flag (if decrypted)
keep - doesn't over-writes boot/dtbo backups
debloat - removes bloats
rebloat - restore removed bloats
patchD - same as flash but set in config
productsize - makes a product image from your currently flashed rom to sdcard/sudeep and adds 600mb to it. So you can flash gapps etc. without error. (PC needed to flash product.img)
Steps to decrypt rom/storage
1. Flash roms
2. Flash koutility.zip tested on aosp only
3. Format data (required only first time after flashing koutility)
4. Reboot to recovery
5. Flash gapps (optional)
6. Boot into system
Congratulations your storage/rom is decrypted , you can switch roms without format
Next time when you want to switch roms
Steps
1. Wipe data,caches and dalvik caches
2. Flash rom
3. Flash koutility.zip
4. Reboot to recovery
5. Flash gapps (optional)
6. Boot into system
Notes
Remember you need to config koutility.zip in recovery
How to config koutility for decryption
Volume down (set config) > yes
After that "No" till 5th option
Then "yes" for 6th option
Rest "No" till 15th option
Last "yes" to flash
@LoadOP2 Thanx for providing KoUtil & its read me.
But I think we shouldn't reboot to recovery immediately after formatting the data. Because the stock rom will start it's initial encryption process by then & I won't get decrypted storage. Isn't it ?
I think this is the case that's happening to me. I always reboot recovery after formatting data, my storage will encrypt again because of stock rom's existence.
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
LoadOP2 said:
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
Click to expand...
Click to collapse
Yes, you're correct, we should do that. But can you read my 1st post in this thread. This is about that specific problem. I'm rebooting recovery after formatting data, then recovery shows Unable to decrypt FBE device
Send your recovery logs after formatting data.
LoadOP2 said:
Send your recovery logs after formatting data.
Click to expand...
Click to collapse
That would help. I'll attach screenshots too. Currently I'm on stock & being busy. I'll do this by today night & post logs & screenshots.

Categories

Resources