After flashing a new ROM, TWRP doesn't decrypt the internal storage - OnePlus 6 Questions & Answers

I'm sure that this problem was asked a bunch of times now, but I didn't find any reliable solution to this so far.
I wanted to move from LOS to Omnirom.
What I did:
Wipe cache/system/date
Flashed Omnirom
Flashed TWRP (blu_spark_v9.96)
Reboot to recovery
But unfortunately, what I saw is that all of my internal storage is encrypted, and I don't know how to decrypt it back to normal without wiping it all to start from scratch.
By this time I tried some various tries to revert it back to normal.
But... obviously, I kinda broke it.
What I mean is that I've got the "stuck TWRP logo" and accidentally deleted to boot partition (I've already recovered them back (A/B)) but until I'll manage to decrypt my files, I'm stuck with the stock recovery and can only boot to TWRP, but not flashing it.
My question is:
What should I do next in order to return my recovery to TWRP and boot to my custom ROM properly?

Related

[Q] Accidently Wiped system and almost everything using Team Win Recovery Project v2

Was trying to flash the ICS ROM V5 but it got stuck on the boot animation. I did a factory reset, surprisingly it was still there. So i used "Team Win Recovery Project" aka "twrp-crespo-2[DOT]0[DOT]0RC0[DOT]img" in nexusshacks.com. I went in there to do a factory reset but i wiped the ACTUAL system instead. So when i reboot i am stuck on Google. Unfortunely i only had 1 back up which is in ClockworkMod, but i cant access that. I dont mind my lost files because i can recover that but i want my phone to work again. Can i copy the nexus s contents from another nexus s and place it in my SD and will it work? If you guys have ideas please do reply because i need my phone fixed asap. Bootloader unlocked and rooted using superuser.
nexusshacks.com/nexus-s-root/how-to-root-nexus-s-or-nexus-s-4g-on-ics-or-gingerbread/
okay,am not very familiar with TWRP but your problem doesn't seem that big,you wiped the /system which should not affect your USB storage data (even if you wiped the USB storage it's not a problem),try to boot into the bootloader (volume up + power button) then go to recovery,mount the USB storage and put a ROM on it,then just flash the ROM and your device should boot up normally,i think you weren't stuck at the bootanimation since when you flash a new ROM the first boot could take from 5 to 10 minutes.
i usually do a clean install before flashing a new ROM (format system,data,cache,boot) and the device just boot up normally after flashing the new ROM so it's not a problem if you wiped your system just flash a new ROM.
TigaTiger said:
Was trying to flash the ICS ROM V5 but it got stuck on the boot animation. I did a factory reset, surprisingly it was still there. So i used "Team Win Recovery Project" aka "twrp-crespo-2[DOT]0[DOT]0RC0[DOT]img" in nexusshacks.com. I went in there to do a factory reset but i wiped the ACTUAL system instead. So when i reboot i am stuck on Google. Unfortunely i only had 1 back up which is in ClockworkMod, but i cant access that. I dont mind my lost files because i can recover that but i want my phone to work again. Can i copy the nexus s contents from another nexus s and place it in my SD and will it work? If you guys have ideas please do reply because i need my phone fixed asap. Bootloader unlocked and rooted using superuser.
nexusshacks.com/nexus-s-root/how-to-root-nexus-s-or-nexus-s-4g-on-ics-or-gingerbread/
Click to expand...
Click to collapse
I did this same thing a few weeks ago. I just had to reinstall everything (including the recovery) from fastboot. Worked like a charm.
I used the nexusshack tut to root my nexus had no problems.
You could go into recovery, mount usb storage, find the clockworkmod directory and copy that to your pc..
do a full data wipe and flash a new rom, then install rom manager flash CWM recovery . move the clockworkmod directory back to your phone. boot into recovery and restore you backup.
Just an idea .. not sure if it could work..(take no responsibility is it doesnt)

wiped, bricked tf300 now installing c/roms but still booting to twrp?

hello, last week i bricked my tf300, this is what happened...
i installed the energy rom along with the 4.2.1 bootloader, i was already using twrp 2.4.3.0 and it seemed to work fine for a while but then i had problems with a double screen after trying a different rom (cant remember which) anyway i tried the usual resets and wipes to to fix it but no joy. I then used the wipe data in bootloader thinking a full clean wipe would sort it but it just booted straight into twrp.
in twrp nothing will mount apart from system, ive used fastboot to flash various stock blobs, proper twrp img etc but even tho fastboot said everything flashed ok, i still boot into the old twrp which wont mount anything apart from system.
i then got an old 8 gig sd card and put stock roms and energy rom on root of the sd card , in twrp i mounted system but cant mount cache, data or sd card but strangely, i was able to copy the above roms from the sd card and move them to the mounted system partition which i was then able to install the energy rom with aroma installer , happy days i thought until after installation it rebooted straight to twrp again asking for password?
when i try to install stock roms by the above method it fails because cache isnt mounted. i think the twrp is corrupted, how do i fix this?
could someone with the know how tell me what im doing wrong,? should i full wipe again? should i wipe the twrp and how do i do this?
i am sort of a newb to this and any advice would be great

