Erase userdata. Unable to boot into any ROM except aicp ROM - OnePlus 5 Questions & Answers

Can anyone help. I performed a userdata erase and formatted the data partition. The problem is I can flash the ROMs but can't boot into it. It keeps coming back to twrp and does some check and reboots again to do the same thing again and again. I don't know what's wrong. The only ROM i can boot into is the AiCP Rom. I'm in need of a desperate help. Help me guys.

Since u erased userdata u decrypted ur device. If u wanna stay decrypted u need to flash no verity zip after rom and root method and gapps.

Cyclops Maran said:
Can anyone help. I performed a userdata erase and formatted the data partition. The problem is I can flash the ROMs but can't boot into it. It keeps coming back to twrp and does some check and reboots again to do the same thing again and again. I don't know what's wrong. The only ROM i can boot into is the AiCP Rom. I'm in need of a desperate help. Help me guys.
Click to expand...
Click to collapse
Solution found guys. Just follow the instructions on this thread. https://forum.xda-developers.com/oneplus-5/how-to/guide-how-to-flash-encrypted-roms-t3659126

Related

Can't get back to Stock ROM (what am I doing wrong?)

History of what I did:
I first installed the first small OTA Update to 4.5.1 then unlocked the Bootloader and flashed TWRP v46 from xdvs23. And made a full TWRP Backup and flashed Magisk afterwards.
Everything worked fine until I debloated the System and wanted to make the OTA Update to 4.5.2 (1,5 GB), which didn't work. After I flashed it, the phone didnt boot anymore. So I restored the TWRP Backup, which doesn't work either.
Current status:
TWRP v58 is flashed and works. I can flash ExcperienceOS from Jamal, which works fine, too. But flashing the OTA file doesn't work and restoring my backup wont work either -_-
I would really appreciate help to get back to an OTA updatable version of OxygenOS!
If you still have the TWRP installed I would download the full 4.5.2 zip (Listed elsewhere on these forums) and use adb sideload to install it, then proceed again from there.
djsubterrain said:
If you still have the TWRP installed I would download the full 4.5.2 zip (Listed elsewhere on these forums) and use adb sideload to install it, then proceed again from there.
Click to expand...
Click to collapse
I did that several times. It doesn't work sadly... I get into a bootloop
You didn't erase your userdata partition by mistake did you? You could try going into fastboot mode and use the command:
fastboot format userdata
Obviously this will wipe the userdata partition but the phone is acting like there's no userdata partition anyway
djsubterrain said:
You didn't erase your userdata partition by mistake did you? You could try going into fastboot mode and use the command:
fastboot format userdata
Obviously this will wipe the userdata partition but the phone is acting like there's no userdata partition anyway
Click to expand...
Click to collapse
I might have, I will try that, thanks
Or just wipe everything, flash stock recovery, and flash Full OxygenOS zip.
https://forum.xda-developers.com/showpost.php?p=72799046&postcount=2
I formated the userdata and flashed the .zip from the link, but I still get a bootloop...
I still don't understand what I am doing wrong...
How about trying to wipe everything from wipe menu except internal storage and then flash the oos zip followed by lazy flasher zip from here - bit.ly/lazyflasher
If this doesn't work then try changing to a different version of TWRP!
Casual_Max said:
I formated the userdata and flashed the .zip from the link, but I still get a bootloop...
I still don't understand what I am doing wrong...
Click to expand...
Click to collapse
You didn't do these steps wrong by any chance?
Steps To Disable Forced Encryption i.e, Decrypt Data
1. At first time when you open twrp, it will ask you to allow system modification.
2. Allow it and then flash the no-verity-opt-encrypt.zip file .
3. Then Go to Wipe-->Format Data.
4. Type Yes to confirm wiping of Internal Storage.
5. Now you have decrypted the data sucessfully.
Note: Dont try to restore the nanodroid backup which you have taken before. It may end in bootloop.
Click to expand...
Click to collapse
From here:
https://forum.xda-developers.com/on...der-intall-t3626122/post72777899#post72777899
ok, there I see what caused my first bootloop. Thanks
But why doesn't flashing the Stock ROM .ZIP work on an wiped (fastboot format userdata) phone? What else do I have to do?
EDIT:
*** solved ***
I failed hard. Luckily the OnePlus Support is excellent and was able to fix my issue with a remote session using their official tools. The Phone and I are both happy again.
Thanks for all the help, though. I learned quite a lot while dealing with this issue. It's a very kind and nice community here

