[Q] TWRP on OP5 asks for password - OnePlus 5 Questions & Answers

I have a rooted OnePlus 5 on the latest beta and I'm trying to flash back to the latest stable OOS through TWRP. When TWRP starts, it asks for a decryption password which I never set -- I have a lockscreen pattern. I made the mistake of trying to flash with a pattern and face unlock. Is there a workaround for this? I tried to sideload another stable zip but for some reason I get an "System.ui has crashed" error. Can anyone help?

Try formatting data in twrp via wipe option.
Reboot in to recovery/
Then try flashing any ROM.
Sent from my OnePlus 5 using Tapatalk

smohanv said:
Try formatting data in twrp via wipe option.
Reboot in to recovery/
Then try flashing any ROM.
Click to expand...
Click to collapse
Yeah, that's what I eventually had to do. Thanks anyway

Related

[How-To] Restore OOS from Oreo 8.1 | Restore factory encryption | Re-lock bootloader

You need to do this if you've flashed an Oreo 8.1 ROM and find that you can't get back to OOS because...
The ROM can't read /data so it hangs on the boot animation or reboots to recovery, even on a clean flash.
TWRP won't recognize your PIN/password or "default_password".
You've tried re-formatting /data from TWRP several times and it doesn't solve your problem.
Here is how to get back to 100% stock and/or restore factory encryption, which is different than Oreo 8.1 encryption:
1. Back up /sdcard to your PC as it will be erased with all of your files, pictures, music, etc.
2. Flash the stock recovery from bootloader.
Code:
fastboot flash recovery [I]stock_recovery.img[/I]
Latest OOS official stock recovery
Latest OOS beta stock recovery
3. Restore system setting in recovery.
This step is necessary to restore factory formatting and encryption of /data.
If a password/PIN is set, click “I forgot my password.”
Boot into stock recovery. Once there, go to Wipe data and cache > Reset system setting and Erase everything(Music, pics, etc.).
Note: If you don't do the "Erase everything..." option, factory encryption will not be reset.
4. Boot TWRP from bootloader.
You could flash TWRP and reboot to recovery, but TWRP will get overwritten with the stock recovery when OOS boots anyway. It's faster just to boot TWRP from a command prompt. Use the command:
Code:
fastboot boot [I]twrp-recovery.img[/I]
I recommend using using:
[RECOVERY][dumpling] TWRP 3.2.1-0 for Oreo (8.0 and 8.1) by codeworkx
5. While in TWRP, move “OOS...ROM.zip” to the SD card.
In Windows File Explorer, copy OOS...ROM.zip to the device.
Alternately, you may use the following ADB command from a command prompt
Code:
adb push [I]OOS...ROM.zip[/I] /sdcard/
Since OOS is a very large file (1.6GB), this will take 5-10 minutes.
Latest OOS signed flashable zip
Latest OOS beta (Oreo) flashable zip
6. Flash OOS...ROM.zip from TWRP.
7. Reboot system.
Your device will be formatted, encrypted and loaded with the stock recovery and ROM as it came from the factory. You may need to find the OOS...ROM.zip you pushed to /sdcard and delete it from emulated storage (/storage/emulated) if you don't see it at /sdcard after booting the ROM.
8. Optional: To re-lock your your bootloader, follow these additional steps:
This can only be done from a factory-supplied OOS ROM (including Oreo) with no modifications or the phone will not boot!
Enable USB debugging under Developer options.
Reboot to bootloader.
Unlock the bootloader with the following command:
Code:
fastboot oem lock
Return to Developer options and turn off "OEM unlocking"
Thank you for the write up .. nicely done :good:
Sent from my OnePlus5T using XDA Labs
It gave me an error 1 in TWRP. I had to do the following:
1) Make sure the bootloader remains unlocked
2) Back your apps up in TitaniumBackup
3) Back your /sdcard partition up on your computer so you don't lose anything
4) Reflash stock recovery in the bootloader
5) Boot into stock recovery and hit "forgot password" when it asks for your lock code
6) Boot back into bootloader and reflash TWRP
7) Place stock OOS zip onto the /sdcard partition
8) While you're in TWRP, flash stock recovery through its image flasher then reboot into recovery
9) Flash stock OOS, reboot, and then mod however you want
Click to expand...
Click to collapse
blackknightavalon said:
It gave me an error 1 in TWRP. I had to do the following:
Click to expand...
Click to collapse
Will in 9th last step restoring from nandroid OB-1 work ?
It should I guess
Sent from my ONEPLUS A5010 using Tapatalk
Bump!
I made a big update to the OP today with more explanation, more detail and download links.
Thanks buddy, that tutorial worked perfectly!
The other way is to flash rollback image to Nougat in stock recovery.
https://goo.gl/YRyrt6
there are no other ways to revert back to stock OOS without affecting internal sd /sdcard ?
thanks for the guide above.
Ok I'm a bit Rusty. Flash from bootloader? Meaning adb? Then adb TWRP then boot to TWRP then flash stock room(s)?
Ippolito1971 said:
Ok I'm a bit Rusty. Flash from bootloader? Meaning adb? Then adb TWRP then boot to TWRP then flash stock room(s)?
Click to expand...
Click to collapse
Please do not quote the whole OP just to get someone's attention. A mention (@the Doctor) would suffice.
To answer your question, flash the stock recovery with the fastboot command:
Code:
fastboot flash recovery [I]stock_recovery.img[/I]
The only ADB command involved is "push" to get the ROM onto the sdcard in step 5.
Thx @the Doctor. My apologies.
Thanks for the writeup, I'll probably try soon and report back.
Thanks for this, may need it. Plan to flash DU 8.1 tomorrow. So you can't just restore an ob1 or ob2 nandroid from a custom ROM?
tcat007 said:
Thanks for this, may need it. Plan to flash DU 8.1 tomorrow. So you can't just restore an ob1 or ob2 nandroid from a custom ROM?
Click to expand...
Click to collapse
You can, but TWRP will not recognize your PIN or password while in OOS, so you'll have to set lockscreen security to none or swipe. Or you could do the procedure in the OP, then restore only data from your nandroid. You'll have to re-flash Magisk or any other mods after that.
I don't use a pin for backups or restores. Since I seem to have to format internal storage to get a custom ROM to boot, was just wondering if restore of oos nandroid works once on DU.
Sent from my OnePlus5T using XDA Labs
hello thanks for the guide just did this when i boot i cant connect to any wifi network thanks
How can I get my wifi back after reverting to 4.7.6? Ive tried EFS backup and everything possible but the only way to get wifi back is to flash an Oreo zip.
forty9er said:
hello thanks for the guide just did this when i boot i cant connect to any wifi network thanks
Click to expand...
Click to collapse
Did you restore to 4.7.6 or Oreo Beta 1/2?
Dazed No More said:
How can I get my wifi back after reverting to 4.7.6? Ive tried EFS backup and everything possible but the only way to get wifi back is to flash an Oreo zip.
Click to expand...
Click to collapse
Have you flashed OOS Oreo Beta? My theory is that the firmware won't downgrade back to OOS 4.7.6, but I'm not sure. I've only restored back to OOS OB1/2, and wifi has worked perfectly every time.
the Doctor said:
Did you restore to 4.7.6 or Oreo Beta 1/2?
Have you flashed OOS Oreo Beta? My theory is that the firmware won't downgrade back to OOS 4.7.6, but I'm not sure. I've only restored back to OOS OB1/2, and wifi has worked perfectly every time.
Click to expand...
Click to collapse
Flashing Oreo beta is the only way to get it back as myself and others have found in the thread that was started on the subject. I hadn't seen that initially when I posted in here.
I was hopeful that following your method to a T would get me my wifi back on 4.7.6 but it wasn't meant to be. Absolutely nothing I have tried in the last 24 hours has worked to get it working on 4.7.6 including multiple clean and dirty flashes of the full 4.7.6 zip, twrp, stock recovery, restoring multiple backups, restoring EFS, factory reset, wipes, etc.
You might want to add that to the OP that if you revert to 4.7.6 that wifi will not work.
Dazed No More said:
You might want to add that to the OP that if you revert to 4.7.6 that wifi will not work.
Click to expand...
Click to collapse
Thank you, and done. :good:

