twrp issue - Samsung Galaxy S7 Questions and Answers

Follow up from magisk thread
Twrp data mount issue
https://forum.xda-developers.com/ap...v1-universal-systemless-t3432382/post78395499

Did you do a factory wipe after installing TWRP?

Beanvee7 said:
Did you do a factory wipe after installing TWRP?
Click to expand...
Click to collapse
No, I didn't. Is that a necessity?

Because of encryption TWRP can't read the data partition until you've wiped in TWRP using the wipe method that makes you type in 'yes' to wipe.
After wipe TWRP can then read it. Afaik this is the only work around, you can flash things to turn off encryption, but iirc it doesn't undo encryption already there.

Are you using latest twrp version 3.2.3.0
Did you flash version 6 of the no verity opt zip
And I am going to assume that you formated data and not wipe data partition.

Are you running Oreo?
Because Samsung added quota support in their Oreo update for the /data partition. The official TWRP version isn't able to deal with the quota support yet, so you can't mount /data.
You should check out this post of Tkkg1994:
https://forum.xda-developers.com/ga...rp-herolte-t3333770/post77296102#post77296102
Tkkg1994 added quota support in that TWRP version he links in his post.
Don't use the official or twrp version in the 1st post, because those don't have the quota support yet.

@haro_h yes he is running on Oreo. Didn't know twrp for the s7 hasn't been updated for Oreo and the quota support many thanks.
@kiwigi follow the link provided by @haro_h it should take you straight to the post and at the bottom the download links. You can use either method (Odin or twrp ) it will overwrite current twrp.
Once done you will have to repeat the steps you have done already ie::
Format data
Flash no verity opt zip
Flash rmm state bypass zip

spawnlives said:
Are you using latest twrp version 3.2.3.0
Did you flash version 6 of the no verity opt zip
And I am going to assume that you formated data and not wipe data partition.
Click to expand...
Click to collapse
Thanks @spawnlives
also
thanks to @haro_h
and thanks @Beanvee7
That is exactly how I did it.
So a little change to what you mentioned here
1. Back apps and data
2. Unlock bootloader
3. Flash twrp with Odin - use latest version of twrp
4. Boot straight into twrp and FORMAT data.
5. When finished the format using twrp menu reboot back into twrp
At this stage if you reboot back into system it will re-encrypt your phone.
6. Flash no verity opt encrypt zip - this will prevent phone from re encrypting when booting into system.
https://build.nethunter.com/android-...y-opt-encrypt/
Flash RMM-State_Bypass_v2.zip(The only such file I found here)
7. Flash magisk
8. Reboot into system

kiwigi said:
Thanks @spawnlives
also
thanks to @haro_h
and thanks @Beanvee7
That is exactly how I did it.
So a little change to what you mentioned here
1. Back apps and data
2. Unlock bootloader
3. Flash twrp with Odin - use latest version of twrp
4. Boot straight into twrp and FORMAT data.
5. When finished the format using twrp menu reboot back into twrp
At this stage if you reboot back into system it will re-encrypt your phone.
6. Flash no verity opt encrypt zip - this will prevent phone from re encrypting when booting into system.
https://build.nethunter.com/android-...y-opt-encrypt/
Flash RMM-State_Bypass_v2.zip(The only such file I found here)
7. Flash magisk
8. Reboot into system
Click to expand...
Click to collapse
Glad it is all working.
It should be noted the rmm state bypass zip is the same version ( 1 or 2 ) doesn't matter where you download it from same as no verity zip.
Also you should.keep the no verity zip and rmm state bypass zip on your SD card or PC as I think you mentioned that you are moving and planning on re-,flashing your rom so you will have to redo all the steps again.
FYI all the rmm state zip does is modify a value in the build prop file and delete a system folder/file which prevents relocking of your bootloader when restarting your phone.

Related

Need MHA-L29 recovery.img

