Factory Reset and maintaining Root - Magisk

Can i factory reset my Samsung A8 (2018) phone witch is rooted and using Magisk v22
I've flashed TWRP "twrp-3.5.0_9-0-jackpotlte.img.tar" using Odin3_v3.13.3
also installed RMM_Bypass_v3_corsicanu.zip and no-verity-opt-encrypt-6.0.zip
Will my phone remain rooted after a factory reset ?
Should i reïnstall RMM_Bypass_v3_corsicanu.zip and no-verity-opt-encrypt-6.0.zip ?
(Prevent Prenormal KG/RMM State / disable dm-verity to prevent Boot Loop)

Succes !
I've wiped DATA / DALVIC and CACHE using TWRP
Rebooted into recovery, and since DATA was'nt empty i used the Format DATA option
Then i reinstalled RMM_Bypass_v3_corsicanu.zip, no-verity-opt-encrypt-6.0.zip and Magisk
(possible it is not needed, but wanted to be safe and prevent a Boot-loop or an RMM lock)
After a system reboot everything works fine

Related

OnePlus 3T Stuck in Bootloop

After attempting to root my phone and things going along well up to the stage where I flash DM Verity & SuperSU according to this guide after doing those two things my phone is stuck in a Bootloop. Running TWRP 3.0.3 beta 1 and my OOS version before this was 4.0.
Edit: Just as a note I have already cleared my cache with no luck.
Did you format data? Next to factory reset button I had that happen to me i formated data and cleared cache and data in advance settings. Maybe it helps you too
savage166 said:
Did you format data? Next to factory reset button I had that happen to me i formated data and cleared cache and data in advance settings. Maybe it helps you too
Click to expand...
Click to collapse
I did format data after flashing dm-verity and it wiped all of my storage leaving me with an empty /sdcard. After sideloading supersu.zip (not systemless) and flashing it got stuck in a bootloop.
You're not supposed to do dm-verity and supersu. It's one or the other. If you don't want root, use dm-verity otherwise use supersu. Supersu keeps you decrypted like dm-verity does.

TWRP issue

so i installed TWRP recovery on my N950F/FD model, i want to flash mods or ROMs from internal storage, but it always shows like it's not mounted or its empty and nothing in it
but external SD works perfectly
any solutions ?
After installing TWRP you need to wipe data to remove encryption, then reboot back into TWRP. Internal storage will then be mountable. If you are not flashing a custom rom or root at this time, flash no verity before booting to system (and rmm state fix if you have OEM lock issue).
In addition, if you are on Oreo, you need to use TWRP updated for Oreo by kairi_zeroblade.
shouren04 said:
After installing TWRP you need to wipe data to remove encryption, then reboot back into TWRP. Internal storage will then be mountable. If you are not flashing a custom rom or root at this time, flash no verity before booting to system (and rmm state fix if you have OEM lock issue).
In addition, if you are on Oreo, you need to use TWRP updated for Oreo by kairi_zeroblade.
Click to expand...
Click to collapse
well my phone is 6 months old so i persumed i had the OEM lock issue when i really don't know if it existed, as for the TWRP flashing, after first time flashing i wiped entire phone twice before i flashed custom ROM, and where can i find that latest TWRP by kairi ?
Warnahly said:
well my phone is 6 months old so i persumed i had the OEM lock issue when i really don't know if it existed, as for the TWRP flashing, after first time flashing i wiped entire phone twice before i flashed custom ROM, and where can i find that latest TWRP by kairi ?
Click to expand...
Click to collapse
Here you go:
https://github.com/zeroblade1984/samsung_exynos8895/releases/tag/TWRP_OREO
Flash in TWRP. In case you have never updated TWRP in TWRP before..... select Install, then select Install Image, choose the img file, be sure to flash to Recovery partition when promted, then reboot back to TWRP & see if internal storage is mountable.

Magisk bootloop from xposed

