Magisk and encryption - Xiaomi Redmi Note 5 Pro Questions & Answers

I installed RessurectionRemix and i followed the process i will describe now:
I was on 8.7.5 developer.
Flash MIUI from Mi Flash Tool just click on option Clean All, Let it flash and boot up, after it boots reboot to fastboot since you did only clean all it'll not relock BL.
Then flash twrp in fastboot. Go to wipe> advance> select everything (data, system, cache, dalvik, internal, vendor) everything. And swipe right.
Now keep in mind do not touch the format data option at all.
Now go to reboot menu and reboot to recovery after it boots back to recovery transfer the ROM and other files, flash and reboot system and you'll have 100% encrypted device.
Flash the rom
Flash gapps
After that process everything worked fine and the phone was encrypted. Almost instantly (5-10secs) after I power the phone it asked for password.
But i installed magisk through TWRP and since then it asks for password when the phone boots completely and asks the password just to unlock the lockscreen.
Inside settings it says phone is encrypted but my guess is, that it isn't encrypted.
How can i fix that? What is wrong in the process i followed? What is the correct process?
Thank you!

I guess those steps were for lineage os. For others, you've to format data to disable encryption.

i want to have encryption enabled.
I dont want encryption disabled.

What are you asking exactly?
If you go to
Settings - Security & Privacy - Encryption & Credentials - Under Encryption
Are you been offered the choice to encrypt phone? If your not then it is already encrypted.
Is it requesting a password to boot and also to unlock the device?
If you need password to boot, then you selected that as an option when setting up password.
Can be removed by changing your password to swipe/none and setup your password again.
If TWRP, can not decrypt the device, make sure your using the latest.
Why didn't you post your query in RR thread?

corkiejp said:
What are you asking exactly?
If you go to
Settings - Security & Privacy - Encryption & Credentials - Under Encryption
Are you been offered the choice to encrypt phone? If your not then it is already encrypted.
Is it requesting a password to boot and also to unlock the device?
If you need password to boot, then you selected that as an option when setting up password.
Can be removed by changing your password to swipe/none and setup your password again.
If TWRP, can not decrypt the device, make sure your using the latest.
Why didn't you post your query in RR thread?
Click to expand...
Click to collapse
I didnt post in RR because, i tried Aospextended and the same thing happened.
Thank you very much for the solution you gave!! I disabled screen lock,re-enable it with password and now it asks for passwoed on boot and on TWRP.
Thank you again!

Related

Encryption password

hi,
i have recently encrypted my moto g5 and i use TWRP recovery, which now asks me for a password. it doesnt seem to be my pin code and also when i cancel, i cant get to the data directory within TWRP.
is there a default password?
ehmdjii said:
hi,
i have recently encrypted my moto g5 and i use TWRP recovery, which now asks me for a password. it doesnt seem to be my pin code and also when i cancel, i cant get to the data directory within TWRP.
is there a default password?
Click to expand...
Click to collapse
1.Boot into recovery
2.advanced
3.file manager
4.data
5.system
6. Delete the following files:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
7.reboot to system.
TheArtistSpud said:
1.Boot into recovery
2.advanced
3.file manager
4.data
5.system
6. Delete the following files:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
7.reboot to system.
Click to expand...
Click to collapse
thanks, but the problem is that i dont even see the contents of data in recovery since TWRP asks me for a password when it starts. this password doesnt seem to be something i picked nor the pin or pattern code.
ehmdjii said:
thanks, but the problem is that i dont even see the contents of data in recovery since TWRP asks me for a password when it starts. this password doesnt seem to be something i picked nor the pin or pattern code.
Click to expand...
Click to collapse
https://www.reddit.com/r/Nexus5/comments/2mskzu/twrp_is_asking_for_a_password
This could help you.
TheArtistSpud said:
https://www.reddit.com/r/Nexus5/comments/2mskzu/twrp_is_asking_for_a_password
This could help you.
Click to expand...
Click to collapse
thanks again, tried all those tips with various combinations of my pin, but none worked.
it really seems, that the official motog5 rom uses some modified version as the password for disk encryption.
ehmdjii said:
hi,
i have recently encrypted my moto g5 and i use TWRP recovery, which now asks me for a password. it doesnt seem to be my pin code and also when i cancel, i cant get to the data directory within TWRP.
is there a default password?
Click to expand...
Click to collapse
TWRP decryption for G5 is broken, and it's a pretty known issue. If you are rooted you can use a workaround:
1) Completely disable the lockscreen from settings.
2) Use flashfire (it's in the play store) to create a data backup on an memory stick connected through OTG. Don't use internal memory, because you will not see the backup in TWRP. The new backup in the memory stick will be decrypted.
3) Boot into TWRP, format data partition and restore the backup flashing the auto generated zip located in the Flashfire folder from the memory stick.
After that your restored data will be temporally
decrypted.
4) Do whatever you want to do in TWRP before reboot.
5) Disconnect your OTG and your external memory stick before to reboot onto system. Your device will not boot correctly if you don't do that.
After rebooting the data will be encrypted again automatically.
WARNING: Remember If you boot onto system it will encrypt data again automatically it can't be avoided. The first boot-up after this procedure will take some time because of the re-encryption process. Be patient and don't freak out, the device will stay 5-10 mins on the boot logo without a progress bar. Don't interrupt it, or your data will get corrupted and you will need to restore the backup and start over again.
WARNING 2: Your password will not work after restoring the backup. If you skipped the step 1) delete the .key And locksettings.db files in data/system before restarting onto system.
I strongly recommend disabling the password/pin/pattern before booting onto TWRP. It will prevent that your password gets corrupted (it happens easily).
By example if you format data from recovery without doing that, your password will not work anymore. If it happens, the only way back is format your data and restore your Flashfire backup if you have one.
Enviado desde mi Moto G (5) mediante Tapatalk

