Magisk v22 update encrypted my phone. - Magisk

Please help me repair my phone.
When trying to boot, TWRP asks "Enter password for user [0]).
I flashed boot.img all over again and it didn't help. I don't want to lose my data on my phone so full wipe is out of the question.

Related

[OP3T] From stock to Nougat then flash TWRP & root

Hi all,
What happens if you take a stock 3T, upgrade it all the way to Nougat the normal way, then proceed to unlock the bootloader, flash TWRP and supersu?
Does the TWRP 3.0.3.0 build have an issue with decrypting and mouting the sdcard? Is that even a problem in the sense of waiting until a fixed version of TWRP is released? The point is to just flash supersu for the moment. No other need to access that partition from recovery, is there? Or does it directly impact my ability to upgrade TWRP in the future?
And another question: would decrypting the phone after the stock to Nougat update, and only then flashing TWRP&root be of any use? Is this even possible at the moment? I can hold on without encryption until there's a proper version of TWRP, kernel sources are released etc.
I don't seem to find any info on these scenarios. Has anyone tried any of this?
Thank you!
Good questions.
Does the TWRP 3.0.3.0 build have an issue with decrypting and mouting the sdcard?
Click to expand...
Click to collapse
I can confirm 3.0.3.0 has problems with decrypting and mounting sdcard. A new version of TWRP should fix this.
No other need to access that partition from recovery, is there?
Click to expand...
Click to collapse
Well, the need to access partition from recovery depends. You won't be able to flash anything from TWRP. I could sideload different recoveries without decrypting but had to decrypt (with the format userdata command from cmd prompt) to revert to 3.5.4 from TWRP. In the end I mostly downgraded due to bluetooth issues.
I am having the same decryption issue... TWRP shows 0MB as the storage
What should be done now..?
you can get past encryption by formating data in twrp, though that deletes all your data, back ups and everything, but with that you have the phone completely rooted and then you can download or transfer data via mtp to storage, flash super su and verity.
Amar97 said:
you can get past encryption by formating data in twrp, though that deletes all your data, back ups and everything, but with that you have the phone completely rooted and then you can download or transfer data via mtp to storage, flash super su and verity.
Click to expand...
Click to collapse
Did that already but did not work.. Even tried the setting up of pattern method.. that too did not work...
Also force decrypted with Toolkit but still the same
just to make sure. flash twrp via fastboot( I flashed the 3.0.2.0 version) then when booting to twrp you get get the screen where it asks you for a password, skip that , just swipe to continue then go to wipe, then format data, type "yes" to confirm, the at the next booting it shouldn't​ ask you for the password anymore. That did it for me. Maybe you should try adb sideload to flash verity.img and supersu
Amar97 said:
just to make sure. flash twrp via fastboot( I flashed the 3.0.2.0 version) then when booting to twrp you get get the screen where it asks you for a password, skip that , just swipe to continue then go to wipe, then format data, type "yes" to confirm, the at the next booting it shouldn't​ ask you for the password anymore. That did it for me. Maybe you should try adb sideload to flash verity.img and supersu
Click to expand...
Click to collapse
why not use 3.0.3.0?
Solnir said:
why not use 3.0.3.0?
Click to expand...
Click to collapse
Don't really know, probably tried solving the problem by trying with the older version and then didn't feel like upgrading to the newer 3.0 after fixing the problem.

Stucked in Encryption Unsuccesful help!