[Q] TWRP cannot read my sdcard (encrypted?)

So, my previous post was a bit too optimistic. I've managed to get TWRP onto my phone, but when I went to actually load a custom ROM into it, I found that it couldn't read anything from my sdcard.
I'm having what appears to be a common problem: when I boot into Recovery, TWRP asks for a password. When I cannot provide it (because I have no idea what it is), TWRP is unable to access the data partition. Apparently, the partition is encrypted and I have no way to de-crypt it.
I've found dozens of other posts by users having this problem and the solution everyone is giving is to fully wipe the data partition and start over. But I *can't* wipe the data partition, because TWRP can't access it and fails almost immediately. I have tried a multitude of options, including:
* Installing old versions of TWRP - same behavior; asks for a password, fails to wipe/format the data partition.
* Installing ClockWork's recovery - same thing; fails to format/wipe the data partition
* Flashing back to stock recovery, using that to format my data partition; this worked fine but as soon as I put TWRP back, the problem came back.
On my last attempt, I used the stock recovery to completely wipe the data partition, and made absolutely sure that it never booted into anything but Download or Recovery modes after that. I was hoping that would prevent the stock software from ever re-encrypting the data, but somehow, when I booted TWRP, it still can't read my partitions. Note that my phone itself is not "encrypted" as far as the Settings application is concerned, but apparently Android is doing something behind the scenes anyway. There doesn't seem to be any option in the stock settings to turn off this encryption.
Is there any hope for getting a custom ROM onto this phone?
Thanks for the help!
Any solution? I'm running into the same issue where TWRP is asking for a password.

[SOLVED] Google Apps Not Working And Recovery Refusing To Open

