I have a US996 with an unlocked bootloader. I installed TWRP (although I still can't get it to decrypt data). I installed the latest SuperSU - and there were no errors (although without the ability to decrypt, TWRP couldn't wipe Dalvik/cache).
But after rebooting, Root Checker still says I'm not rooted.
What am I doing wrong?
Figured it out. Unless I disable the default encryption to formatting Data, installing SuperSU fails. Once I format Data, the install works properly.
Haphim said:
Figured it out. Unless I disable the default encryption to formatting Data, installing SuperSU fails. Once I format Data, the install works properly.
Click to expand...
Click to collapse
How did you disable default encryption? I flashed twrp but in recovery it always says it had to decrypt in order to mount. I don't know the password twrp is asking for. Thanks
I followed the instructions and flashed TWRP. However it asks for a decrypt password when TWRP loads. How do I get past this? I formatted data twice and I am unable to flash SuperUser since I can't see any mount points. Its read only. Thank you to anyone that can help.
SOLVED:
Here is what I did wrong. After I ran all the dirtycow commands and got permissive root access I rebooted into TWRP. TWRP showed that the sdcard was encrypted. What I kept doing at this step was formatting the sd card which is correct, however I kept rebooting back into system. That was my mistake. I needed to immediately reboot back INTO TWRP RECOVERY instead. Once I rebooted directly back into TWRP recovery after the format I was able to view file system information move su.zip to sd card and install SuperUser.zip from TWRP.
When rooting my H990ds the guide said when TWRP asks for a password just press cancel. It should be the same for you too.
inurb said:
How did you disable default encryption? I flashed twrp but in recovery it always says it had to decrypt in order to mount. I don't know the password twrp is asking for. Thanks
Click to expand...
Click to collapse
Sorry, the text you quoted from me should have read that disabled default encryption *by* formatting Data. Formatting Data is what takes care of it.
on my A2017U After unlocking the bootloader and having twrp 3.0.4 installed I went to install resurrection remix and gapps and upon boot it asks for a password that I had never set up. before installing the ROM i formatted the data and wiped everything. What do I need to do? I reloaded a stock rom and in the settings it says the phone is encrypted. I've tried searching for answers to this but I haven't been able to find anything..
unknown3rror said:
on my A2017U After unlocking the bootloader and having twrp 3.0.4 installed I went to install resurrection remix and gapps and upon boot it asks for a password that I had never set up. before installing the ROM i formatted the data and wiped everything. What do I need to do? I reloaded a stock rom and in the settings it says the phone is encrypted. I've tried searching for answers to this but I haven't been able to find anything..
Click to expand...
Click to collapse
Go to TWRP - Wipe - Format data - write 'yes'
...and maybe update TWRP.
Choose an username... said:
Go to TWRP - Wipe - Format data - write 'yes'
Click to expand...
Click to collapse
I flashed it again, formatting data before flashing everything, still came up with the dialog to inter password. I rebooted into twrp and formatted data again, reboot, still asks for password
Spillunke said:
...and maybe update TWRP.
Click to expand...
Click to collapse
updating TWRP to latest build and I still have the same issue
If you Install another ROM, after wiping everything, is this problem still there?
Delete locksettings.db?
unknown3rror said:
I flashed it again, formatting data before flashing everything, still came up with the dialog to inter password. I rebooted into twrp and formatted data again, reboot, still asks for password
Click to expand...
Click to collapse
Are you sure you are ACTUALLY USING the 'Format data' button? Wiping won't do anything to the encryption (i'm asking just to be sure).
Otherwise try doing this:
-Format data, wipe system, dalvik, cache
-Flash Universal Bstck
-Flash your modem
-Flash the ROM
-Flash either noverity-opt-encrypt-axon7 (I think the name was that one; just make sure it is for the axon7 or ailsa_ii), or SuperSU/Magisk which should have that packaged in.
This really shouldn't happen...
Choose an username... said:
Are you sure you are ACTUALLY USING the 'Format data' button? Wiping won't do anything to the encryption (i'm asking just to be sure).
Otherwise try doing this:
-Format data, wipe system, dalvik, cache
-Flash Universal Bstck
-Flash your modem
-Flash the ROM
-Flash either noverity-opt-encrypt-axon7 (I think the name was that one; just make sure it is for the axon7 or ailsa_ii), or SuperSU/Magisk which should have that packaged in.
This really shouldn't happen...
Click to expand...
Click to collapse
yes, I am actually using format data button and typing yes. I will try using the noverity later this evening and give you a followup
If I remember this right you have to use both in twrp,
factory reset and format data, I read this here on XDA or Reddit before I unlocked my bootloader.
coremania said:
If I remember this right you have to use both in twrp,
factory reset and format data, I read this here on XDA or Reddit before I unlocked my bootloader.
Click to expand...
Click to collapse
this is what I did.
1. Boot to TWRP
2. wipe/factory reset
3. advanced wipe everything but sd card and usb
4. format data, type yes
5. install ROM and Gapps
6. boot.
everything loads okay except I get it asking for password
I have not tried another ROM yet or the noverity-opt-encrypt-axon7 I will have to do those later tonight.
One more thing I was going to try is remove the lockscreen pin/fingerprint on the stock before doing anything
unknown3rror said:
this is what I did.
1. Boot to TWRP
2. wipe/factory reset
3. advanced wipe everything but sd card and usb
4. format data, type yes
5. install ROM and Gapps
6. boot.
everything loads okay except I get it asking for password
I have not tried another ROM yet or the noverity-opt-encrypt-axon7 I will have to do those later tonight.
One more thing I was going to try is remove the lockscreen pin/fingerprint on the stock before doing anything
Click to expand...
Click to collapse
Do this after you flashed rom and gapps, only factory reset and format data, no need to wipe other stuff.
Edit: I did this directly after the unlock, I flashed the latest official twrp through the unlock twrp version, rebooted to twrp, advanced wiped caches and data, not system, flashed bootloader and modem from the Los thread for my axon version, flashed dark rom with gapps, rebooted and run into the same issue as you. Back to twrp, factory reset, format data, then reboot and everything was good ....., Or Format data and then factory reset, try both if necessary.
unknown3rror said:
this is what I did.
1. Boot to TWRP
2. wipe/factory reset
3. advanced wipe everything but sd card and usb
4. format data, type yes
5. install ROM and Gapps
6. boot.
everything loads okay except I get it asking for password
I have not tried another ROM yet or the noverity-opt-encrypt-axon7 I will have to do those later tonight.
One more thing I was going to try is remove the lockscreen pin/fingerprint on the stock before doing anything
Click to expand...
Click to collapse
Another thing you could try is booting to the bootloader and trying "fastboot format userdata"
unknown3rror said:
on my A2017U After unlocking the bootloader and having twrp 3.0.4 installed I went to install resurrection remix and gapps and upon boot it asks for a password that I had never set up. before installing the ROM i formatted the data and wiped everything. What do I need to do? I reloaded a stock rom and in the settings it says the phone is encrypted. I've tried searching for answers to this but I haven't been able to find anything..
Click to expand...
Click to collapse
You just need to wipe data cache dalvic after flashing the ROM
You have the factory reset step in the wrong place. Do it after the rom and gapps installation...
Essentially the phone is still encrypted though factory reset . You need to get rid of the encryption AFTER you flash the new ROM...
Change the data file system to ext4.
coremania said:
Do this after you flashed rom and gapps, only factory reset and format data, no need to wipe other stuff.
Edit: I did this directly after the unlock, I flashed the latest official twrp through the unlock twrp version, rebooted to twrp, advanced wiped caches and data, not system, flashed bootloader and modem from the Los thread for my axon version, flashed dark rom with gapps, rebooted and run into the same issue as you. Back to twrp, factory reset, format data, then reboot and everything was good ....., Or Format data and then factory reset, try both if necessary.
Click to expand...
Click to collapse
This did the trick.
Flashed bootloader, modem, rom, gapps. factory reset and format data. boot to password, reboot to twrp, factory reset, format data, reboot to working rom no password. Thank you and to everyone else for your help!
Cablespider said:
Change the data file system to ext4.
Click to expand...
Click to collapse
This seemed to do the trick for me.
To change the file system type in TWRP 3.2.3.0:
Go to 'wipe', then 'advanced wipe' and select 'Data', press 'Repair or Change File System' and then 'Change File System' to EXT4. It will say "format" which often means "delete" but didn't remove the ROM I had flashed moments before.
I also did this below first- but without doing a re-flash of the bootloader and modem:
unknown3rror said:
This did the trick.
Flashed bootloader, modem, rom, gapps. factory reset and format data. boot to password, reboot to twrp, factory reset, format data, reboot to working rom no password. Thank you and to everyone else for your help!
Click to expand...
Click to collapse
Idk if this will help with your use case, but for other users, it can be good to know.
but for the stock ROM: Settings -> Security -> Screen Lock -> Enter your pin -> It should ask you if you want to shut off the password on boot up
Hey, so I can't decrypt my device anymore. Not in Android itself, and not in the recovery. I've tried sideloading no_verity.zip and formatting the system via fastboot, so far nothing helped. When I try to flash the stock rom via sideload, it says it's not readable. I don't know if thats because I didn't decrypt the device before flashing or because the zip is faulty, but I've tried 3 diffrent roms, including one that has worked before.
Is there anything I can do to get my phone working again?
Device: Onepluss 5 6GB
Rom: Omnirom
Install latest codeworkx twrp or blue spark twrp, skip password menu, format data (not wipe), reboot recovery, now wipe everything, then flash what you want
more_than_hater said:
Install latest codeworkx twrp or blue spark twrp, skip password menu, format data (not wipe), reboot recovery, now wipe everything, then flash what you want
Click to expand...
Click to collapse
Thank you! That worked. I figuered formatting data and wiping data would work quite the same, but thanks for proofing me wrong ^^
Hello,
So I tried to install LineageOS 17 (Android 10). And there were errors. So I decided to return to RR. And what i see is that the data is encrypted and I have to format my phone. When I click on this button phone restarts to recovery(orange fox) where I have to enter PIN. And everything is fine but in logs I see this:
Failed to encrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
Unable to mount storage
I can't use my device now. After booting to system same button and text appears. Please help
Update.
When I was writing this thread I couldn't find option Format Data but when I was searching in the recovery I finnaly found it. Now everything works fine
I don't think you can flash anything without first formatting the storage . This happened for me on Redmi6pro (sakura). That was the only option left for me that time.
hope you had a back up otherwise you will lost your files.
if you had a pin to unlock your phone put that ping in the box asking for decrypt the phone. if that doesn't work you may need to format data and reinstall.
If that's the case, restart into recovery (power+vol_up)
-go to manage partitions, format data partition.
-restart to recovery
-full wipe (data, dalvik, cache system)
-flash rom (can be the same) after a format and full wipe should work well i had lineage and was great.
-restart to recovery
- flash gapps and magisk if you like.
-restart into system.
Hope you get luck.,
Mr.Dogerrr said:
Failed to encrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
Unable to mount storage
Click to expand...
Click to collapse
If you this exact text, then you can pretty much say goodbye to the data from internal storage. At this point, there no way to rescue the files... Sadly, had the exact thing happen to me & I lost all my stuff
My device bootlooped after new update, it seemed fine, i update it normally last week and it worked fine. today i did a TWRP backup of all of the partitions and then rebooted and it went into bootloop. I was able to flash all the partitions again with the flash-all-partitions.bat and got it out of fastboot. Now i can boot TWRP with an .img again.
The problem is that my data is all encrypted, like it mounts but its all in ramdom folders with ramdom names, and TWRP is not asking for the code to decrypt it. I dont know how to decrypt the data. How can i decrypt it? ( i know the code as it was my password).
Thank you
I would say format data and re-flash rom via twrp, that should remove encryption (but you loose all of your data) and you should be able to normally boot.
marahlad said:
I would say format data and re-flash rom via twrp, that should remove encryption (but you loose all of your data) and you should be able to normally boot.
Click to expand...
Click to collapse
yes but the problem is im trying to preserve data, it was pretty sudden i need to acces my 2fa backups and other important files, thats why i havent formatted everything and reflashed. bc im trying to look for solutions whre i can decrypt my data and get the important stuff out of there.