How to Flaash

Whenever I am trying to flash open Beta 7 with magisk and a kernel and then the No Verity zip , device boots with no with no signal and then I start setting up the device it hangs it hangs on the screen where it asks for the name of the device then it again reboots then this process goes on and I am unable to skip the test to the home screen my flashing procedure is as follows.
Clean flash open Beta 7 then reboot to recovery after clearing cache and Dalvik cache I flash magisk with a kernel zip flash or bluespark then the no Verity zip . Please help me out.
Aarju said:
Whenever I am trying to flash open Beta 7 with magisk and a kernel and then the No Verity zip , device boots with no with no signal and then I start setting up the device it hangs it hangs on the screen where it asks for the name of the device then it again reboots then this process goes on and I am unable to skip the test to the home screen my flashing procedure is as follows.
Clean flash open Beta 7 then reboot to recovery after clearing cache and Dalvik cache I flash magisk with a kernel zip flash or bluespark then the no Verity zip . Please help me out.
Click to expand...
Click to collapse
Are you using the latest twrp ? Also if decryption is not that important then try flashing Magisk after the 1st boot as it is known to sometimes cause bootloops and issues
Thesuprememonkey said:
Are you using the latest twrp ? Also if decryption is not that important then try flashing Magisk after the 1st boot as it is known to sometimes cause bootloops and issues
Click to expand...
Click to collapse
I am using blue spark latest recovery and decryption is important to me as it enhances the performance by some margin .By the way what's your set up ????
Thanks for your reply .
Aarju said:
Whenever I am trying to flash open Beta 7 with magisk and a kernel and then the No Verity zip , device boots with no with no signal and then I start setting up the device it hangs it hangs on the screen where it asks for the name of the device then it again reboots then this process goes on and I am unable to skip the test to the home screen my flashing procedure is as follows.
Clean flash open Beta 7 then reboot to recovery after clearing cache and Dalvik cache I flash magisk with a kernel zip flash or bluespark then the no Verity zip . Please help me out.
Click to expand...
Click to collapse
I have the same issue....
ELoTRIX said:
I have the same issue....
Click to expand...
Click to collapse
What to do now ..??
Aarju said:
What to do now ..??
Click to expand...
Click to collapse
I don't know... are you decrypted or encrypted?
ELoTRIX said:
I don't know... are you decrypted or encrypted?
Click to expand...
Click to collapse
I want to flash decrypted but can't.