How to (re) encrypt?

I had some complex issues flashing some roms and ended up having to format userdata. Now I am unencrypted and I have not been able to get the stock rom (from the official OTA zip) to boot. I was able to get all 3 of the custom OOS roms in the development section to boot, however when i go into settings and start encryption the green android logo flashes on the screen and the device does a hot reboot without starting encryption. I have tried countless things to boot the stock rom and/or get encryption to work including flashing the stock recovery on a custom rom, and the stock recovery asks for a pattern and mine doesn't work. I am totally out of ideas so if anyone has any please help.
solved: i previously did fastboot format userdata and it didn't work. I just did fastboot format userdata, system, and cache and the full ota zip installed, the security settings say it's encrypted, and i was able to decrypt with the stock recovery. Time to flash twrp and break more stuff!
Encryption
I believe the phone encrypts when you put a screen lock on.
I put a pin on mine booted in to recovery and it was encrypted, rebooted phone, removed pin, rebooted recovery everything back to normal.
hibby50 said:
solved: i previously did fastboot format userdata and it didn't work. I just did fastboot format userdata, system, and cache and the full ota zip installed, the security settings say it's encrypted, and i was able to decrypt with the stock recovery. Time to flash twrp and break more stuff!
Click to expand...
Click to collapse
Flashing stock boot.img in bootloader mode should encrypt the phone too.
gee2012 said:
Flashing stock boot.img in bootloader mode should encrypt the phone too.
Click to expand...
Click to collapse
Where or how can one extract/get the stock boot.img?
going to twrp wipe Then format data and typing yes will re-encrypt the device
Watch this
hibby50 said:
solved: i previously did fastboot format userdata and it didn't work. I just did fastboot format userdata, system, and cache and the full ota zip installed, the security settings say it's encrypted, and i was able to decrypt with the stock recovery. Time to flash twrp and break more stuff!
Click to expand...
Click to collapse
Thanks for sharing your solution. I found myself in this precarious position today. Solved with fastboot format... Thanks!

[Question] How to restore TWRP backup of stock 8.0 ROM, after flashing 8.1 ROM

Before going into the subject, I'll say that I have tried to seach this matter in XDA and Google, but nothing showed up.
Okay, so my matter is that I can't restore my backup of stock rom(8.0) after I flash a 8.1 rom. I've backuped with official TWRP "recovery-3.2.1-2-oreo.img".
My procedures are :
back up stock 8.0(system, data, cache, efs) with official TWRP "recovery-3.2.1-2-oreo.img"
flash oreo rom(with wiping internel, data, system, cache) and boot it fine.
restore my stock backup with same TWRP
boot system
The results are :
Goes past boot logo
Boot animation('android one' with colors sliding) shows up
and... just infinite loop of boot animation.
The ROM I used is RR.
I think the main problem is related with encryption.... Just my thought, tho.
So what I'm asking is :
1. If you face the same problem as me?
2. If you aren't and you restore goes fine, please tell me your procedures including ROM used and TWRP used.
3. Whether it is safe to decrypt stock rom?
Thanks in advance!
You don't need to flash stock ROM again. You have a system image backup(system, data, cache, efs), right? Wipe data , system, cache if you are coming from any other ROM. Then reboot to bootloader. Boot into latest TWRP from Fastboot (don't flash). Then go to restore and restore the system image you had backed up. Don't restore efs if you haven't lost your IMEI.
I've done exactly as ypu told, but it doesn't boot...
Did you manage to restore without problem with your method?
Yes I was able to. No problem here.
What TWRP did you use? Also, what ROM have you flashed?
Used the latest TWRP by MohanCM for Oreo. I did it when I was on Lineage os and wanted to go to stock
@guy_infinity Okay, thanks for your answer! Gonna try out later, once more.
Hmmm.... Still didn't boot up.
I thought I had to do everything from the begining, but flashing stock with save userdata option rescued me.
P.S. does anyone know about the error E: recv error on uevent?
try flashing stock rom using mi flash and after flashing restore normally using latest twrp/deadman's without system image voila everything will be back
@arjunbalan1994 Big thanks for your suggestion! Will try that too later
Hi, did you solve your restore problem? I have the same w/ my Redmi Note 5 and stock Miui backup after flashing RR.
Thanks for your help
I was use 8.1 root and twrp recovery. Yesterday fastboot flash may rom and update 2nd may OTA
Don't understand : May rom is Miui rom?
And did you restore your miui rom 8.0 backup ith twpr after the fastboot flash stock?

