Can't start any Custom Rom - Xiaomi Mi Mix 2S Questions & Answers

Hi there,
so I just wanted to install Pixel Expierence, because i wanted something new after Lineage. After flashing the right Version with wiping cache, data, system and dalvic, the phone is starting in twrp again. When I tried restoring my full backup, it reboots to TWRP again. I tried installing many different custom roms but nothings happens.
I did have Magisk and some Xposed stuff to have Snapchat etc. .
Can somebody help?

You need to perform a data format even after using Lineage as it encrypts the file system. (this will erase everything from your phone so you need to make a backup)

malimukk said:
You need to perform a data format even after using Lineage as it encrypts the file system. (this will erase everything from your phone so you need to make a backup)
Click to expand...
Click to collapse
Holy **** thank you. It works.

C0OUBOT said:
Holy **** thank you. It works.
Click to expand...
Click to collapse
You can use a remove forced encryption patch, or easier, just use orangefox recovery and remove forced encryption automatically. Then ofc you are not encrypted, but don't need to format data everytime when changing Rom.

Related

Restoring Nandroid beckup

Hi,
I have a general and simple question.
Last week I changed to paranoid rom and I want to return to 11S rom.
If I'm just restoring the nandroid backup and wipe catch and data it is as the same as fleshing it new?
thanks!
Not really,
Anyway, since you gonna wipe data anyway,
Why dont you just flash the whole new rom altogether, instead of nandroid rstore,
Wont take u longer either
It's just easier to do(no need to root again and open the bootloader and recovery) !
Anyway, when I'm installing new rom it will erase my internal storage or just the data/contacts etc.?
thanks!
otonieru said:
Not really,
Anyway, since you gonna wipe data anyway,
Why dont you just flash the whole new rom altogether, instead of nandroid rstore,
Wont take u longer either
Click to expand...
Click to collapse
There's no need to flash the ROM from scratch, a nandroid restore is perfectly fine.
efee123 said:
It's just easier to do(no need to root again and open the bootloader and recovery) !
Anyway, when I'm installing new rom it will erase my internal storage or just the data/contacts etc.?
thanks!
Click to expand...
Click to collapse
Just go ahead and restore your nandroid backup, it's exactly what they're designed for. The process should wipe the necessary partitions for you but I always wipe system, data, cache, and dalvik cache first anyway just to be sure.
And no, installing a ROM doesn't erase your user data unless you do it yourself. Erasing the data partition only erases apps, settings, etc.
Transmitted via Bacon
Great!! many thanks!

install twrp without losing data