Miui 10 Android Pie Beta is Released For Mi max 3

hi you can grab download link from here
https://www.xda-developers.com/android-pie-beta-xiaomi-mi-max-3/
google play store keeps stopping =/
Hi,
I do assume that if I install this, I will get a device that is ARB protected.
Can you confirm that ?
Regards.
Moirae said:
google play store keeps stopping =/
Click to expand...
Click to collapse
i think its china rom and because of that play service stops:/
i cant even flash it...
I think we have to download google apps from the mi store and change permissions for it to work.
Can someone send Bigota link for 8.11.27 OTA? Thanks
NexusPenguin said:
Hi,
I do assume that if I install this, I will get a device that is ARB protected.
Can you confirm that ?
Regards.
Click to expand...
Click to collapse
ARB yes
Has anyone used https://opengapps.org/ to install all Googly things with this ROM yet.
There is no download link
Ignore me I found it? How long does it take to boot? Used red wolf and was on miui.eu latest?
flashed using red wolf was ok but stuck at boot logo. the dots are moving but rom is not booting up
Im using this new pie rom for hours and its super smooth and fluid
full screen gestgures are now super fast and with no stutters
flash this rom and other official miui zip roms using nijel8 twrp recovery otherwise it will not boot
pejji said:
Im using this new pie rom for hours and its super smooth and fluid
full screen gestgures are now super fast and with no stutters
flash this rom and other official miui zip roms using nijel8 twrp recovery otherwise it will not boot
Click to expand...
Click to collapse
going to try this now lets hope you are right as i have tried everything else and various combinations to get this booting...........
it didnt boot so starting to think this is fake rom. i tried clean flash on miui.eu rom then flashed stock gobal and clean flashed again. used this recovery and same results. it sits on boot screen with the dots flashing and nothing else happens...........how long did yours take to boot?
shingers5 said:
going to try this now lets hope you are right as i have tried everything else and various combinations to get this booting...........
Click to expand...
Click to collapse
try it and if didnt boot here are my steps if i remember correctly :
-flash latest global developer fastboot rom with mi flash (flash all , be careful with locking bootloader accidentally )
-wait until first boot before phone setup and don't go through it
-reboot to fastboot mode and flash nijel twrp
-reboot directly to recovery
-wipe->factory reset
-flash 8.11.26 pie
-reboot system
Exatly as for me. Flashed with nigel TWRP, with format data before. Few issues but CN firmware... Google must be installed.
ok will do that now and report
i flashed latest global then tried to flash with that recovery but nothing.
i am now going to flash china dev latest and try again
---------- Post added at 07:31 PM ---------- Previous post was at 07:24 PM ----------
so to be clear
i am gonna flash dev global 8.11.23 via fastboot
then wait for it to get to 1st set up screen but not go through the setup process
will then flash that twrp you mentioned via fastboot
and flash the rom after factory reset
shingers5 said:
ok will do that now and report
i flashed latest global then tried to flash with that recovery but nothing.
i am now going to flash china dev latest and try again
---------- Post added at 07:31 PM ---------- Previous post was at 07:24 PM ----------
so to be clear
i am gonna flash dev global 8.11.23 via fastboot
then wait for it to get to 1st set up screen but not go through the setup process
will then flash that twrp you mentioned via fastboot
and flash the rom after factory reset
Click to expand...
Click to collapse
i did exactly what you said again just to be sure
and it booted up with no problem
- mi flash->global 8.11.23 -> clean all
- first boot until welcome screen
- power off-> volume down+power -> fastboot and run "fastboot flash recovery nijeltwrp.img"
- volume up+power to boot to recovery
(so far if decryption goes well twrp shuold not request decryption password and you could mount data and see internal storage contents in /sdcard with no problem in twrp file manager)
- wipe->factory reset
- install pie zip rom 8.11.26
- wipe dalvik+cache
- reboot system
it took about 4 or 5 minutes for me to boot
If I've gone straight from the latest stock China ROM to xiaomi.eu 10.0.0.6.0 and have since flashed the latest nijel TWRP - which is all working fine.
Can I simply flash to this pie release or do I need to have previously flashed one of the developer ROMs?
Guys, quick conformation, please as I hear conflicting reports about MIUI Pie and my TWRP...
Please, from experience, decryption works, right? How about formatting data with TWRP and boot to Pie? Is MIUI Pie able to encrypt fresh data partition? And if yes is TWRP able to decrypt it again?
Thank you, feedback is really appreciated so I know what needs to be done for full Pie compatibility!!!
eresen said:
has anyone used https://opengapps.org/ to install all googly things with this rom yet.
Click to expand...
Click to collapse
nijel8 said:
Guys, quick conformation, please as I hear conflicting reports about MIUI Pie and my TWRP...
Please, from experience, decryption works, right? How about formatting data with TWRP and boot to Pie? Is MIUI Pie able to encrypt fresh data partition? And if yes is TWRP able to decrypt it again?
Thank you, feedback is really appreciated so I know what needs to be done for full Pie compatibility!!!
Click to expand...
Click to collapse
You can't decrypt it anymore!
nijel8 said:
Guys, quick conformation, please as I hear conflicting reports about MIUI Pie and my TWRP...
Please, from experience, decryption works, right? How about formatting data with TWRP and boot to Pie? Is MIUI Pie able to encrypt fresh data partition? And if yes is TWRP able to decrypt it again?
Thank you, feedback is really appreciated so I know what needs to be done for full Pie compatibility!!!
Click to expand...
Click to collapse
first thanks again for your great work on this recovery
decryption was good with oreo 8.11.15 china rom but right after pie rom boots and rebooting to recovery, decryption fails
from there rebooting to recovery again doesn't change anything ... recovery asks for decryption password every time.
and cuz data partition is not mounted so recovery log will not be saved to internal memory to attach it here
after formatting data miui boots successfully and encrypts data again.setting up the phone and rebooting to recovery ... but same thing happens and decryption fails.

