How to wipe phone with official twrp and magisk - OnePlus 6 Questions & Answers

Hey guys,
Right now I'm running latest 5.1.6 with magisk and official twrp.
Question: when I want to start from scratch, how can I wipe the phone properly without getting a bootloop or something. Do I have to wipe inside the Android system or do I have to boot up twrp recovery and use factory reset? Factory reset means all data will be wiped, do I have then to transfer twrp official installer and magisk zip again to the phone and flash them to start a fresh 5.1.6 rom on top of twrp official and magisk?
Thank you
Kind regards

Push

I'd recommend flashing full stock ROM. Thrn reboot to stock recovery and factory reset.
Then reflash twrp/magisk.

Just do a wipe in twrp and reflash the latest ota. A wipe won't erase your internal storage, so your installation files will still be there. (Remember you have to reinstall twrp after flashing an ota.)

So it's the same procedure when I want to downgrade from 5.1.8 to 5.1.7? Should I only do a factory reset in TWRP and then flash the flashable 5.1.7 full ota?

A factory reset will wipe all your files. Just wipe data in twrp.

Related

Bootloop after flashing TWRP and wiping data,cache and dalvik

I just want to start by saying that I know how to recover my phone from this but I do not understand why this is happening. I just want to flash back the official rom and then install twrp and do a "factory reset" but after wiping with TWRP my phone gets stuck in bootloop. Am I doing something wrong?
drgx96 said:
I just want to start by saying that I know how to recover my phone from this but I do not understand why this is happening. I just want to flash back the official rom and then install twrp and do a "factory reset" but after wiping with TWRP my phone gets stuck in bootloop. Am I doing something wrong?
Click to expand...
Click to collapse
In TWRP you did 'factory reset' there isn't that option so which partitions did you formated? If you formated system, then is no more OS on your phone so what you trying to turn? xD If you want flash stock then use newest Odin 3.12.7 and learn some guide how to flash stock depend from which version (f.e. 7.x) you're coming. The guides are on that forum.
rifek4 said:
In TWRP you did 'factory reset' there isn't that option so which partitions did you formated? If you formated system, then is no more OS on your phone so what you trying to turn? xD If you want flash stock then use newest Odin 3.12.7 and learn some guide how to flash stock depend from which version (f.e. 7.x) you're coming. The guides are on that forum.
Click to expand...
Click to collapse
It says in the title which partitions I formated (date, cache, dalvik). I know how to flash stock. I will explain again the exact steps I did:
1. Flashed official rom using Odin after having a custom one.
2. I started the phone to check that the rom works.
3. I flashed TWRP 3.1.1 using odin.
4.Wanted to "factory reset" using TWRP, so I wiped cache, dalvik and data partitions.
5.The phone starts in bootloop.
It looks like TWRP doesn't wipe the partitions as is should.
Is not possible to TWRP didn't wiped right partitions. Why you wanted to factory reset if you flashed stock and you got factory settings? Flash stock with Odin again...
You need flash latest SuperSU zip in TWRP to fix the bootloop issue
forumber2 said:
You need flash latest SuperSU zip in TWRP to fix the bootloop issue
Click to expand...
Click to collapse
Maybe that. Personally I never flashed stock in S6 xD
You have to flash the SU Binary after flashing TWRP, else you will face a bootloop
Magisk. No "SuperSU". Then always will be it resolve if be only "Flashed TWRP". (Odin versions doesn't be affect of a bootlops with a 5secs~)
i flashed twrp now stuck in bootloop, not sure how to flash super su now?
fiorezy said:
You have to flash the SU Binary after flashing TWRP, else you will face a bootloop
Click to expand...
Click to collapse
Problem can also be solved after flashing the latest version of Magisk.

wiping system on TWRP

hello all
I want a clean system install through TWRP but want to keep my apps and data
Is it safe to do the following :
1-boot into TWRP wipe system
2-boot to fastboot then install TWRP
3-boot into TWRP flash new system
4-flash TWRP zip then falsh magisk
Am I correct ? would I lose data if I do this ?
thanks
Dr.A said:
hello all
I want a clean system install through TWRP but want to keep my apps and data
Is it safe to do the following :
1-boot into TWRP wipe system
2-boot to fastboot then install TWRP
3-boot into TWRP flash new system
4-flash TWRP zip then falsh magisk
Am I correct ? would I lose data if I do this ?
thanks
Click to expand...
Click to collapse
You don't need to flash twrp.zip if you're going to flash custom rom i think... Only the flashing of official oos will restore stock recovery (correct me if i'm wrong)
If you are just flashing the system partition (system.img) then you will not lose twrp. If you are flashing the full official rom, you will lose twrp. On a custom rom you won't lose twrp either.
You will only lose data if unlocking the bootloader or relocking it. Also, if you fastboot flash-all using the fastboot zip on xda you will lose all data too. Obviously if you select wipe data in twrp you lose it there too.

Bootloop into TWRP no matter how many attempts to clean flash OOS 9.0.2

I was running lineage-16.0-20181203_184022-UNOFFICIAL-enchilada just fine with open gapps nano and Magisk 17.1.
I attempted to upgrade to lineage-16.0-20181208_183559-UNOFFICIAL-enchilada, but I ran into issues with gapps force closing.
I attempted to restore my TWRP nandroid backups, but the attempts at restoring them just put me in a bootloop into TWRP.
Therefore, I am attempting to get back to OOS 9.0.2, OnePlus6Oxygen_22_OTA_027_all_1810260000_d46787d2c9, with a clean flash, following the process:
Fastboot into TWRP with fastboot boot twrp-3.2.3-x_blu_spark_v9.86_op6.img
Wipe -> Advanced Wipe -> Cache, System, Data, Internal Storage
adb push OnePlus6Oxygen_22_OTA_027_all_1810260000_d46787d2c9.zip and twrp-3.2.3-x_blu_spark_v9.86_op6.zip
Install -> OOS 9.0.2 and then TWRP
Reboot into System
No matter how many times I try this, the first boot fails with a vibration from the phone and it reboots into the blu_spark TWRP.
I have also tried the above process from inside the installed TWRP instead of from a fastbooted TWRP. I have also tried the above process with lineage-16.0-20181203_184022-UNOFFICIAL-enchilada.zip instead of OOS.
What could possibly be wrong? Isn't this a completely clean install?
MaxRabbit said:
I was running lineage-16.0-20181203_184022-UNOFFICIAL-enchilada just fine with open gapps nano and Magisk 17.1.
I attempted to upgrade to lineage-16.0-20181208_183559-UNOFFICIAL-enchilada, but I ran into issues with gapps force closing.
I attempted to restore my TWRP nandroid backups, but the attempts at restoring them just put me in a bootloop into TWRP.
Therefore, I am attempting to get back to OOS 9.0.2, OnePlus6Oxygen_22_OTA_027_all_1810260000_d46787d2c9, with a clean flash, following the process:
Fastboot into TWRP with fastboot boot twrp-3.2.3-x_blu_spark_v9.86_op6.img
Wipe -> Advanced Wipe -> Cache, System, Data, Internal Storage
adb push OnePlus6Oxygen_22_OTA_027_all_1810260000_d46787d2c9.zip and twrp-3.2.3-x_blu_spark_v9.86_op6.zip
Install -> OOS 9.0.2 and then TWRP
Reboot into System
No matter how many times I try this, the first boot fails with a vibration from the phone and it reboots into the blu_spark TWRP.
I have also tried the above process from inside the installed TWRP instead of from a fastbooted TWRP. I have also tried the above process with lineage-16.0-20181203_184022-UNOFFICIAL-enchilada.zip instead of OOS.
What could possibly be wrong? Isn't this a completely clean install?
Click to expand...
Click to collapse
Try installing magisk too.
mikex8593 said:
Try installing magisk too.
Click to expand...
Click to collapse
Thanks for the suggestion. Tried installing magisk in between OOS and the TWRP, and then also tried installing OOS, TWRP, rebooting, and installing magisk. No luck either way.
Well, this was a nightmare. Finally fixed it by:
fastbooting into twrp
wiping everything in twrp
flashing oos 9.0.2
NOT installing twrp
bootlooping into oneplus recovery
clearing ALL data through oneplus recovery (after backing up via ADB)
reboot
phone booted up just fine
Wow. Never seen those particular steps mentioned.
After that, I was able to flash OOS 9.0.2 again, then flash lineage-16.0-20181203_184022-UNOFFICIAL-enchilada & TWRP, boot LOS, reboot into TWRP, wipe everything, flash lineage-16.0-20181203_184022-UNOFFICIAL-enchilada again, boot into LOS, reboot into TWRP, restore my system, data, and boot backups from TWRP, and I'm finally back up and running with a fully working backup.
MaxRabbit said:
Well, this was a nightmare. Finally fixed it by:
fastbooting into twrp
wiping everything in twrp
flashing oos 9.0.2
NOT installing twrp
bootlooping into oneplus recovery
clearing ALL data through oneplus recovery (after backing up via ADB)
reboot
phone booted up just fine
Wow. Never seen those particular steps mentioned.
After that, I was able to flash OOS 9.0.2 again, then flash lineage-16.0-20181203_184022-UNOFFICIAL-enchilada & TWRP, boot LOS, reboot into TWRP, wipe everything, flash lineage-16.0-20181203_184022-UNOFFICIAL-enchilada again, boot into LOS, reboot into TWRP, restore my system, data, and boot backups from TWRP, and I'm finally back up and running with a fully working backup.
Click to expand...
Click to collapse
this could have been done in twrp. all you had to do was format data
the correct way is this.
fastbooting into twrp
flashing oos 9.0.2
flashing twrp, to keep twrp.
format data.
install any mod you want, like root.
reboot
this is require only when going from aosp to oos again.
MrSteelX said:
this could have been done in twrp. all you had to do was format data
the correct way is this.
fastbooting into twrp
flashing oos 9.0.2
flashing twrp, to keep twrp.
format data.
install any mod you want, like root.
reboot
this is require only when going from aosp to oos again.
Click to expand...
Click to collapse
How come that would have worked, but wiping system and data and then installing OOS 9.0.2 doesn't? Shouldn't you end up at the same point either way, with a clean OOS 9.0.2 in system and wiped data?
Format is the answer.
MaxRabbit said:
How come that would have worked, but wiping system and data and then installing OOS 9.0.2 doesn't? Shouldn't you end up at the same point either way, with a clean OOS 9.0.2 in system and wiped data?
Click to expand...
Click to collapse
just simply flash oss9.0.2 two time using twrp then get hold of 9.0.2 boot img go back to twrp and the select flash image flash the image and let it boot.
if it works toss a thanks.
MaxRabbit said:
Well, this was a nightmare. Finally fixed it by:
fastbooting into twrp
wiping everything in twrp
flashing oos 9.0.2
NOT installing twrp
bootlooping into oneplus recovery
clearing ALL data through oneplus recovery (after backing up via ADB)
reboot
phone booted up just fine
Wow. Never seen those particular steps mentioned.
After that, I was able to flash OOS 9.0.2 again, then flash lineage-16.0-20181203_184022-UNOFFICIAL-enchilada & TWRP, boot LOS, reboot into TWRP, wipe everything, flash lineage-16.0-20181203_184022-UNOFFICIAL-enchilada again, boot into LOS, reboot into TWRP, restore my system, data, and boot backups from TWRP, and I'm finally back up and running with a fully working backup.
Click to expand...
Click to collapse
Thank you for this. I was trying to dirty flash 9.0.2 to fix a notification issue and ended up in the same situation as you. Format ended up fixing it. Only crappy part is I lost about all my text messages with my SO. Google said it has a 2mb backup for SMS so I'm hoping it got all 30k+ of it
MrSteelX said:
this could have been done in twrp. all you had to do was format data
the correct way is this.
fastbooting into twrp
flashing oos 9.0.2
flashing twrp, to keep twrp.
format data.
install any mod you want, like root.
reboot
this is require only when going from aosp to oos again.
Click to expand...
Click to collapse
Tried this and it ended up causing the exact same problem. The folks installing the new OB8/9 seems to be having similar issues. Not sure what's going on.
its because of security patch. 9.0.2 has nov sec patch, lineage you flashed has dec sec patch. i have experienced this in pixel rom. just flash lineage Nov build, then wipe data and system and flash OOS 9.0.2 and twrp.
do a clean flash
MaxRabbit said:
I was running lineage-16.0-20181203_184022-UNOFFICIAL-enchilada just fine with open gapps nano and Magisk 17.1.
I attempted to upgrade to lineage-16.0-20181208_183559-UNOFFICIAL-enchilada, but I ran into issues with gapps force closing.
I attempted to restore my TWRP nandroid backups, but the attempts at restoring them just put me in a bootloop into TWRP.
Therefore, I am attempting to get back to OOS 9.0.2, OnePlus6Oxygen_22_OTA_027_all_1810260000_d46787d2c9, with a clean flash, following the process:
Fastboot into TWRP with fastboot boot twrp-3.2.3-x_blu_spark_v9.86_op6.img
Wipe -> Advanced Wipe -> Cache, System, Data, Internal Storage
adb push OnePlus6Oxygen_22_OTA_027_all_1810260000_d46787d2c9.zip and twrp-3.2.3-x_blu_spark_v9.86_op6.zip
Install -> OOS 9.0.2 and then TWRP
Reboot into System
No matter how many times I try this, the first boot fails with a vibration from the phone and it reboots into the blu_spark TWRP.
I have also tried the above process from inside the installed TWRP instead of from a fastbooted TWRP. I have also tried the above process with lineage-16.0-20181203_184022-UNOFFICIAL-enchilada.zip instead of OOS.
What could possibly be wrong? Isn't this a completely clean install?
Click to expand...
Click to collapse
You know if all else fails you could always download the Qualcomm MSM tool and boot into Qualcomm mode (with the phone off hold vol down button for about 10-15 seconds and plug into computer), you won't see anything on the screen, load up the tool and it shall put u back to full stock. This will solve all and any sort of bricking which if you flash alot you will by default probably learn how to use
fastboot into twrp
Flash TWRP within twrp
Format all data.
Reboot recovery
transfer OOS
Flash OOS
Flash TWRP
Reboot recovery
Flash OOS
Flash TWRP
Reboot recovery
Flash kernel/magisk/etc
Reboot system.
I just want to tell you that I love you. The format data finally fixed this for me.
MrSteelX said:
this could have been done in twrp. all you had to do was format data
the correct way is this.
fastbooting into twrp
flashing oos 9.0.2
flashing twrp, to keep twrp.
format data.
install any mod you want, like root.
reboot
this is require only when going from aosp to oos again.
Click to expand...
Click to collapse

Full wipe, but without loosing TWRP?

Hi,
Wanna run pure LOS without Magisk and EdXposed. Have lost TWRP to many times, and had to flash stock in fastboot to be able to flash TWRP again.
Edit: Wipe system, dalvik and data, not format data.

Problems flashing Roms

heelo guys
im having a problems flashiing roms. i tryed Paranandroid, RR and crDroid...
after i flash them i get bootloop into TWRP. whac can i be doing wrong?
the steps i do are this:
flash ROM -Flash TWRP - REBOOT to TWRP - Flash Gapps - Flash Magisk - Then bootloop
can anyone please help me?
anyone? please?
first install OOS 10 on both slots (i have open beta 4)..than boot to OOS 10, not setup! Then boot TWRP and factory reset, not FORMAT DATA!!! Then reboot TWRP and install ROM, TWRP, reboot, install Gapps and Magisk (optional)
mcboums said:
first install OOS 10 on both slots (i have open beta 4)..than boot to OOS 10, not setup! Then boot TWRP and factory reset, not FORMAT DATA!!! Then reboot TWRP and install ROM, TWRP, reboot, install Gapps and Magisk (optional)
Click to expand...
Click to collapse
hello mate
and when i install Rom, do i need to install on both slots or i can have one has backup (its what i have been doing till now)?
and when i factory reset, what will i lose?
Well, it is difficult to say. Usually, every ROM has its thread, its instructions and its community that helps with problems related to installing that ROM.
It could be a few things:
1) I do not see any mention about wiping data. Usually you need to wipe data and wipe system partition in twrp before you install a new ROM. Maybe that is the issue. However, what you need to wipe is ROM specific.
2) Check prerequisites, what ROM version you need to be running before you flash. Sometimes that matters.
3) OnePlus 6 has these A/B slots that I do not fully understand. From what I have read, if you are running on slot A, update installs on slot B, and then you reboot to slot B and cycle continues. BUT DO NOT TRUST ME ON THIS. You should read yourself. Anyway, sometimes people recommend flashing both slots A and B. For some ROMs. For LineageOS, for example, that is not necessary.
oh, factory reset damn i would want to configure everything again
I think first.
You have to WIPE data, all. Factory wipe option.
Then boot into twrp
First, flash OOS, followed by TWRP
Reboot to Recovery using twrp itself.
And then again flash OOS and TWRP.
Reboot to recovery again (using the option in twrp itself)
Finally, then install your rom followed by gapps etc etc
Then it should work....
is there anyway to do this without factory reset?
no

Categories

Resources