Good evening, I saw some questions similar to this one in the forum, but none had my kind of doubt.
When a new ROM comes out for both S7 and S8, I install via ODIN using the CSC HOME option, so as not to lose the data.
The problem is in the installation of TWRP whenever I install the same by ODIN, when entering the app and trying to install example no-verity ja start I get the message that the DATA folder has been corrupted and can not be mounted.
This way it only works once again doing WIPE DATA, but then I lose my data and I have to start from scratch.
Is there a way this does not happen or will it always be like this when updating a ROM?
Thank you.
costafabiof said:
Good evening, I saw some questions similar to this one in the forum, but none had my kind of doubt.
When a new ROM comes out for both S7 and S8, I install via ODIN using the CSC HOME option, so as not to lose the data.
The problem is in the installation of TWRP whenever I install the same by ODIN, when entering the app and trying to install example no-verity ja start I get the message that the DATA folder has been corrupted and can not be mounted.
This way it only works once again doing WIPE DATA, but then I lose my data and I have to start from scratch.
Is there a way this does not happen or will it always be like this when updating a ROM?
Thank you.
Click to expand...
Click to collapse
Have you tried backing up data with twrp before you wipe and copying it to your pc so you can do a full wipe then put the backup onto the phone and flash It? You can back up data folder only
godkingofcanada said:
Have you tried backing up data with twrp before you wipe and copying it to your pc so you can do a full wipe then put the backup onto the phone and flash It? You can back up data folder only
Click to expand...
Click to collapse
Good afternoon,
Thanks for the reply.
So from what I mentioned above, I do a full backup as I normally do, and I also do a separate from the DATA folder.
Then I install the ROM and TWRP, will it corrupt the DATA folder so I restore only it? Would it be this?
If so, will it work out, in relation to being a ROM different from the other?
costafabiof said:
Good afternoon,
Thanks for the reply.
So from what I mentioned above, I do a full backup as I normally do, and I also do a separate from the DATA folder.
Then I install the ROM and TWRP, will it corrupt the DATA folder so I restore only it? Would it be this?
If so, will it work out, in relation to being a ROM different from the other?
Click to expand...
Click to collapse
The main rom info needed is contained in the system folder. The data folder is application data and whatnot. Reboot into twrp and use the backup option, then copy to pc. Do a full wipe of all, pit backup of data folder and new rom on internal or sd. Go into terp and flash the rom and data folder. Do not flaah system or it will overwrite the new rom. u will restore everything even if you don't have the APK installed in your system. It will return the data, you may need to reinstall the APK. Gmail for example will return will email addresses and messages, contacts and texts will come back to what they were at backup. You should back up modem and efs and boot as well and keep them safe. What I do is I get my phone set up fully, all apps I need and any games and data and then back it up again so any issues and I restore it to a fully functional state and don't need to install tons of things
godkingofcanada said:
The main rom info needed is contained in the system folder. The data folder is application data and whatnot. Reboot into twrp and use the backup option, then copy to pc. Do a full wipe of all, pit backup of data folder and new rom on internal or sd. Go into terp and flash the rom and data folder. Do not flaah system or it will overwrite the new rom. u will restore everything even if you don't have the APK installed in your system. It will return the data, you may need to reinstall the APK. Gmail for example will return will email addresses and messages, contacts and texts will come back to what they were at backup. You should back up modem and efs and boot as well and keep them safe. What I do is I get my phone set up fully, all apps I need and any games and data and then back it up again so any issues and I restore it to a fully functional state and don't need to install tons of things
Click to expand...
Click to collapse
Good afternoon,
I'm sorry for the text I'm using Google Translate.
I believe that I did not understand correctly, because the error happens in the following way, I install a ROM, reinstall the TWRP, yes yes it corrupts the folder DATA!
If I understood mistake, I apologize.
costafabiof said:
Good afternoon,
I'm sorry for the text I'm using Google Translate.
I believe that I did not understand correctly, because the error happens in the following way, I install a ROM, reinstall the TWRP, yes yes it corrupts the folder DATA!
If I understood mistake, I apologize.
Click to expand...
Click to collapse
Is it a custom Rom or a stock rom? Also you can backup via ADB
https://forum.xda-developers.com/an...oid-sdk-adb-backup-apps-t3467560#edit68829721
godkingofcanada said:
Is it a custom Rom or a stock rom? Also you can backup via ADB
https://forum.xda-developers.com/an...oid-sdk-adb-backup-apps-t3467560#edit68829721
Click to expand...
Click to collapse
The ROM I use is provided by Samsung, with no modifications, when I install it I use the CSC option the HOME file, in order not to lose the data, and of course, I do not lose anything I only update the ROM.
The problem is that I need to reinstall TWRP after installing ROM, and when I access TWRP it has corrupted the DATA folder.
costafabiof said:
The ROM I use is provided by Samsung, with no modifications, when I install it I use the CSC option the HOME file, in order not to lose the data, and of course, I do not lose anything I only update the ROM.
The problem is that I need to reinstall TWRP after installing ROM, and when I access TWRP it has corrupted the DATA folder.
Click to expand...
Click to collapse
You can extract the samsung md5 and repack it as a zip with superrs kitchen and then flash it from twrp. Just remove the recovery.img from the extracted files before zipping it up. Then you can simply flash twrp. Then the rom and not have to worry about the fact that you are stuck in a loop of being locked out because you don't need odin for the rom and it won't overwrite your recovery. If that's too much work try using a custom Rom from xda
godkingofcanada said:
You can extract the samsung md5 and repack it as a zip with superrs kitchen and then flash it from twrp. Just remove the recovery.img from the extracted files before zipping it up. Then you can simply flash twrp. Then the rom and not have to worry about the fact that you are stuck in a loop of being locked out because you don't need odin for the rom and it won't overwrite your recovery. If that's too much work try using a custom Rom from xda
Click to expand...
Click to collapse
Thank you very much for your patience. But I'm not clear, or you do not understand.
The problem is not in the ROM, but in the TWRP installation. If I install the ROM with the option CSC HOME I do not lose anything, everything is working correctly.
When I install TWRP it corrupts the DATA folder. The problem is there!
costafabiof said:
Thank you very much for your patience. But I'm not clear, or you do not understand.
The problem is not in the ROM, but in the TWRP installation. If I install the ROM with the option CSC HOME I do not lose anything, everything is working correctly.
When I install TWRP it corrupts the DATA folder. The problem is there!
Click to expand...
Click to collapse
I was saying to use a zip rom because then you can reflash the rom without reflashing twrp. So you flash twrp, it says data error and then you flash rom from zip, which reinstall system and data but will not copy stock recovery over twrp. So you will not have to reinstall it and be stuck. Or try a different version of twrp might also help. Stock firmware overwrites recovery and the rom. You need to modify it to remove recovery from the firmware, or use a custom Rom to stop it from erasing twrp
godkingofcanada said:
I was saying to use a zip rom because then you can reflash the rom without reflashing twrp. So you flash twrp, it says data error and then you flash rom from zip, which reinstall system and data but will not copy stock recovery over twrp. So you will not have to reinstall it and be stuck. Or try a different version of twrp might also help. Stock firmware overwrites recovery and the rom. You need to modify it to remove recovery from the firmware, or use a custom Rom to stop it from erasing twrp
Click to expand...
Click to collapse
I think I understood, more or less, since I translate for Google.
But assuming I want to use normal ROM, you have to back up the DATA folder before installing the ROM and after installing the new ROM and TWRP, restore only the DATA?
Thank you again.
Yes a new rom will overwrite data, you need a backup before. You should be able to connect your phone to a linux operating system and use adb to connect and back it up, if twrp will not let you take a back up.
godkingofcanada said:
Yes a new rom will overwrite data, you need a backup before. You should be able to connect your phone to a linux operating system and use adb to connect and back it up, if twrp will not let you take a back up.
Click to expand...
Click to collapse
In my case I can back up the DATA folder by TWRP. Is there doubt, if I back up the DATA folder in one version of Android and then restore in another version, will it be compatible?
costafabiof said:
In my case I can back up the DATA folder by TWRP. Is there doubt, if I back up the DATA folder in one version of Android and then restore in another version, will it be compatible?
Click to expand...
Click to collapse
Yes it will be, marshmallow and nougat are completely compatible from the boot loader up. You can also turn your stock samsung md5 into a zip file so you do not need odin to install it. You will be able to flash it from twrp
godkingofcanada said:
Yes it will be, marshmallow and nougat are completely compatible from the boot loader up. You can also turn your stock samsung md5 into a zip file so you do not need odin to install it. You will be able to flash it from twrp
Click to expand...
Click to collapse
Again thank you very much.
I'll test it and put it here.
Note: The Thank you button is not working.
costafabiof said:
Again thank you very much.
I'll test it and put it here.
Note: The Thank you button is not working.
Click to expand...
Click to collapse
You are welcome. If you want to have a stock zip file instead of the md5 use this link.
https://forum.xda-developers.com/showthread.php?t=2387941
...
costafabiof said:
...
Click to expand...
Click to collapse
Can you not read the website?
I know what you mean. Twrp can't access the data folder because it's encrypted. But you do have to format it to gain proper access. You have to copy the files out or back them up
godkingofcanada said:
Can you not read the website?
Click to expand...
Click to collapse
I believe that because I am a new user I can not exclude publications, I already tested in CHROME and IE. In the same way I can not give THANK YOU.