Phone stuck at Decryption unsuccessful :crying:

I am stuck at encryption failed when I flash stock oreo rom. I tried formatting data using twrp and flashed no encryption file as well but nothing works.:crying::crying::crying:
I just want to use the stock oreo rom again with root.
Pls help:crying:
Which ROM did you try and flash / install?
Try upgrading your TWRP to the latest version too.
jl10101 said:
Which ROM did you try and flash / install?
Try upgrading your TWRP to the latest version too.
Click to expand...
Click to collapse
I used partition dl mode to flash the stock oreo rom over 7.0 to keep the root. Then i flashed custom kernal for stock 8.0 but it didnt work. I have done the same procedure before and it has worked like a charm. But it keeps on giving the encrytion error when i try it now
Deadmeat03 said:
I used partition dl mode to flash the stock oreo rom over 7.0 to keep the root. Then i flashed custom kernal for stock 8.0 but it didnt work. I have done the same procedure before and it has worked like a charm. But it keeps on giving the encrytion error when i try it now
Click to expand...
Click to collapse
Odd. If I had to guess anything, it would be that not all the partitions were flashed when going from Nougat to Oreo.
I once flash a Nougat ROM from an Oreo ROM and I had the same encryption issue and lost everything.
That was the last time I would trust myself again and not do a backup.
Flash stock recovery from KDZ through patched LGUP & do a factory reset .
After stock recovery completes the wipe do a battery pull, flash TWRP via fastboot, format data, flash Kernel & Magisk & you should be back on track...
Prowler_gr said:
Flash stock recovery from KDZ through patched LGUP & do a factory reset .
After stock recovery completes the wipe do a battery pull, flash TWRP via fastboot, format data, flash Kernel & Magisk & you should be back on track...
Click to expand...
Click to collapse
I tried that as well. With stock recovery is says data is corrupted and doesn't do anything. I think it might be a problem with patched lg up because when i use normal lg up to flash oreo it works. But I cant root then.
I would try changing to 3.2.3-4 TWRP and then trying the procedure again. It seems that the 3.3.0 TWRP does not decrypt properly sometimes.
In the same boat as OP
scottyrick said:
I would try changing to 3.2.3-4 TWRP and then trying the procedure again. It seems that the 3.3.0 TWRP does not decrypt properly sometimes.
Click to expand...
Click to collapse
Hi
Looking for a way to keep TWRP and root ... any help appreciated
I've got a US996 with the same issue as the op. I have the latest TWRP 3.3.1-0. The phone was working fine until I upgraded twrp but I might have done a mistake resetting phone outside of twrp.
I can still get back into twrp but I haven't been able to install zip files without getting that decryption unsuccessful message when booting to system.
When getting back into TWRP using hardware buttons sometimes there is a prompt asking "keep system read only?" which I never chose and swipe to allow modification. I think this happens after
I pull the battery after getting the decryption unsuccessful message. There is a reset system that I could chose under the decryption unsuccessful message but I'm assuming that will make me lose twrp
...but if my phone is a us996 and is still
unlocked, would it matter if I did select it? Wouldn't I be able to reinstall twrp using adb again on a computer after Oreo is reinstalled?
To do Prowler_gr's suggestion which guide do I follow (sounds like I should do the second option)
"Flash stock recovery from KDZ through patched LGUP & do a factory reset .
After stock recovery completes the wipe do a battery pull, flash TWRP via fastboot, format data, flash Kernel & Magisk & you should be back on track... "
1-[GUIDE][UNBRICK] Patch LGUP to unlock features & unbrick V20 (Variant mismatch fix) to use lgup
or this guide
2-Ultimate guide to unbrick LG V20(Only Variants with .KDZ)[No OS Firmware Update Loop]
Thank you for any guidance on this...
There is a reset system that I could chose under the decryption unsuccessful message but I'm assuming that will make me lose twrp
Click to expand...
Click to collapse
Don't blame me if this goes wrong but I'm pretty much 100% certain that you mush press the rest button. This has happened to me a few times I'm sure. You won't loose twrp. Whatever resetting goes on in the background I don't think it's an actual Factory Reset.
Edit: Just to be clear you taking about a white screen with I think in dark blue or black text ENCRYPTION UNSUCCESSFUL and something like "reset phone" option directly under it, on the upper half of the screen?
Hi ezzony
Yes you are thinking of the right decryption unsuccessful page. I get it when booting to system
after installing Oreo and magisk 19 and having wiped everything (format data too). I will get the exact wording of it tonight
Thanks!
downgrade twrp i has same prob twrp 3.3.1 gives issues
ghet2rockuu said:
downgrade twrp i has same prob twrp 3.3.1 gives issues
Click to expand...
Click to collapse
Hi ghet2rockuu
I downgraded twrp and that got it working Thank You! see also Phoenix591 thread [Recovery][Unofficial for the moment]TWRP 3.3.1-0 : 2019-05-17 #625
Thank You !