I need help, I was trying to root my Oneplus 3T, with stock OOS 4.0.2. After following all the steps, I flashed the dm-verity to keep with the steps, and that worked. But after formatting data, as it was suggested, it gave me an error. It showed like everything was encrypted which shouldn't due to the flash of the dm-verity and now I'm stucked in not a bootloop because the phone actually boots but I cant do anything because the encryption error takes me back to the recovery, which shows an error etc. Is there any tutorial to fully recover the phone from this point? Thank you very much in advance.
Did you try flashing SuperSU after flashing dm-verity? If the zip isn't on your phone at this point, you can go into bootloader mode and use adb to push the SuperSU zip on and flash it that way.
You can use the toolkit to push the files if you want, it'll be easier that way: https://forum.xda-developers.com/oneplus-3t/development/toolkit-oneplus-3t-toolkit-unlock-t3507729
If all else fails, flashing a clean rom always works.
Anova's Origin said:
Did you try flashing SuperSU after flashing dm-verity? If the zip isn't on your phone at this point, you can go into bootloader mode and use adb to push the SuperSU zip on and flash it that way.
You can use the toolkit to push the files if you want, it'll be easier that way: https://forum.xda-developers.com/oneplus-3t/development/toolkit-oneplus-3t-toolkit-unlock-t3507729
If all else fails, flashing a clean rom always works.
Click to expand...
Click to collapse
Now I'm stuck in a bootloop after reflashing stock recovery. If i reflash the boot.img via fastboot from the .zip of the official OOS 4.0.1, will it work? Thank you very much
Not sure why flashing recovery would cause a bootloop. Might be safer just to sideload a fresh ROM. If you're worried about losing files, you can use adb to pull whatever you need first from sdcard prior to flashing.
What I did in a similar situation was to reflash the stock recovery first using the unbrick-toolkit. When booting into recovery then, there is an option "forget password" when it asks you to enter the password. If you select that, it will simply wipe your phone completely and you can start over again.

Reboots to TWRP Recovery

I have the XT 1805
This is the European Dual Sim version 32GB.
I unlocked the bootloader and got root using this: https://forum.xda-developers.com/moto-g5s-plus/development/root-moto-g5s-plus-t3673287
I was unsuccessful flashing the TWRP recovery from the link in the OP. Other people in that that thread noted similar issues. I flashed TWRP from this link:
https://forum.xda-developers.com/showpost.php?p=74105503&postcount=27
Whenever the phone boots, it boots directly to TWRP.
I also enabled encryption.
TWRP says the encryption password is incorrect.
When I cancel the ready process, I can go into TWRP and boot to bootloader from TWRP.
From the bootloader/fastboot screen I can boot into system.
I don't want to jump through these hoops every time I reboot. How do I fix this?
Also, I cannot factory reset. Factory reset takes me to TWRP. After I do the bootloader dance, I'm back to the system before the factory reset. It's as if factory reset never happened.
crobjam said:
I have the XT 1805
This is the European Dual Sim version 32GB.
I unlocked the bootloader and got root using this: https://forum.xda-developers.com/moto-g5s-plus/development/root-moto-g5s-plus-t3673287
I was unsuccessful flashing the TWRP recovery from the link in the OP. Other people in that that thread noted similar issues. I flashed TWRP from this link:
https://forum.xda-developers.com/showpost.php?p=74105503&postcount=27
Whenever the phone boots, it boots directly to TWRP.
I also enabled encryption.
TWRP says the encryption password is incorrect.
When I cancel the ready process, I can go into TWRP and boot to bootloader from TWRP.
From the bootloader/fastboot screen I can boot into system.
I don't want to jump through these hoops every time I reboot. How do I fix this?
Also, I cannot factory reset. Factory reset takes me to TWRP. After I do the bootloader dance, I'm back to the system before the factory reset. It's as if factory reset never happened.
Click to expand...
Click to collapse
First of all we need to make a fresh start so
1) let's flash the stock ROM on our device
2) now once we are on stock it time we flash a valid TWRP recovery file here's the link : https://forum.xda-developers.com/moto-g5s-plus/development/recovery-twrp-3-1-1-r7-t3694910
3) once it's done let's boot to the recovery and if it asks for any password or pin let's cancel it and swipe to allow modifications now let's go into wipe section > format data > type yes.
4) once it's done let's go to reboot section and reboot to recovery. Once again let's boot back to recovery if we get any red lines highlighting " unable to mount system " so to fix it let's go to mount and mount system,data and now flash magisk or super su if we want root or straight away flash a custom ROM due to this atleast we will not get a system status modified in our bootloader
Thanks for reading .

please help! Encryption Unsuccessful after update 5 with root