boot up pin

Hello,
Whenever i encrypt my phone on DU, when i set the lock screen Password it asks me if i want the phone to ask it to be able to boot, but then, the phone refuses to boot and says that the Password is wrong.
But when i boot into twrp the Password works and i can decrypt the data partition.
I already had the issue but with the phone accepting the boot pin but twrp not.
This is on a fresh DU install with previously formated data partition.
DO NOT encrypt via custom roms: it's cause of troubles and compatibility issues, especially when returning to OxygenOS.
So:
1) Put device in bootloader mode, plug it to computer, type fastboot format userdata via ADB terminal.
2) Go in TWRP and wipe all the partitions (be sure to have /cache formatted in ext4, otherwise change its filesystem):
3) Always from TWRP, flash latest OOS firmware (4.1.6 or OB19);
3) Reboot and configure setup with your PIN required at bootup;
4) After completing wizard, reboot in TWRP;
5) Now you can wipe anything and flash your rom.
Now device should require your PIN even at first boot of DU.
Ps until doing another fastboot format userdata, device will keep encryption.
Simone98RC said:
DO NOT encrypt via custom roms: it's cause of troubles and compatibility issues, especially when returning to OxygenOS.
So:
1) Put device in bootloader mode, plug it to computer, type fastboot format userdata via ADB terminal.
2) Go in TWRP and wipe all the partitions (be sure to have /cache formatted in ext4, otherwise change its filesystem):
3) Always from TWRP, flash latest OOS firmware (4.1.6 or OB19);
3) Reboot and configure setup with your PIN required at bootup;
4) After completing wizard, reboot in TWRP;
5) Now you can wipe anything and flash your rom.
Now device should require your PIN even at first boot of DU.
Ps until doing another fastboot format userdata, device will keep encryption.
Click to expand...
Click to collapse
Thanks for the answer, do you know why custom rom encryption doesnt work ? I used to to this on my old s5 and it worked perfectly
nikexv2 said:
Thanks for the answer, do you know why custom rom encryption doesnt work ? I used to to this on my old s5 and it worked perfectly
Click to expand...
Click to collapse
Maybe if you give his post a thumbs up he might continue helping you out , I mean that's the least you could do ......
Xceeder said:
Maybe if you give his post a thumbs up he might continue helping you out , I mean that's the least you could do ......
Click to expand...
Click to collapse
If members had to wait for thumbs up before they answer to someone's post then they wouldn't answer most of them.
What kind of **** philosophy is this, i hope for you that's not your way of thinking everyday.
And even, that's none of your business, maybe i forgot to like his post ?
Come on, do not vent on XDA, do not make useless quarrels ?
@nikexv2 sorry, but technically speaking, I don't know the reason of problematic encryption on custom roms.
Just enable encryption with official firmware and there's no other compatibility issue.
Encryption still remains when you full wipe device via recovery.
Have a good day.
nikexv2 said:
If members had to wait for thumbs up before they answer to someone's post then they wouldn't answer most of them.
What kind of **** philosophy is this, i hope for you that's not your way of thinking everyday.
And even, that's none of your business, maybe i forgot to like his post ?
Click to expand...
Click to collapse
It works like this - you ask for help and if someone gives you good advice or helps you out in any way then a quick thumbs up is appreciated , it's just courtesy but anyway I hope you get your phone sorted out ...
nikexv2 said:
Hello,
Whenever i encrypt my phone on DU, when i set the lock screen Password it asks me if i want the phone to ask it to be able to boot, but then, the phone refuses to boot and says that the Password is wrong.
But when i boot into twrp the Password works and i can decrypt the data partition.
I already had the issue but with the phone accepting the boot pin but twrp not.
This is on a fresh DU install with previously formated data partition.
Click to expand...
Click to collapse
Not sure what's wrong with your set up but I came from OOS OB19 to DU, wiped userdata to switch data to ext4, flashed DU + beans gapps (recommended for DU) then booted up, encrypted my phone via Settings > Security and set ask pin on booting device, same pin has worked on all ROMs, even tried some OOS based ones like Freedom OS CE, now on Omni + open gapps, I'm using blu spark latest recovery.