Can't update my Redmi note 7 Indian variant

Sorry for my wrong English
I am currently on stock miui 10.3.6.0 .I have unlocked the bootloader,Installed TWRP recovery & rooted my device with magisk.Now i am unable to get the latest miui 10.3.7.0 update.!
Is there any way in whick i can update my device to latest miui rom?
If there please help me.
I am not finding any link which is helping me.
I downloaded latest miui recovery rom from here but unfortunately there is an error i.e flash all.bat is missing in xiaomiflashtool.Tried to flash the same rom through TWRP but there again is an error i.e compatibility zip missing.
a download link to miui 10.3.7.0 fastboot rom will be appreciated.please help
Thanks in advance
Look here: https://forum.xda-developers.com/redmi-note-7/help/ota-update-unlocked-rooted-device-t3963409/page2
Download the full recovery rom from here: https://xiaomifirmwareupdater.com/miui/
darhma said:
Look here: https://forum.xda-developers.com/redmi-note-7/help/ota-update-unlocked-rooted-device-t3963409/page2
Download the full recovery rom from here: https://xiaomifirmwareupdater.com/miui/
Click to expand...
Click to collapse
Thanks very much it helped. I have downloaded fastboot Rom and flashed it. I have another big issue,after flashing 10.3.7.0 update I got miui stock recovery Installed so I again.
Flashed twrp from fastboot.
Then format data.
Flash magisk.
And reboot.
But after successful reboot and setup when I choose to use pattern or pin or password as authentication.The device is not recognizing my correct pin or password.It says password incorrect. Please help I am not finding any solution for this.
What is the correct pattern to install recovery to successful magisk install.
Thanks
ChandrakantBelell said:
Thanks very much it helped. I have downloaded fastboot Rom and flashed it. I have another big issue,after flashing 10.3.7.0 update I got miui stock recovery Installed so I again.
Flashed twrp from fastboot.
Then format data.
Flash magisk.
And reboot.
But after successful reboot and setup when I choose to use pattern or pin or password as authentication.The device is not recognizing my correct pin or password.It says password incorrect. Please help I am not finding any solution for this.
What is the correct pattern to install recovery to successful magisk install.
Thanks
Click to expand...
Click to collapse
Why did you used fastboot rom instead of the recovery rom? This way you didn't update the rom but reinstalled it. So I think that the only way to get rid of the password request is to format data partition from recovery and then install magisk. Next time you have to update you have to download the RECOVERY rom, dirty flash it and flash magisk before rebooting to system.
darhma said:
Why did you used fastboot rom instead of the recovery rom? This way you didn't update the rom but reinstalled it. So I think that the only way to get rid of the password request is to format data partition from recovery and then install magisk. Next time you have to update you have to download the RECOVERY rom, dirty flash it and flash magisk before rebooting to system.
Click to expand...
Click to collapse
Ok thanku.So now i have to flash TWRP recovery.then boot into recovery wipe data then install magisk right? Is there any other zip to flash? What is vm verity zip? I have to flash that also?
ChandrakantBelell said:
Ok thanku.So now i have to flash TWRP recovery.then boot into recovery wipe data then install magisk right? Is there any other zip to flash? What is vm verity zip? I have to flash that also?
Click to expand...
Click to collapse
You have to flash twrp reboot to recovery if it asks for a password format data then install magisk. Vbmeta is needed just when you change rom from miui to aosp, so in this case you don't need it

Categories

Resources