Unlocked bootloader and tried to with SuperSU but no boot. Having a hard time to go back to stock but need to find stock recovery for newest FW C567B190. I could not boot into TWRP only flash it so I couldn't make a backup. I just was able to get into the wifi restore screen and it downloads the 2.4gb image and installs but then said I have serious errors and recommended a factory restore, did it but same error. I did make a backup of all the other partitions so I hope to be able to get something going. New here and all this was certainly easier on my 6P and OP3. Thanks for the help.
rzracer2 said:
Unlocked bootloader and tried to with SuperSU but no boot. Having a hard time to go back to stock but need to find stock recovery for newest FW C567B190. I could not boot into TWRP only flash it so I couldn't make a backup. I just was able to get into the wifi restore screen and it downloads the 2.4gb image and installs but then said I have serious errors and recommended a factory restore, did it but same error. I did make a backup of all the other partitions so I hope to be able to get something going. New here and all this was certainly easier on my 6P and OP3. Thanks for the help.
Click to expand...
Click to collapse
Which SuperSU did you try? The only official working one is SuperSU 2.82 SR1, the others fail to install.
And unless you decrypted (Wipe - 'Format Data' button in TWRP) SuperSU will remove the encryption flag in fstab in ramdisk... That means you'll boot but stay encrypted, which leads to a bootloop.
You could try flashing this stock boot image for C567B190 in TWRP (Install - Install Image - select 'boot' partition): https://mega.nz/#!cw01zCCS!AX3wKw0V7pbIYC79Ny6OJ5CTuyxq-xA1ibltLMIRRZQ
Then flash this SuperSU (It's to stay encrypted): https://mega.nz/#!18FW1QTQ!3DCA3KrIUSRqEu4L-expci4HcKtk6F25fE1u6ecJV9Q
If that fails, here's stock recovery for C567B190: https://mega.nz/#!hgsEhBiC!Jf2Utp768UIS0N1-3jhPeoN0qaW_TlFsFf5uN9vKLEs
Recovery needs to be flashed with fastboot in download mode.
Thanks for the information Stockholm! After the second wifi recovery download it booted fine but did relock the bootloader. I did use 2.82 Sr1 but didn't format data which as you stated caused a bootloop. Might give it another try but I might just return it. Not happy with the stock firmware so I need to spend some time and see if there is a ROM available proper smartlock, raise to wake would be nice as it even works on my S8 with Glipse Notifications but not on the Mate. Thanks again!
ante0 said:
Which SuperSU did you try? The only official working one is SuperSU 2.82 SR1, the others fail to install.
And unless you decrypted (Wipe - 'Format Data' button in TWRP) SuperSU will remove the encryption flag in fstab in ramdisk... That means you'll boot but stay encrypted, which leads to a bootloop.
You could try flashing this stock boot image for C567B190 in TWRP (Install - Install Image - select 'boot' partition): https://mega.nz/#!cw01zCCS!AX3wKw0V7pbIYC79Ny6OJ5CTuyxq-xA1ibltLMIRRZQ
Then flash this SuperSU (It's to stay encrypted): https://mega.nz/#!18FW1QTQ!3DCA3KrIUSRqEu4L-expci4HcKtk6F25fE1u6ecJV9Q
If that fails, here's stock recovery for C567B190: https://mega.nz/#!hgsEhBiC!Jf2Utp768UIS0N1-3jhPeoN0qaW_TlFsFf5uN9vKLEs
Recovery needs to be flashed with fastboot in download mode.
Click to expand...
Click to collapse

How to Restore backup || TWRP

Greetings,
after restoring back up from official TWRP the device soft-bricked like our friend here
https://forum.xda-developers.com/oneplus-6/help/soft-brick-restoring-backup-twrp-t3805112
the device won't even boot to fastboot from hardware button but from adb on recovery mode which hang on twrp logo screen.
what I saw on log is that /system partition structure need cleaning (and can not be mounted)
my backup contains all partition.
so my steps to restore the backup
boot to recovery
from PC into CMD "adb reboot bootloader"
wait until boot to bootloader (fastboot)
boot temporary into twrp "fastboot boot twrp.img" make sure you have twrp img
restore all partition except /system
then restore /system alone
reboot to system
everything's works like charm
I know it seems hideous but this is how I fix it ( and I can confirm I've done it twice)
:good:
UPDATED:
After some testing the problem only occurs when i take back up for all partitions which isn't mandatory, but when i take back for (system, boot, data) which is enough for working backup and the restoring process is flawless
I did not disable security (PIN code) and restoring was successful
Short answer:
Only take backup for data, system, boot
R1skNt said:
Greetings,
after restoring back up from official TWRP the device soft-bricked like our friend here
https://forum.xda-developers.com/oneplus-6/help/soft-brick-restoring-backup-twrp-t3805112
the device won't even boot to fastboot from hardware button but from adb on recovery mode which hang on twrp logo screen.
what I saw on log is that /system partition structure need cleaning (and can not be mounted)
my backup contains all partition.
so my steps to restore the backup
boot to recovery
from PC into CMD "adb reboot bootloader"
wait until boot to bootloader (fastboot)
boot temporary into twrp "fastboot boot twrp.img" make sure you have twrp img
restore all partition except /system
then restore /system alone
reboot to system
everything's works like charm
I know it seems hideous but this is how I fix it ( and I can confirm I've done it twice)
:good:
Click to expand...
Click to collapse
Sounds great, but it doesn't work for me. I posted the following comment in another thread:
----------------------------------
I'm having the same problem. I simply cannot restore a TWRP backup. It always produces an error 255.
No, I do not have any "999" folder/files, nor do I have any lockscreen security. I also do not have parallel apps or anything involving multi-user.
I'm extremely experienced at flashing ROMs, as well as performing Nandroids and restoring them.
Nothing I've done is working. As I said, I simply cannot restore the data partition. That's when I get the 255 error. System restores fine, but that's it.
Any ideas?
----------------------------------
Thank you,
Peter
R1skNt said:
Greetings,
after restoring back up from official TWRP the device soft-bricked like our friend here
https://forum.xda-developers.com/oneplus-6/help/soft-brick-restoring-backup-twrp-t3805112
the device won't even boot to fastboot from hardware button but from adb on recovery mode which hang on twrp logo screen.
what I saw on log is that /system partition structure need cleaning (and can not be mounted)
my backup contains all partition.
so my steps to restore the backup
boot to recovery
from PC into CMD "adb reboot bootloader"
wait until boot to bootloader (fastboot)
boot temporary into twrp "fastboot boot twrp.img" make sure you have twrp img
restore all partition except /system
then restore /system alone
reboot to system
everything's works like charm
I know it seems hideous but this is how I fix it ( and I can confirm I've done it twice)
:good:
Click to expand...
Click to collapse
What about security? Did you have to disable all security before the backup?
I did not disable security (PIN code) and restoring was successful.
R1skNt said:
I did not disable security (PIN code) and restoring was successful.
Click to expand...
Click to collapse
These are the backup settings that I am using. Can you please tell me if you use the same, or if not please share the ones you are using.
lollyjay said:
These are the backup settings that I am using. Can you please tell me if you use the same, or if not please share the ones you are using.
Click to expand...
Click to collapse
Please see the 1st post (update)
PeterGuru said:
Sounds great, but it doesn't work for me. I posted the following comment in another thread:
----------------------------------
I'm having the same problem. I simply cannot restore a TWRP backup. It always produces an error 255.
No, I do not have any "999" folder/files, nor do I have any lockscreen security. I also do not have parallel apps or anything involving multi-user.
I'm extremely experienced at flashing ROMs, as well as performing Nandroids and restoring them.
Nothing I've done is working. As I said, I simply cannot restore the data partition. That's when I get the 255 error. System restores fine, but that's it.
Any ideas?
----------------------------------
Thank you,
Peter
Click to expand...
Click to collapse
For what it's worth, I think I found a solution to why I couldn't restore the data partition. I can't explain why, but now it's working.
Previously, and historically, whenever I did a restore, I always wiped my device: system, data, boot.
This time; however, I did not wipe the device. I simply did the restore and everything worked. Therefore, the problem is somehow associated with the wipe.
Peter
I did a nanroid backup (boot, system, data only as per the instructions) of 5.1.8, rooted with magisk 16.6, ROM, installed lineage OS, than restored my backed up OOS ROM the restore process completed successfully but got stuck on boot logo, flashed magisk again along with the custom kernel but all to no joy, keeps bootlooping, however lineage restored fine and booted, any help be much appreciated, cheers.
joemossjr said:
You guys are crazy and I feel I need to answer your questions. So here we go. So just becuase there's multiple partitions doesn't mean you can dual boot or set up other things. So the way it works is the userdata partition is one partition. There are 2 system partitions for seamless updates two boot partitions for seamless and two firmware slots. In theory yes you can have two roms on both slots. Will they work? No. They will both use the same userdata partitions. So it will be incompatible.now you could in theory have lineage on one slot and oos on the other and if you ever want to go back just format userdata and fastboot --set-active=other to get to the other slot. But that doesn't really seem like a good idea. If you guys have other questions feel free to ask me!
Click to expand...
Click to collapse
This is from another thread here, my understanding is you have to format userdata partition, but please read it by self.
Bonito77 said:
This is from another thread here, my understanding is you have to format userdata partition, but please read it by self.
Click to expand...
Click to collapse
totally irrelevant to this thread, cheers.
"fastboot boot twrp.img
cannot load 'twrp.img': No such file or directory"
What is wrong?
bannannn said:
"fastboot boot twrp.img
cannot load 'twrp.img': No such file or directory"
What is wrong?
Click to expand...
Click to collapse
I assume you're in the directory twrp.img is in and are using the img file instead of the zip file? Also you renamed the img file to twrp.img?
after 6 hours of head banging . i stumbled across this thread. and i got my renovate backup. Since new to oneplus 6 have shifted from samsung S9+. The first post correctly resolved my headache. I have learned.
1. Only Backup sytem , data, boot other partitions of twrp restore needed. not need to restore others
2. Had to format the internal storage as it become fully corrupted with lot of folders with strange names
3. Had to re install full OOS rom zip then boot into sytem
4. reflash twrp via fastboot, install twrp offical .img from twrp.
5 NO WIPES( I think wiping system and then restoring vendor and other partitions was creating issues)
6 Only Restoring Boot , System, Data. and then straight away booting back phone to system worked perfect. didnt require to flash magisk
thanks a lot for this thread OP. :good:
i am an experienced flasher. but i guess to comeback to oxygen OS from other roms you have to install stock full OOS Rom again.
kingwicked said:
after 6 hours of head banging . i stumbled across this thread. and i got my renovate backup. Since new to oneplus 6 have shifted from samsung S9+. The first post correctly resolved my headache. I have learned.
1. Only Backup sytem , data, boot other partitions of twrp restore needed. not need to restore others
2. Had to format the internal storage as it become fully corrupted with lot of folders with strange names
3. Had to re install full OOS rom zip then boot into sytem
4. reflash twrp via fastboot, install twrp offical .img from twrp.
5 NO WIPES( I think wiping system and then restoring vendor and other partitions was creating issues)
6 Only Restoring Boot , System, Data. and then straight away booting back phone to system worked perfect. didnt require to flash magisk
thanks a lot for this thread OP. :good:
i am an experienced flasher. but i guess to comeback to oxygen OS from other roms you have to install stock full OOS Rom again.
Click to expand...
Click to collapse
I followed your guide. But I'm stuck at the boot animation...
RheinPirat said:
I followed your guide. But I'm stuck at the boot animation...
Click to expand...
Click to collapse
well i have found new method which works every time
if stuck in boot animation
1. install the version stock OOS e.g 6.0.2 of which u have backup as well. again oem unlock process
2. install twrp
3 . reboot twrp
4.instal verity for phone being always decrypted
5. install magisk
6. reboot into system once
if you still have twrp
6 reboot to twrp
8. restore ONLY Data from twrp backup of SAME rom.
9. install twrp
10 reboot twrp install verity zip and magisk
remember
both rom installed and backup have to be of same OS. for e.g OOS 6.0.2 stable. only same backup can be restored as they have same security patch date
if you have a backup of for example OOS 5.1.11 then only rest ore data on a 5.1.11 rom
and flash magisk after backup restoee if ur backup had magisk. otherwise you will be stuck in boot animation
if you made backup with pin see the main OOS guide it has instructions how to remove pin after twrp restore
from twrp
Dont do any wipes before or after restoring data from twrp only magisk with verity zip is required if you had root
i always use the twrp bluespark as i had issues with stock twrp
thia methodology has worked always for me
best of luck
kingwicked said:
well i have found new method which works every time
if stuck in boot animation
1. install the version stock OOS e.g 6.0.2 of which u have backup as well. again oem unlock process
2. install twrp
3 . reboot twrp
4.instal verity for phone being always decrypted
5. install magisk
6. reboot into system once
if you still have twrp
6 reboot to twrp
8. restore ONLY Data from twrp backup of SAME rom.
9. install twrp
10 reboot twrp install verity zip and magisk
remember
both rom installed and backup have to be of same OS. for e.g OOS 6.0.2 stable. only same backup can be restored as they have same security patch date
if you have a backup of for example OOS 5.1.11 then only rest ore data on a 5.1.11 rom
and flash magisk after backup restoee if ur backup had magisk. otherwise you will be stuck in boot animation
if you made backup with pin see the main OOS guide it has instructions how to remove pin after twrp restore
from twrp
Dont do any wipes before or after restoring data from twrp only magisk with verity zip is required if you had root
i always use the twrp bluespark as i had issues with stock twrp
thia methodology has worked always for me
best of luck
Click to expand...
Click to collapse
I was on 9.0.2
I restored the phone with the MSM tool and updated the ROM to 9.0.2 via manual system update like before.
Question:
Is it not possible to restore the whole system? Or only Data like you said under point 8?
Do I need verity? Because I think my phone is encrypted (flashed never a verity file)
Could I restore the whole system from a full TWRP (all partitions included) - only select data, system?
restoring system and other never worked for me. always failed. but only restoring data partition always worked
when you restore only data. your all apps. settings messages everything will restore even magisk modules.
im not sure about encrypted because. encrypted phone when restoring twrp messed up my whole internal memory. and i had no choice but to wipe it.
so there is no issue with no verity. as it helps not to scramble the internal memory of your device and you wull not loose any data or get stuck on qualcomm dump mode
but remember the steps to verity when installed on already used rom with data. you have to format data to remove encryption
only restoring data is the best option. you can try without no verity to restore i think may work but follow all options i mentioned
but i dont recommend to use with no verity.since using no verity i have never got to wipe my internal memory
I've bricked my device twice after trying to restore and always resorted to just a clean flash of stock using the MSMDownloadTool... wish I'd found this thread sooner as you just solved my third backup restore soft-brick!
I'll also remember to just backup system/data/boot going forward...
Thanks!
kingwicked said:
well i have found new method which works every time
if stuck in boot animation
1. install the version stock OOS e.g 6.0.2 of which u have backup as well. again oem unlock process
2. install twrp
3 . reboot twrp
4.instal verity for phone being always decrypted
5. install magisk
6. reboot into system once
if you still have twrp
6 reboot to twrp
8. restore ONLY Data from twrp backup of SAME rom.
9. install twrp
10 reboot twrp install verity zip and magisk
remember
both rom installed and backup have to be of same OS. for e.g OOS 6.0.2 stable. only same backup can be restored as they have same security patch date
if you have a backup of for example OOS 5.1.11 then only rest ore data on a 5.1.11 rom
and flash magisk after backup restoee if ur backup had magisk. otherwise you will be stuck in boot animation
if you made backup with pin see the main OOS guide it has instructions how to remove pin after twrp restore
from twrp
Dont do any wipes before or after restoring data from twrp only magisk with verity zip is required if you had root
i always use the twrp bluespark as i had issues with stock twrp
thia methodology has worked always for me
best of luck
Click to expand...
Click to collapse
Thanks buddy, It worked like a charm.
About the pin removal, as you siad there is a good tutorial in below link which can be used.
https://www.howtogeek.com/240657/how-to-fix-pin-errors-after-restoring-from-twrp-android-backups/
Thank you!!!
You saved my phone (and life).
I can confirm your procedure is working with my back up made on 10.3.2 using a usb c key.
I just restored the DATA. Nothing else!
Thank you so much!
kingwicked said:
well i have found new method which works every time
if stuck in boot animation
1. install the version stock OOS e.g 6.0.2 of which u have backup as well. again oem unlock process
2. install twrp
3 . reboot twrp
4.instal verity for phone being always decrypted
5. install magisk
6. reboot into system once
if you still have twrp
6 reboot to twrp
8. restore ONLY Data from twrp backup of SAME rom.
9. install twrp
10 reboot twrp install verity zip and magisk
remember
both rom installed and backup have to be of same OS. for e.g OOS 6.0.2 stable. only same backup can be restored as they have same security patch date
if you have a backup of for example OOS 5.1.11 then only rest ore data on a 5.1.11 rom
and flash magisk after backup restoee if ur backup had magisk. otherwise you will be stuck in boot animation
if you made backup with pin see the main OOS guide it has instructions how to remove pin after twrp restore
from twrp
Dont do any wipes before or after restoring data from twrp only magisk with verity zip is required if you had root
i always use the twrp bluespark as i had issues with stock twrp
thia methodology has worked always for me
best of luck
Click to expand...
Click to collapse

Stuck on bootloop TWRP without decryption, help.

Hey guys, so i had weird problem (status bar not visible after unlocking device) when updating my phone to 9.5.8. so i decided to flash the rom again to see if the issue goes away. I am rooted and unlocked and everything was working fine (apart from the status bar). I tried this method:
1. Downloaded the 9.5.8 update from Oxygen Updater (DONT REBOOT)
2. Went to Settings\System\System Update and click on the wheel on upper right corner.
3. Select Local Upgrade, then install the update (DONT REBOOT)
*DO NOT REBOOT after applying the update.
4. Launch Magisk, and click the first "install"
5. Choose the "Install to inactive slot (OTA)" option
6. Reboot once completed
On step 6 it failed, i rebooted directly into the Oneplus recovery and not TWRP. So i tried fastboot boot twrp.img and flash the installer. After that i rebooted the device and now it goes directly into twrp but without decryption, it wont ask for my PIN and i get the screen "Unmodified System Partition. Keep System Read only? Installing zips or performing adb operations may still modify the system partition." On the bottom i can "swipe to allow modifications", which i swipe to allow but i can't access any files on my phone, and that is my dead end. Help would be much appreciated.
I also tried flashing Magisk and also Magisk Uninstaller (uninmod wasn't found).
Also tried command "twrp decrypt password" in the Terminal and got "Failed to decrypt data"
sapalot said:
Hey guys, so i had weird problem (status bar not visible after unlocking device) when updating my phone to 9.5.8. so i decided to flash the rom again to see if the issue goes away. I am rooted and unlocked and everything was working fine (apart from the status bar). I tried this method:
1. Downloaded the 9.5.8 update from Oxygen Updater (DONT REBOOT)
2. Went to Settings\System\System Update and click on the wheel on upper right corner.
3. Select Local Upgrade, then install the update (DONT REBOOT)
*DO NOT REBOOT after applying the update.
4. Launch Magisk, and click the first "install"
5. Choose the "Install to inactive slot (OTA)" option
6. Reboot once completed
On step 6 it failed, i rebooted directly into the Oneplus recovery and not TWRP. So i tried fastboot boot twrp.img and flash the installer. After that i rebooted the device and now it goes directly into twrp but without decryption, it wont ask for my PIN and i get the screen "Unmodified System Partition. Keep System Read only? Installing zips or performing adb operations may still modify the system partition." On the bottom i can "swipe to allow modifications", which i swipe to allow but i can't access any files on my phone, and that is my dead end. Help would be much appreciated.
I also tried flashing Magisk and also Magisk Uninstaller (uninmod wasn't found).
Also tried command "twrp decrypt password" in the Terminal and got "Failed to decrypt data"
Click to expand...
Click to collapse
So to be clear: right now, you have access to twrp but not the data partition (twrp does not prompt you to decrypt), and when you reboot to system from, you are bounced back to twrp. Right?
reaper000 said:
So to be clear: right now, you have access to twrp but not the data partition (twrp does not prompt you to decrypt), and when you reboot to system from, you are bounced back to twrp. Right?
Click to expand...
Click to collapse
Yes, but i got frustrated and as i had done a Titanium Backup i just wiped everything on stock recovery and flashed the latest rom with twrp. Is there a clear instruction on how to update the rom when rooted? I just don't want it to happen again.
sapalot said:
Yes, but i got frustrated and as i had done a Titanium Backup i just wiped everything on stock recovery and flashed the latest rom with twrp. Is there a clear instruction on how to update the rom when rooted? I just don't want it to happen again.
Click to expand...
Click to collapse
Don't mess with stock recovery if you already have TWRP and Magisk aboard.
Here's how to update to 9.5.9 (or whatever) when it arrives:
- download your 3 zips: the latest full ota ROM, the latest Magisk, and the latest TWRP installer.
- boot to TWRP recovery
flash the ROM and TWRP installer
- reboot to TWRP recovery
flash Magisk
wipe dalvik
- reboot to system
There's a possibility after these steps and you're happily on the ROM, you might find that you're not rooted (it's more likely on a custom ROM than OOS). In which case you just reboot to recovery and flash Magisk, and then reboot to system. Done.
Discussion:
If you want a clean flash, you'd simply do a TWRP factory reset (standard wipe) instead of wiping dalvik.
Consider flashing both slots (A and B) whenever you update OOS, for two reasons. First, you don't have to keep track of which slot has which version of OOS should you flash a custom ROM or kernel with a specific version of OOS required as a base. The second reason is more compelling: the way the data partition changes encryption every update has obviated the reason for A/B slots, in that if newly updated B changes data encryption upon boot and then something happens, you cannot revert to A because A can't read the new data encryption. So the solution is to update both A and B at the same time so both slots use the same encryption and can both access the data partition.
Or like me, run the device decrypted (i. e. without forced encryption).
Good luck

I'm new to this and twrp keeps disappearing

Okay so this is my first device that I kept rooted (I'm a noob)
Every time I do an update and reinstall magisk and everything to keep root I lose my twrp installation, is this normal?
I use the tool all in one to install twrp and I make a point to make a twrp backup once a week.
- Flash OTA Update
If you are on slot A and flash a ROM / update, it goes to slot B
- Flash TWRP Installer zip
Keeps TWRP on both slots, patches boot.img
- Reboot to TWRP, not system
- Flash OTA Update again
This installs ROM to the other slot, now both slots are updated
- Flash TWRP installer zip again
Keeps TWRP on both slots, patches boot.img
- Flash Magisk
Patches the TWRP-patched ROM, allowing it to boot
- Wipe Dalvik
You can wipe data and dalvik instead for a clean flash
- Reboot to system
-------
The above process is the most sure-fire way to update and keep root. I'm assuming you're missing a step and losing TWRP in the process.
i.Design said:
- Flash OTA Update
If you are on slot A and flash a ROM / update, it goes to slot B
- Flash TWRP Installer zip
Keeps TWRP on both slots, patches boot.img
- Reboot to TWRP, not system
- Flash OTA Update again
This installs ROM to the other slot, now both slots are updated
- Flash TWRP installer zip again
Keeps TWRP on both slots, patches boot.img
- Flash Magisk
Patches the TWRP-patched ROM, allowing it to boot
- Wipe Dalvik
You can wipe data and dalvik instead for a clean flash
- Reboot to system
-------
The above process is the most sure-fire way to update and keep root. I'm assuming you're missing a step and losing TWRP in the process.
Click to expand...
Click to collapse
Now when I update do I need to reinstall custom kernels?
spart0n said:
Now when I update do I need to reinstall custom kernels?
Click to expand...
Click to collapse
Yes installing an update installs the stock kernel which is why you need to reinstall twrp and magisk.
i.Design said:
- Flash OTA Update
If you are on slot A and flash a ROM / update, it goes to slot B
- Flash TWRP Installer zip
Keeps TWRP on both slots, patches boot.img
- Reboot to TWRP, not system
- Flash OTA Update again
This installs ROM to the other slot, now both slots are updated
- Flash TWRP installer zip again
Keeps TWRP on both slots, patches boot.img
- Flash Magisk
Patches the TWRP-patched ROM, allowing it to boot
- Wipe Dalvik
You can wipe data and dalvik instead for a clean flash
- Reboot to system
-------
The above process is the most sure-fire way to update and keep root. I'm assuming you're missing a step and losing TWRP in the process.
Click to expand...
Click to collapse
This defeats the purpose of the A/B partition system. Also, the installation of the update, TWRP, and magisk can be done without booting into TWRP.
OP, there is a guide on how to do an OTA in the Guides section of XDA for this device

TWRP encrypted sdcard but I didn't have encryption on

What I did:
Wiped all but data
Flashed latest OOS
Rebooted and lost TWRP
Booted to fastboot and booted from TWRP
Flashed TWRP
Rebooted to TWRP
Now all the data is encrypted (gibberish names)
How can it be?
What can I do now? from what I read I just lost all of my data... How do I proceed?
Now I'm attempting to sideload the official ROM... maybe after flashing the ROM, OOS will be able to read the files (I never activated any encryption on my device)
Alonzzo2 said:
Now I'm attempting to sideload the official ROM... maybe after flashing the ROM, OOS will be able to read the files (I never activated any encryption on my device)
Click to expand...
Click to collapse
How I install OOS.
Boot twrp
Flash OOS 10.3.6
Flash TWRP installer zip
Flash finalize
Format data
Reboot system.
On AB partition devices which is everything made now recovery and boot image are in same place so you must always install twrp installer zip when you flash a rom to have twrp otherwise it gets taken away. Formatting data when doing a clean installation at the end before you reboot system will allow you to then see your sdcard files afterwards..
Sent from my OnePlus6T using XDA Labs

Categories

Resources