Do NOT Factory reset within OS with a patched boot.img

Just figured I'd give the heads up if you factory reset with a patched boot, for root or otherwise, it bootloops the phone twice and then goes to recovery. Flashing back stock boot img fixes it.
So don't be stupid like me and reset settings while rooted lol.
thank you for providing us this info, do u just have to go through the whole process again to TWRP/Root?
would it work, if u installed the stock unmodded boot image via twrp, do the factory reset/or clean install full OS zip, then install TWRPFix & Root all in the same session?
Bradl79 said:
thank you for providing us this info, do u just have to go through the whole process again to TWRP/Root?
would it work, if u installed the stock unmodded boot image via twrp, do the factory reset/or clean install full OS zip, then install TWRPFix & Root all in the same session?
Click to expand...
Click to collapse
I would imagine so, I haven't tried that yet. TWRP broke wifi for me, so I went back to stock recovery for now, maybe I did something wrong, but I'm gonna hold out until theres an official TWRP.
Chris123NT said:
I would imagine so, I haven't tried that yet. TWRP broke wifi for me, so I went back to stock recovery for now, maybe I did something wrong, but I'm gonna hold out until theres an official TWRP.
Click to expand...
Click to collapse
Did u follow post 70 step by step and used the files provided? Also when I did mine I deleted any security I had first.
Bradl79 said:
Did u follow post 70 step by step and used the files provided? Also when I did mine I deleted any security I had first.
Click to expand...
Click to collapse
Yeah, I did, so I dunno what happened, but when I booted into the OS after all the steps WiFi was boned.
If you have TWIRP why would you factory reset?
Why not just format /data?
Or does that also cause boot loops
virtyx said:
If you have TWIRP why would you factory reset?
Why not just format /data?
Or does that also cause boot loops
Click to expand...
Click to collapse
u don't want to format data, u want to wipe data, Format will erase sdcard. That is what the factory reset does anyway is wipe the caches and data.
Bradl79 said:
u don't want to format data, u want to wipe data, Format will erase sdcard. That is what the factory reset does anyway is wipe the caches and data.
Click to expand...
Click to collapse
if youre going to factory reset might aswell format data in twrp
i just thought maybe formatting data in twrp wouldnt cause the bootloop
virtyx said:
if youre going to factory reset might aswell format data in twrp
i just thought maybe formatting data in twrp wouldnt cause the bootloop
Click to expand...
Click to collapse
I could be wrong but I believe the OP might be talking about the root files and not twrp. Prior to twrp release, factory reset was the only option. As it happen to me also, after rooting device.
Plus Oneplus did not include a rom install zip in the stock recovery.
Damn, this AB partition setup really makes things a hassle
Bumping because other people are getting tripped up by this. Something in the factory reset process is not compatible with any sort of mods.
This happened to me as well. Not sure how I recovered, as I flashed via fast boot a bunch of image files. Is the boot image in the image files the latest stock boot image for 5.1.5?
For those of us rooted and no TWRP can someone link the stock boot.img?
Nevermind I found them on the ota page by titokhan
Bradl79 said:
Did u follow post 70 step by step and used the files provided? Also when I did mine I deleted any security I had first.
Click to expand...
Click to collapse
That could be what's causing it, I did wonder about that.
Chris123NT said:
That could be what's causing it, I did wonder about that.
Click to expand...
Click to collapse
try it and let us know
So before factory reset we need to make sure to reflash stock boot.img that will unroot the phone and only then do a factory reset..
So factory reset with twrp is working or not?
Anyone know where I might be able to get the stock boot.img? My phone is now toast and the referred thread should carry a health warning
Sorry for the noob question but does factory reset delete the media partition too?
itsadme said:
Sorry for the noob question but does factory reset delete the media partition too?
Click to expand...
Click to collapse
No, it does not.
this happened to me too. I was thinking of flashing the latest OxygenOS 5.1.11 with a clean install and I am rooted with TWRP. So what I did was reboot to recovery, wiped data, flashed OOS, then TWRP, reboot recovery and then flashed magisk. Then it got stuck in a TWRP bootloop.
Good thing I had a nandroid so i restored it and tried again.
This time I did the above steps but didn't wipe data. I booted successfully to 5.1.11 and i tried Factory Reset inside OxygenOS. Phone rebooted to TWRP and no data wipe was done. I did the Wipe Data within TWRP, same thing happened... bootloop to TWRP.
Nandroid restored again.
3rd attempt to dirty flash 5.1.11 but this time i didn't flash TWRP nor magisk and just rebooted system. I was back to stock. Then I tried factory reset again within OOS, it was successful so i had to do the whole TWRP and Magisk install again, and restored my apps via Titanium.
Moral of the story is (at least for me), Factory Reset within OOS or Wipe Data in TWRP both doesn't work. If i need to do a clean install, flash OOS then factory reset after rebooting to system, and then go through the whole TWRP and Magisk install process from scratch. Pain in arse really...:crying:

Unable to wipe system partition on Redmi Note 9 Pro

Hi everybody!
I'm trying to wipe the system partition on my redmi note 9 pro to install a costum rom ( Pixel Experience).
However I'm just not able to do that because there just isn't the option: when I try to wipe all data there isn't the system partition.
I tried both with Twrp and Orange Fox.
the error I encounter is unable to update logical partition "/system_ext".
Do you know how to fix this? Fortunately my device still works, I managed not to brick it somehow. But I would really like to install the Pixel Experience
Thank you for your time, hope you'll respond soon!
post screenshot of issue ...
psychotanc said:
Hi everybody!
I'm trying to wipe the system partition on my redmi note 9 pro to install a costum rom ( Pixel Experience).
However I'm just not able to do that because there just isn't the option: when I try to wipe all data there isn't the system partition.
I tried both with Twrp and Orange Fox.
the error I encounter is unable to update logical partition "/system_ext".
Do you know how to fix this? Fortunately my device still works, I managed not to brick it somehow. But I would really like to install the Pixel Experience
Thank you for your time, hope you'll respond soon!
Click to expand...
Click to collapse
for what purpose do you want to wipe this partition?? there is no need to do that.
What should I wipe in TWRP?
If you are switching ROMs (changing from one ROM to a completely different one) then you should perform a factory reset. A factory reset wipes data and cache...
twrp.me
WoKoschekk said:
for what purpose do you want to wipe this partition?? there is no need to do that.
What should I wipe in TWRP?
If you are switching ROMs (changing from one ROM to a completely different one) then you should perform a factory reset. A factory reset wipes data and cache...
twrp.me
Click to expand...
Click to collapse
Actually he DO NEED to wipe system partition before installing a new system. And I got the same problem
FlavioHuster said:
Actually he DO NEED to wipe system partition before installing a new system. And I got the same problem
Click to expand...
Click to collapse
No, you flash a complete image of /system and it doesn't matter if there is any data stored on it. Everything gets overwritten.
WoKoschekk said:
No, you flash a complete image of /system and it doesn't matter if there is any data stored on it. Everything gets overwritten.
Click to expand...
Click to collapse
Didn't know about it. So every time I want to install a new ROM I just flash it? And thanks for the answer!
FlavioHuster said:
Didn't know about it. So every time I want to install a new ROM I just flash it? And thanks for the answer!
Click to expand...
Click to collapse
Yes, that's right. Just wipe /data when flashing a new ROM.