About two weeks ago just before CyanogenMod's announcement of its closure I updated my Moto G2015 (1GB) to the latest nightly, which was CM14.1 released on the 25th of December, with its corresponding GAPPS version also released on the 25th of December (ARM, android 7.1, Full)
Yesterday the 7th of January my Google Apps decided that they didn't want to open, at first I thought it was just updating and since my battery was low I plugged in my device, I later realised that my device randomly went to a boot loop and stayed there. I grew impatient so I restarted the phone and went to the Recovery Mode (To Re-Flash the ROM), but to my annoyance the recovery (TWRP) just stayed on the 'Teamwin' logo forever, it would randomly go black then return to that logo. infuriated I turned on my phone and went to backup/reset and clicked 'factory reset'. it annoyingly booted me into recovery to reset the device, which of course I couldn't do.
Now the simple answer would have been for me to go and wipe the cache and data from 'google play services' and or 'launcher3' but I did, either it always shows 'calculating' preventing me from clicking 'manage space' or clearing 'cache' or when it did finally show, after I did click the button for the cache and or data to be cleared it would say 'calculating', and a quick check would discover that nothing was actually cleared.
Kind Regards, and Thank You to any help recieved,
NotSoGreat
Boot TWRP or CWM Recovery (not sure if it's still called CWM Recovery now that LineageOS has replaced it) with the command 'fastboot boot recovery.img' but replace recovery.img with your actual recovery image filename. If TWRP won't boot wait, sometimes a theme or corruption in the TWRP directory on internal storage can pause the startup of TWRP by several minutes, if that still fails boot CWMR and remove the TWRP directory or wipe internal storage.
Once you can get TWRP to boot properly, backup everything (MPT works in TWRP) and wipe and reflash, should be good to go.
acejavelin said:
Boot TWRP or CWM Recovery (not sure if it's still called CWM Recovery now that LineageOS has replaced it) with the command 'fastboot boot recovery.img' but replace recovery.img with your actual recovery image filename. If TWRP won't boot wait, sometimes a theme or corruption in the TWRP directory on internal storage can pause the startup of TWRP by several minutes, if that still fails boot CWMR and remove the TWRP directory or wipe internal storage.
Once you can get TWRP to boot properly, backup everything (MPT works in TWRP) and wipe and reflash, should be good to go.
Click to expand...
Click to collapse
Thanks for the reply, what you're saying makes sense and would probably work, but I found a simpler work around. I'm actually annoyed I didn't do it earlier.
So simply put, I downloaded my stock recovery which worked and then I just factory reset my device from there, that reset the CM14.1 ROM and let my Google Apps work again. Now about the recovery, I'm a bit skeptical about Re Flashing it, but I think I'll try it next weekend and post the results.
NotSoGreat said:
Thanks for the reply, what you're saying makes sense and would probably work, but I found a simpler work around. I'm actually annoyed I didn't do it earlier.
So simply put, I downloaded my stock recovery which worked and then I just factory reset my device from there, that reset the CM14.1 ROM and let my Google Apps work again. Now about the recovery, I'm a bit skeptical about Re Flashing it, but I think I'll try it next weekend and post the results.
Click to expand...
Click to collapse
Have you tried it since you wiped? It might just work now that the reset wiped internal storage...
acejavelin said:
Have you tried it since you wiped? It might just work now that the reset wiped internal storage...
Click to expand...
Click to collapse
I'll try now.
acejavelin said:
Have you tried it since you wiped? It might just work now that the reset wiped internal storage...
Click to expand...
Click to collapse
Right, so I reinstalled and flashed the latest version TWRP, when I opened into it, it took about 1 minute before it opened up, it ran a quick operation that I just glimpsed, it looked like it was wiping cache and user data, my phone was rebooted and I was right, my phone had been reset for the second time today (I'm almost a pro at reinstalling all my apps). I rebooted into the recovery and Look and Behold, it was working.
Thanks slot for your help and time.

Nandroid Restore gone wrong

Hi,
I have tested the liquidremix rom which is great, but I still wanted to go back to my stock OSS
So I started TWRP, hit restore, everything seem to work fine, but when I reboot the system I'm stuck at the boot animation.
When I reboot the device to TWRP and check the file manager or my backup folder there are only cryptic and weird letters...
How do I restore my backup properly ?
Try to go back to TWRP 3.2.1.0 i think that that works
everything is gone, you will have to restore with the brick tool, happened to me last week and still not sure why, apparently backing up with TWRP you only need to ticket DATA and that's it.
You need to do two things whenever you restore with TWRP. First is factory reset in TWRP before the restore (that will wipe data). Second is restore system, boot, and data ONLY.
The weird file names and cryptic letters is from the encryption from the old rom. I strongly recommend that you invest in an OTG flash drive so you can store TWRP backups on it. Then you can properly wipe the phone. On the plus side this has happened to me before and I never needed anything special like the unbrick tool to get my TWRP backup up and running smoothly.
and there is a better twrp than twrp. The official is by Dees Troy and the un-official one by Joe Moss Jr. is here. https://forum.xda-developers.com/oneplus-6/development/recovery-twrp-3-2-2-0-touch-recovery-t3813317
Joe's big improvement is a usable 'mtp', ie. access that thumb drive.
Also puts the vibration back in to the key press.
First if you r seeing weired letters in twrp like xdjdhdhdhd folders. Then go to fastboot mode flash newest twrp. Img then ij recovery first flash your liquid remix furst, then flash twrp installer zip niw reboot to recovery.
Now factory reset your phone.
Now if you have oos backup. Then restore everything except system.
And then restore system alone at last now reboot it will work.
your gonna need the flashable oos 5.1x which is one here
https://forum.xda-developers.com/oneplus-6/how-to/oneplus-6-mirrors-official-oxygen-os-t3792244
fastboot to twrp
abd push the stock.zip to the phone <-assuming you know this.
and flash it from twrp.
reboot
fastboot twrp again and flash twrp.
this is where decryption comes in handy
Restoring backups with twrp will fail almost all the time. I've yet to do a successful restore and I've tried every method. You're gonna have to flash back to stock OOS and start over.
If anyone has successfully restored more than one backup then I would start a new thread with the exact method you used.
That worked.
I still wonder why not to restore system.
If I take a nandroid backup should one backup
system or system image, data or data image ?
I was trying a new rom the Resurection Remix V6.2.0 Android 8.1.0. i wanted to go back to my TWRP Backup of OOS 5.11 . I wiped data/cache/System . Tried to restore rom . it restored successfully but i didnt do wipe data thing. when i tried to reboot twrp blu, the recovery was lost. then i had to fastboot boot reovery. and lot of wierd folders were created on my phone internal memory. All data lost.
i had to flash the full 5.11 stock zip via twrp. tried to reboot again lost in bootloop. Switched back to stock recovery and make a factory reset then it booted.
switched off the phone back to Blu spark TWRP. again wipe data cache and system. Then restore the TWRP Backup previously double saved on a usb drive. This Time it restored successfully and booted as well fine.
i think i should have made a factory reset or format data before restoring from A Lineage OS Rom OS to OOS TWRP Backup
thats what made the whole internal drive mess and to be formatted as well
My Question is it only important to format data and then restore twrp or also backup and make restore of system.img of OOS backup as well

Categories

Resources