When I wipe up in TWRP on this phone my data becomes encrypted

Hey XDA. I have a question, I just got this phone and I was wondering how to flash properly? On my old phone I would just wipe everything in twrp and flash a new ROM, but when I wipe in twrp on this phone all my files get encrypted including the ROM that I'm trying to flash on this OP6T, any help would be appreciated
TheTrueDarkMist said:
Hey XDA. I have a question, I just got this phone and I was wondering how to flash properly? On my old phone I would just wipe everything in twrp and flash a new ROM, but when I wipe in twrp on this phone all my files get encrypted including the ROM that I'm trying to flash on this OP6T, any help would be appreciated
Click to expand...
Click to collapse
Can't help you with the root but searching does help. Search a guy on YouTube name techibee he had a good video. But one plus has a backup so if you mess up one boot partition you have the other to correct easier. Basically a backup so your phone boots and not bricks
TheTrueDarkMist said:
Hey XDA. I have a question, I just got this phone and I was wondering how to flash properly? On my old phone I would just wipe everything in twrp and flash a new ROM, but when I wipe in twrp on this phone all my files get encrypted including the ROM that I'm trying to flash on this OP6T, any help would be appreciated
Click to expand...
Click to collapse
Boot on twrp
Flash ROM
Flash twrp installer
Reboot to twrp
Factory reset ( DON'T wipe system)
Flash magisk
Reboot to system

Why Stock Pie Rom won't boot in unencrypted phone

i want to know why stock rom stuck at bootanimation in unencrypted Mi A1.
actually i was wiped data for removing encryption in TWRP Recovery to flash PixelExperience Android 10 rom and then i flashed LineageOS 16 and its working fine but when i flashed Stock Pie rom from TWRP it stucks on bootanimation then i Erased Userdata with Fastboot cmd "fastboot erase userdata" and phone boot up but its get encrypted again.
so i just want to know can i use Stock Pie Rom without encryption or not?
if yes then how?
ranjodhricky said:
i want to know why stock rom stuck at bootanimation in unencrypted Mi A1.
actually i was wiped data for removing encryption in TWRP Recovery to flash PixelExperience Android 10 rom and then i flashed LineageOS 16 and its working fine but when i flashed Stock Pie rom from TWRP it stucks on bootanimation then i Erased Userdata with Fastboot cmd "fastboot erase userdata" and phone boot up but its get encrypted again.
so i just want to know can i use Stock Pie Rom without encryption or not?
if yes then how?
Click to expand...
Click to collapse
If coming from those ROMs, is a mandatory to do a Clean Install (wipe, system, data and dalvik).However Stock ROM will encrypt device automatically.
Don't know if there's something you could do with the help of Magisk to decrypt your data.
Uhm... just a question, why do you want to decrypt your device to use it with stock?
actually i hate copying my data from phone to pc then pc to phone so i just don't want to wipe my full data to try Android Q Roms but i have to wipe for Android Q but i don't want to full wipe for returning to stock only custom roms works but not stock without encrypting
Stock ROM has "forced encryption" defined in boot image. You can remove it with Magisk. But moving between different ROMs without data wipe can cause boot issues as data structures are different as well. Even if you would manage to boot up the phone, there is high probability of app crashes etc. This is why full data wipe is "mandatory" when moving to a different ROM.

Categories

Resources