My OP3 says wrong passwd on boot, but in twrp same decrypt passwd works... Help!?!

Ok so i have a OnePlus 3 and it has an apparent glitch, im running a custom ROM, (shouldnt have anything to do with it... I would think) and whenever i try booting my phone it keeps asking for my encryption password, and so I enter in the password, and it keeps saying wrong password...
now when i boot into my recovery, it will ask me for the encryption password, and so i enter the same exact password again, and it successfully decrypts my data, it works.
now why would that work in recovery and not for the bootup sequence...?
I tried using my lockscreen PIN, the decryption password, the default decryption password, and still keeps giving me wrong password.
Android 7.1.2
PureNexus Rom
OnePlus 3
please help, thanks
Follow this and it should sort it out
In twrp, head to Advanced > File Manager, and go to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the “Delete” button). Then, delete all the files containing the word locksettings.
So on my Nexus 5X, for example, I deleted the following files:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal'
Try this.
nope didnt work back to same screen on boot
however i can take screenshots... LOL
Had same thing today but twrp was also not accepting my password so did a full wipe ,lpst all my data and not not using any lockscreen and fp because of fear of this happening again , i think magisk ask this if i flash su per su i will not get these things
Did you try the default password of password?
go to twrp and open file mangaer - data - system - delete locksettings.db and reboot
yep tried the defaults, did not work :*(
this didnt work for me
Factory Reset in TWRP (format data) should work.
I could only fix this by wiping the entire phone. FYI, entering the wrong password numerous times did not automatically wipe the phone. Instead it told me I had -5 (etc.) tries remaining. I never found out why exactly this whole thing happened.
If I had this problem try to format everything and reinstall. Before Backing Up
Always make nandroid backup after removing Secuirty and ensure that storage is un-encrypted for maximum ease.
I had the same thing, you or someone else must have encrypted your phone. When i encrypted my phone i never had the option to choose a password, so the next time i tryied getting into recovery it would ask me for a encryption password (which i never knew). Anws the only way to remove this was by full clean wipe and flash a new rom. P.S always backup before doing anything ?

pin password required after reboot

Just unlocked my bootloader and flashed a ROM. Every time I reboot the phone it will ask you for a password first before it can boot.
I searched it on google and said its a data encryption for new android versions
Is there any way to decrypt o to remove the password everyboot?
You enabled that when setting up your pin/password.
Change it back to none or swipe and setup your password again, and make sure required on boot is not selected!
You basically enabled encryption. Go into your custom recovery -> formate data. I recommend flashing Magisk (so you disable forced encryption & dm verity) or you can flash lazy flasher (search it on github or google).
If you do so your device gets formatted as well
Also, make sure to backup everything before formatting because everything will be deleted.

After flashing twrp i need to decrypt data and i don't know the password

Please, I need help. After flashing twrp I boot it and I need a password. I don't have any idea of what password it is. I tried with "default_password", "password" and with my MIUI account password. I also tried the password I have in the lock screen. But nothing seems to work. I tried also RedWolf but it also needs a password.
I have been reading a lot of forums with this topic but no one worked for me. Does somebody have a solution? I will do a fabric reset if necessary, but I want to install a custom rom and with that password it's impossible
pyradke said:
Please, I need help. After flashing twrp I boot it and I need a password. I don't have any idea of what password it is. I tried with "default_password", "password" and with my MIUI account password. I also tried the password I have in the lock screen. But nothing seems to work. I tried also RedWolf but it also needs a password.
I have been reading a lot of forums with this topic but no one worked for me. Does somebody have a solution? I will do a fabric reset if necessary, but I want to install a custom rom and with that password it's impossible
Click to expand...
Click to collapse
press tge back button for twrp u will enter twrp interface now You will have to perform format data(in wipe section) after that your internal storage along with other partitions will be wiped then you mist install orangefox recovery (never choose anyother recovery for whyred only orangefox) then you can install any custom rom your storage will be decrypted.(your os will also b wiped and all your data in internal storage) use sd card or otg to flash a rom.
Use Orange Fox.
The only reason for the encryption of twrp is immediate change of roms from android 10 to android 9 (or) changing the pixel based roms to normal roms to avoid this we can use the lazy flasher zip

Categories

Resources