Can I backup & restore including appdata with TWRP?

In the past I've always backed up my complete ROM incl. appdata with twrp. I didn't have to competely setup my device if flashing went wrong and reverted to stock. I had some bad luck flashing roms because the A/B slots are new to me. I now have my bootloader unlocked and everything setup on stock OOS, and made a twrp backup of super, recovery and data.
Before flashing another ROM I just want to make sure I can revert easily to the previous OS without doing a complete setup of app settings and stuff
My question is
Can I wipe/factory reset and then just restore with twrp?
Do I restore when in the active slot where current os is?
Are there any issues with password/encryption when restoring?
Expected scenario;
I'm on stock OOS, wiped and want to restore appdata, settings, homescreen, etc...
I failed to install custom ROM and want to revert to stock OOS without having to redo the entire setup
I did search google and this forum for an answer or guide but couldn't find one (please correct me if I missed a thread)
yusisushi said:
In the past I've always backed up my complete ROM incl. appdata with twrp. I didn't have to competely setup my device if flashing went wrong and reverted to stock. I had some bad luck flashing roms because the A/B slots are new to me. I now have my bootloader unlocked and everything setup on stock OOS, and made a twrp backup of super, recovery and data.
Before flashing another ROM I just want to make sure I can revert easily to the previous OS without doing a complete setup of app settings and stuff
My question is
Can I wipe/factory reset and then just restore with twrp?
Do I restore when in the active slot where current os is?
Are there any issues with password/encryption when restoring?
Expected scenario;
I'm on stock OOS, wiped and want to restore appdata, settings, homescreen, etc...
I failed to install custom ROM and want to revert to stock OOS without having to redo the entire setup
I did search google and this forum for an answer or guide but couldn't find one (please correct me if I missed a thread)
Click to expand...
Click to collapse
Did you read the first 3 posts of https://forum.xda-developers.com/t/...recovery-project-8t-kebab-2022-03-09.4302449/ ?
BillGoss said:
Did you read the first 3 posts of https://forum.xda-developers.com/t/...recovery-project-8t-kebab-2022-03-09.4302449/ ?
Click to expand...
Click to collapse
HI, yes I did
I am still confused because it says before a restore I have to disable screenlock, if my phone is softbricked or has no OS does that count as not having fingerprint/lockscreen enabled?
yusisushi said:
HI, yes I did
I am still confused because it says before a restore I have to disable screenlock, if my phone is softbricked or has no OS does that count as not having fingerprint/lockscreen enabled?
Click to expand...
Click to collapse
When you start TWRP, does it prompt you for a password/pin/pattern?
If Yes, then you have a lock screen password set. And if you can't get into the system to disable it, you'll have to format data (completely wipes all data).
If No, then you're good to go.
BillGoss said:
When you start TWRP, does it prompt you for a password/pin/pattern?
If Yes, then you have a lock screen password set. And if you can't get into the system to disable it, you'll have to format data (completely wipes all data).
If No, then you're good to go.
Click to expand...
Click to collapse
Hi, first of all; thank you for taking time to help me!
I managed to completely wipe the phone including data, and afterwards I restored it by copying the backup (which was now on my computer) and restoring it. SUCCESS! All appdata seems to be there, homescreen, and after second reboot my fingerprint still worked as before.
I just have one more question if you don't mind;
Below partitions I backed up;
Data
Boot
DTBO
Super
However, I'm not able to copy over the "super" partition from my computer to my phone, is this normal? it's almost 8GB and I was convinced I wasn't going to get to the OS without restoring it but apparently I didn't need it (?)
I suppose with the Fastboot Enhance Tool I'll be able to also restore this?
You really only need to backup the "system" partitions (boot, dtbo, super) if you're changing to custom ROMs. If you're always on OOS then you can forget about backing them up.
You should be able to copy the full backup, including super files from your PC to your phone using ADB. I've done that lots of times.
I've never used the tool you referred to. But I do know that you can't use fastboot to flash the super partition - it's too big.
However, if you break it up into chunks (I did it in 512MB chunks) using SparseConverter (https://forum.xda-developers.com/t/tool-sparseconverter-v1-0-1.2749797/) then you can successfully flash it.
Just to confirm, if a ROM bootloops and I don't have access to a computer, there's no way to restore the TWRP backup? Seems like this defeats the point of even making on-device backups (AFAIK encryption can't be disabled for many roms)
tech.central said:
Just to confirm, if a ROM bootloops and I don't have access to a computer, there's no way to restore the TWRP backup? Seems like this defeats the point of even making on-device backups (AFAIK encryption can't be disabled for many roms)
Click to expand...
Click to collapse
If you can enter TWRP (even if your rom bootloops) there is a great chance you can restore backup in TWRP.

Categories

Resources