i tried to install the new update, and when phone restared i got massage Encryption Unsuccessful
i cant wipe, i cant flash nothing to phone because the phone cant find storage.
please help me!
Calm down, panicking is what may lead to further accidents.
Now, explain what you flashed after the (I'm assuming the OOS 5.0 File) update file. What add-ons did you flash? Any other audio mods or anything else?
What is your recovery? Which OOS version or ROM did you come from?
maor23 said:
i tried to install the new update, and when phone restared i got massage Encryption Unsuccessful
i cant wipe, i cant flash nothing to phone because the phone cant find storage.
please help me!
Click to expand...
Click to collapse
Had the same thing. I was lucky, because I backup all my data on my computer before update.
I was able to boot the system. I wiped it with stock recovery.
It ask for password and if u press "forgot password" u can wipe the whole phone. But it does a full wipe than. (Storage included)
An inconvenience at most but not the end of the world. Does it every time to me when I flash an Oxygen ROM. I'm always next to my computer anyway so I end up going ahead and just booting to download mode and doing a fastboot format userdata, fastboot flash recovery <twrp img>, booting to recovery, wiping everything, moving my data back to the phone, and proceeding with setting up the ROM... It's a big hassle and I know there's an easier way but I dunno...
If it doesn't find your internal storage or its only showing a percentage of your total (I have the 128GB 3T and it shows like 48 or 60GB total internal storage) you will HAVE to boot into TWRP and wipe your internal storage anyway to recover that space.. it's lost anyway, so not losing anything.

Can not install anything custom anymore, dm-verity gets triggered

Hello,
I have always been on root but somehow something changed.
Since I tried to flash the newest stable stock (5.0.1), nothing works anymore.
No matter if I flash dm-verity disabler, supersu or magisk, dm-verity gets triggered everytime and my phone just says "decryption unsuccessfull" and won't boot.
I've tried everything to fix this, including: different versions of supersu/magisk, reflashing TWRP recovery, even going completely back to stock, locking the bootloader and everything.
Also I read somewhere that you can flash dm-verity disabler and wipe data to completely remove the encryption, but TWRP showed an error message, something like "failed to wipe, cannot mount /data".
In the end I got stuck with no ROM and I couldn't even access stock recovery anymore because it had the weird password bug, so I had to use the unbrick tool to get it working again.
Can someone tell me what I'm doing wrong?
I have always been on root since the early Nexus 5 days, but now I feel really stupid because I must be missing something obvious, so thank you in advance for any help.
Cheers
What rom are you trying to install and what magisk version are you trying to flash over your preferred rom?
If by chance you are trying to flash OpenBeta 21, I have yet to avoid my data getting encrpyted when trying to flash. And personally, I must have been doing something incorrect ever since I got the phone, because almost every time I've flashed a stock OxygenOS ROM I have triggered encrpytion. In my situation it never seemed to matter if I flashed Magisk, SuperSU, a custom kernel, or even just a modified boot.img along with the disable encryption file... I don't know the steps you're taking, but what I do is this: once I get the "Encryption Unsuccessful" message when trying to boot, I just reboot to fastboot and type "fastboot format userdata". And since flashing stock OxygenOS usually overwrites TWRP with the stock recovery despite my best efforts to avoid it, I tend to go ahead and flash TWRP while I'm booted into fastboot. After, I boot into TWRP; at which point encryption has been removed, yet the total amount of storage available to me is less than 30GB (I have the 128GB model.) You have to go to Wipe, then hit the button on the bottom-right, "Format." Type "yes" in the box and format data. That restores my device back to 111GB free of 113GB. I then transfer over and flash Magisk and whatever other mods I wanted. After that my device is no longer encrypted and works just how I want it to. Hope that helps with your issue.
What rom are you trying to install and what magisk version are you trying to flash over your preferred rom?
Click to expand...
Click to collapse
The newest stock ROM, so this/.
Magisk is also just the newest version (15.3).
go to Wipe, then hit the button on the bottom-right, "Format." Type "yes" in the box and format data.
Click to expand...
Click to collapse
When I tried to do that, it just told me "cannot mount /data" and wipe failed...
kaeptn1 said:
The newest stock ROM, so this/.
Magisk is also just the newest version (15.3).
When I tried to do that, it just told me "cannot mount /data" and wipe failed...
Click to expand...
Click to collapse
If you're not using Blu Spark 8.61 TWRP, then I suggest you install it and try again.
If all else fails, do as @lordcheeto03 suggested and format userdata in fastboot - but note that this will completely wipe your data, including internal storage. Then install TWRP, then flash 5.0.1 and anything else you want.
Sent from my OnePlus3T using XDA Labs
kaeptn1 said:
When I tried to do that, it just told me "cannot mount /data" and wipe failed...
Click to expand...
Click to collapse
If you're getting the encryption unsuccessful error, I don't think you format data in that manner, you gotta use fastboot and fastboot format userdata to remove encryption THEN boot into TWRP to do that.

Categories

Resources