I have LLD-L31(C432) and a while ago I went through the process of unlocking bootloader and flashing magisk. I did this without custom recovery as it caused problems but it worked and I had magisk and root fully working. However, I think I tried to install a version of xposed that was incompatible with my os (EMUI 9). This caused bootloop every time I tried to boot into recovery(system with magisk).
I can still use the device but some apps can still see xposed and won't work. I can try to boot into the system with magisk but it loops - maybe because of xposed.
I have seen that you can flash xposed uninstaller, will this wipe data and will it work? Or is there a way to remove it and get magisk back without loss of data.
Alternatively (if this option results in a more stable magisk installation),could I flash twrp to recovery and then flash magisk to my system boot to have magisk permanently? and will this method wipe data?
Edit: I flashed twrp to recovery but when I boot to it, it just loads fastboot with reason bootloader 1 any help?
Thanks

Always Stuck in Fastboot

Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Platinum_Pyth0n said:
Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Click to expand...
Click to collapse
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
ergysramaj said:
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Click to expand...
Click to collapse
Yup, didn't work. Thank you for helping though.
Now that you have a clean stock fastboot rom flashed, flash twrp, wipe data(use that where you have to type YES), then flash your mix ROM. Don't wile system lol
Sent from my Redmi K20 Pro using Tapatalk
Robbo.5000 said:
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
Click to expand...
Click to collapse
Hey Robo.5000, we meet again.
A summary of what I have done so far: Installed Fastboot 10.3.3.0, booted into the ROM, then finished setting up the account. Tried to Flash TWRP (Mauro's & Abhishek's) builds, then a Mod on the Telegram group of Miui Mix suggested me to: Format Data, then do the Dalvik Cache, System, Cache, etc, then tried installing the ROM (MiuiMiX_2.2.0_raphael_9.11.7_v11-10_20191107.zip).While installing it tells me that my Phone is Raphaelin and not Raphael. I do not know what to do.
same here always end with fastboot screen when i try to flash a custom rom or root my device via magisk 20.1
device k20 pro 8gb/256 came with mi 9 t pro rom
really appreciated if any one can post step by step to flash cusom rom or root the device
pocophone f1 was my prev device it was easierto flash custom or root
i dont know what i miss
Do not wipe system.

Unable to install custom roms

Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
dev-DaT said:
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
Click to expand...
Click to collapse
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Robbo.5000 said:
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Click to expand...
Click to collapse
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... now iam stuck again on fastboot screen because i wiped + formatted everything.
Edit:
When i want to flash recovery it says "OKAY" but it is unable to boot:
Sending 'recovery' (65536 KB) OKAY [ 1.562s]
Writing 'recovery' OKAY [ 0.333s]
Finished. Total time: 1.989s
Sending 'boot.img' (65536 KB) OKAY [ 1.547s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
dev-DaT said:
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... If i wipe all data trough TWRP and then reboot, i don't have OS but i do reboot back into TWRP, because well, there is nothing else...
Click to expand...
Click to collapse
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Robbo.5000 said:
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Click to expand...
Click to collapse
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
dev-DaT said:
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
Click to expand...
Click to collapse
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Robbo.5000 said:
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Click to expand...
Click to collapse
Ok thanks a lot! So no need to wipe system partition after stock rom install. just wipe cache/dalvik/data, got it.
Most ROM install guides tell you to wipe /system when coming from stock rom. I guess this requirement has changed? or depends on what ROM you're coming from?
Use can use my guide
https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
it has how to flash roms, and fastboot fix. (which tells why the Recovery isn't staying)
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
I need help... The reason why I'm flashing custom rom is, when the latest update came MIUI 12.5 android 11, all sensors of my phone stopped working like (Gyroscope, accelerometer, proximity sensor) I tied to flash the rom by fastboot method but still the problem persists. because of that I unlocked bootloader and flashed twrp. After flashing custom rom when I tried to boot it, it stuck on booting screen and when I tried to reboot into recovey it is showing fastboot mode. I'm unable to boot into custom rom.
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
Bro I have one doubt, I installed pixel os successfully then I roll back into stock os(miui) with locking bootloader, the. Again I unlock bootloader successfully, but the problem is I am unable to install os, i tried wipe data, catch. But the stock rom was not removed. What can I do?
Using orange fox in resmi note 10 pro

Categories

Resources