How to backup Redmi K30 5G for update from MIUI12 to MIUI 13 - Redmi K30 5G Questions & Answers

Hello
I have a Redmi K30 5G running MIUI by xiaomi.eu (V12.5.7.0.RGICNXM stable - Android 11) with TWRP 3.5.2_10-5 by hadenix.
I am wishing to update rom to xiaomi.eu (V13.0.1.0.SGICNXM stable - Android 12).
Before doing so i wish to take the precaution of making a backup of the phone in case something goes wrong during the update and I need to roll back.
I am not interested in rooting the phone.
What is the best (safest) way to do this?
Am I correct in stating the best way to do this is using my TWRP?
I am considering using the TWRP backup method (something I have never done before).
Most of the online methods show System, Data & Boot as the necessary partitions required to be backed up/restored to roll back the phone.
Is that correct?
In my TWRP I cannot see the System partition listed in the BACKUP partitions.
Yet I can see the system partition listed in the MOUNT partitions.
So I am unsure where to go from here.
I am hoping someone out there has knowledge on this backup/restore procedure (for K30 5G with TWRP 3.5.2_10-5 by hadenix) and can assist.
Thanks.

wmr68 said:
Hello
I have a Redmi K30 5G running MIUI by xiaomi.eu (V12.5.7.0.RGICNXM stable - Android 11) with TWRP 3.5.2_10-5 by hadenix.
I am wishing to update rom to xiaomi.eu (V13.0.1.0.SGICNXM stable - Android 12).
Before doing so i wish to take the precaution of making a backup of the phone in case something goes wrong during the update and I need to roll back.
I am not interested in rooting the phone.
What is the best (safest) way to do this?
Am I correct in stating the best way to do this is using my TWRP?
I am considering using the TWRP backup method (something I have never done before).
Most of the online methods show System, Data & Boot as the necessary partitions required to be backed up/restored to roll back the phone.
Is that correct?
In my TWRP I cannot see the System partition listed in the BACKUP partitions.
Yet I can see the system partition listed in the MOUNT partitions.
So I am unsure where to go from here.
I am hoping someone out there has knowledge on this backup/restore procedure (for K30 5G with TWRP 3.5.2_10-5 by hadenix) and can assist.
Thanks.
Click to expand...
Click to collapse
Backup/Restore will not work with TWRP.
Try with:Micloud,Miphone assistant,Google or third-party apps.
But in general the update goes well using the script included in the zip:windows_fastboot_update_rom.bat

NOSS8 said:
Backup/Restore will not work with TWRP.
Try with:Micloud,Miphone assistant,Google or third-party apps.
But in general the update goes well using the script included in the zip:windows_fastboot_update_rom.bat
Click to expand...
Click to collapse
Thanks for the reply!
In the past I have backed up with MIUI and Google but I am keen to explore the TWRP option as my understanding is that this is a more complete backup. There are guides online showing how to do this, so i am curious as to why you say that "Backup/Restore will not work with TWRP."?

wmr68 said:
Thanks for the reply!
In the past I have backed up with MIUI and Google but I am keen to explore the TWRP option as my understanding is that this is a more complete backup. There are guides online showing how to do this, so i am curious as to why you say that "Backup/Restore will not work with TWRP."?
Click to expand...
Click to collapse
Android 11 to 12.

NOSS8 said:
Android 11 to 12.
Click to expand...
Click to collapse
Thanks for the reply! I take your point.
But in this instance I would be restoring an Android 11 backup with TWRP (TWRP works for Android 11).
Even though I would be restoring the Android 11 backup over an Android 12 rom using TWRP, would that not work?
What would be the reasons that this wouldn't work?
I am trying to learn how all of this stuff works!
Thanks for your advice so far.

wmr68 said:
Thanks for the reply! I take your point.
But in this instance I would be restoring an Android 11 backup with TWRP (TWRP works for Android 11).
Even though I would be restoring the Android 11 backup over an Android 12 rom using TWRP, would that not work?
What would be the reasons that this wouldn't work?
I am trying to learn how all of this stuff works!
Thanks for your advice so far.
Click to expand...
Click to collapse
Twrp for android 12 Cannot decrypt data
System is different
The backup works but not the restore, now you can try with the last TWRP A12, I had tried with the penultimate one.
https://androidfilehost.com/?w=files&flid=318240

"Twrp for android 12 Cannot decrypt data" - Got it. Thanks! Now I understand.

Related

[Q] Restoring backups after Lollipop upgrade and TWRP 2.8.6.0

After upgrading to Lollipop FOB6 firmware using full odin and then rooting and installing TWRP, I have never been able to successfully restore a backup, ever!
From reading the dev forums it seems no one else has been able to do so either. Does anyone know what the heck is going on? Is there any toggle (like compression?) that we cant use?
This is a bit of a pain but not the end of the world. Certainly makes me hesitate to mess around with new roms though if I cant go back to my solid daily without having to start from scratch.
khanam said:
After upgrading to Lollipop FOB6 firmware using full odin and then rooting and installing TWRP, I have never been able to successfully restore a backup, ever!
From reading the dev forums it seems no one else has been able to do so either. Does anyone know what the heck is going on? Is there any toggle (like compression?) that we cant use?
This is a bit of a pain but not the end of the world. Certainly makes me hesitate to mess around with new roms though if I cant go back to my solid daily without having to start from scratch.
Click to expand...
Click to collapse
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
najoor said:
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
Click to expand...
Click to collapse
Thats true - I did read about that. And that would definitely explain being unable to restore a kitkat rom.
However, I cant even restore a lollipop backup after flashing a different lollipop rom! Even if they are both derived from the same FOB6 base! That is what is even more confusing. Try it - backup, wipe all the partitions except int and ext sd of course and then try to restore... it just doesnt work!
Way I dit it just use factory reset only don't wipe anything specialy internal storage and don't use format. While restoring TWRP formats partition that been restored. I'm using TWRP 2.7.2.0
I've had no problem restoring from a TWRP Backup on Lollipop numerous times.
najoor said:
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
Click to expand...
Click to collapse
I noticed that in every folder in /data/app/ there is an apk called base and a folder lib, can i backup just the apk? Or when i need to share an apk or take an apk i need to take also rhe lib?
dugryce said:
I've had no problem restoring from a TWRP Backup on Lollipop numerous times.
Click to expand...
Click to collapse
What is your TWRP version? Also, did you do any wipes before you fully restored a backup?
khanam said:
After upgrading to Lollipop FOB6 firmware using full odin and then rooting and installing TWRP, I have never been able to successfully restore a backup, ever!.
Click to expand...
Click to collapse
Does yours ever end up losing touch screen sensitivity when you restore a backup? Mine always looks like it has fully restored everything, but then no response to screen taps.
senozlu1 said:
Way I dit it just use factory reset only don't wipe anything specialy internal storage and don't use format. While restoring TWRP formats partition that been restored. I'm using TWRP 2.7.2.0
Click to expand...
Click to collapse
Oh I'll try this and report back. Thanks
Sent from my SM-N900T using XDA Free mobile app
yummymango said:
What is your TWRP version? Also, did you do any wipes before you fully restored a backup?
Does yours ever end up losing touch screen sensitivity when you restore a backup? Mine always looks like it has fully restored everything, but then no response to screen taps.
Click to expand...
Click to collapse
Mine just fails. But then again I've been wiping the partitions before restoring. Maybe that impacts it?
Sent from my SM-N900T using XDA Free mobile app
khanam said:
Mine just fails. But then again I've been wiping the partitions before restoring. Maybe that impacts it?
Click to expand...
Click to collapse
One of the devs, who runs the Lollipop ROM I've been using, warned against restoring data. He suggested backing up apps + data through Titanium Backup instead. Maybe it depends on the ROM?
najoor said:
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
Click to expand...
Click to collapse
Hi
I have a rooted S4 running Carbon. Im using TWRP 2.8.5.0 and can backup and restore any
KK rom with no issues. I can flash Lollipop and backup but it will not restore this backup.
Its says restore successful but then just boots back into recovery. If someone could resolve
this it would be great
Hello all,
TB doesn't seem to pick up the apk file when backing up which is quite frustrating. Does anyone have a solution?
i had backup using TWRP 2.8.7.0 my stock TW lollipop rom...Now i had flashed Dirty Unicorns v9.5...If i wanted to goto stock rom that nandroid backup wont work??? thats what people are complaining over here??

TWRP all versions compatibility issues with nougat 7.0

None of the official twrp versions are compatible with MI MAX HYDROGEN WITH MIUI 8.5.1.0 ANDROID NOUGAT 7.0. After successful restore of a successful backup, found only one issue with twrp 3.0.2.0 - cannot make and receive calls and messages. Internet, wifi, bluetooth, gps work fine.
And with twrp 3.0.3.0, 3.1.0.0 and 3.1.1.0 - sim card not found ( baseband - unknown ).
Anyone face this issue. Is there a workaround for this or we need to wait for compatible twrp release for this version of android?
Be more specific, how did you take the backup, what partitions were backed up, with what TWRP version, from what MIUI version, and all the same for the restore process. Post TWRP logs both for taking and restoring backup.
As much as I don't care about MIUI I am really curious what did they change to break the only way we can take/restore reliable offline device backups.
nijel8, I found a workaround for restore. It seems that there is a partition handling incompatibility between twrp and nougat 7.0 based rom. Anyway thanks for asking.
Sent from my Xiaomi Mi Max using XDA Labs
wwwwwdfrd said:
nijel8, I found a workaround for restore. It seems that there is a partition handling incompatibility between twrp and nougat 7.0 based rom. Anyway thanks for asking.
Sent from my Xiaomi Mi Max using XDA Labs
Click to expand...
Click to collapse
Which one? What was the workaround? Come on.. Share more, please. Don't be shy.
nigel8, The partitions that are required actually for a restore are system, data, boot and cache in most cases to restore a bricked smartphone ( so as to boot/start the smartphone ) . Other partitions like efs, firmware, modem and many others are rarely required and optional. The workaround above 3.0.2.0 is restore all partitions except firmware and you are done. Reboot. Go back to recovery and restore firmware. It seems that making a full restore including firmware in one go knocks out all modem partitions. That's it and you are done. For version 3.0.2.0. Make complete restore or skip one partition efs. prior to all this ( better to have in backup) Install app partition backup and restore. Take img backups of required partitions on external storage sdcard. Later install the partition efs( modem, modemst1 and modemst2 ) and you are done. You can even restore a backed up firmware partition through this app for the first case. Also other partitions can be restored through this app.
Sent from my Xiaomi Mi Max using XDA Labs
mi max hydrogen for zcx twrp link
Sent from my MI MAX using XDA Free mobile app

Question

Recently I downloaded havoc os, I wanted to switch to it from stock ROM, I've done the unlocking stuff and rest of the things,my final step before flashing is backing up the stock ROM,cause precaution is always better ,so when I see the backup option,there are whole lot of things to back off,which confuses me like anything,can anyone tell me In brief which are the things I need to backup before I go ahead and do the flashing stuff. Please a quick response would be valuable,cause I can't wait to use a new rom
a9* said:
Recently I downloaded havoc os, I wanted to switch to it from stock ROM, I've done the unlocking stuff and rest of the things,my final step before flashing is backing up the stock ROM,cause precaution is always better ,so when I see the backup option,there are whole lot of things to back off,which confuses me like anything,can anyone tell me In brief which are the things I need to backup before I go ahead and do the flashing stuff.[emoji852]️ Please a quick response would be valuable,cause I can't wait to use a new rom
Click to expand...
Click to collapse
I don't know for emui 8 & twrp
But it is easy to wipe everything and install a new blank copy of emui.
Use this.
https://forum.xda-developers.com/honor-9/development/tool-flash-official-firmware-recovery-t3769279
With Google app restore you get back your WiFi password, some settings and apps you just have to login to most apps and setup your home screen again.
You could try make a settings back up using Huawei backup & cloud.
Because your data is encrypted it is hard to decrypt & backup.
Or use Titanium backup.
Sent from my BND-L21 using Tapatalk
nickzeptepi said:
I don't know for emui 8 & twrp
But it is easy to wipe everything and install a new blank copy of emui.
Use this.
https://forum.xda-developers.com/honor-9/development/tool-flash-official-firmware-recovery-t3769279
With Google app restore you get back your WiFi password, some settings and apps you just have to login to most apps and setup your home screen again.
You could try make a settings back up using Huawei backup & cloud.
Because your data is encrypted it is hard to decrypt & backup.
Or use Titanium backup.
Click to expand...
Click to collapse
See this attachment, it's quite confusing.
Sorry i can't help more than my first post
You don't need to backup emui in TWRP.
Sent from my BND-L21 using Tapatalk
nickzeptepi said:
Sorry i can't help more than my first post
You don't need to backup emui in TWRP.
Click to expand...
Click to collapse
Sorry bro,not just emui, it's also about other custom roms as well ?
I don't know
Sent from my BND-L21 using Tapatalk

Impossible with TWRP to backup encrypted partition "data"

Hi at all,
with my new phone Xiaomi Mi A2 lite, I wanted doing the backup of my phone with TWRP, because in case of problem I will ready to restored it.
But I have discovery that the partition "data" is not visible because is encrypted and is impossible with TWRP to do the backup of it.
Is impossible use the storage of phone for make the backup beacuse it is also encrypted.
Is there anyone that has found a solution to decrypt and copy the partition in question?
Sorry by poor english and thanks all wonderfull team for the working doing.
If I were you, I would forget about our TWRP. It's just a half baked version which got official status by sponsorship. At best it's an early alpha version far from beeing useable.
thorin0815 said:
If I were you, I would forget about our TWRP. It's just a half baked version which got official status by sponsorship. At best it's an early alpha version far from beeing useable.
Click to expand...
Click to collapse
Thank you for the reply, I sad to reading this. So we must hope an next update for our TWRP. Now is impossible decrypted the partition entering the correct password or pattern.
So today is impossible do the full backup of app and setting....
liboriof said:
Thank you for the reply, I sad to reading this. So we must hope an next update for our TWRP. Now is impossible decrypted the partition entering the correct password or pattern.
So today is impossible do the full backup of app and setting....
Click to expand...
Click to collapse
i think you flashed the twrp image instead of booting it and then using the zip to install it. just redo the twrp installation exactly how it is written on the thread, encryption will work. restoring a backup however, does not (doesn't boot). for this you have to restore the data backup and then reflash the same rom the backup was made with from fastboot with the "flash_all_except_storage.bat". I would also recommend to do this before you try to reinstall twrp.
thorin0815 said:
If I were you, I would forget about our TWRP. It's just a half baked version which got official status by sponsorship. At best it's an early alpha version far from beeing useable.
Click to expand...
Click to collapse
Yes, it is far from usable but at least he built a working tree anyone could build a booting twrp from. it defenitely does not deserve the official status bcs this would mean it is maintained and working propperly.
wertus33333 said:
i think you flashed the twrp image instead of booting it and then using the zip to install it. just redo the twrp installation exactly how it is written on the thread, encryption will work. restoring a backup however, does not (doesn't boot). for this you have to restore the data backup and then reflash the same rom the backup was made with from fastboot with the "flash_all_except_storage.bat". I would also recommend to do this before you try to reinstall twrp.
Click to expand...
Click to collapse
Thank you for reply, I will try to do as you say and later I will write what happened.
I have used the guide by wertus33333 and it working. Thank you for your advice.

What TWRP are people using for curtana?

Hi all, I'm currently running miui EU rom 11.0.11 with bootloader unlocked and TWRP installed. However there are so many different twrp recoveries available all with different things working....
So far I've only flashed one rom since I've got the phone but with all these amazing looking custom ROMs around, I'd like to try out a few but it seems backup and restore is currently not possible.
TLDR: anyone know of a TWRP with working backup for Xiaomi redmi note 9s CURTANA?
Cheers
1qazwsx4 said:
Hi all, I'm currently running miui EU rom 11.0.11 with bootloader unlocked and TWRP installed. However there are so many different twrp recoveries available all with different things working....
So far I've only flashed one rom since I've got the phone but with all these amazing looking custom ROMs around, I'd like to try out a few but it seems backup and restore is currently not possible.
TLDR: anyone know of a TWRP with working backup for Xiaomi redmi note 9s CURTANA?
Cheers
Click to expand...
Click to collapse
You should use the latest recovery version available, I think now is the OrangeFox recovery, it's the unified (miatoll) version. To can make backup, the recovery need to able to handle the encryption installed by ROM. To restore the backup... another challenge. I using only data backup and when want to restore, I wipe data, flash the rom, wait for first boot (set same pin code as used in backup), than restore the data in recovery. In case of unlucky situation (encryption difference between "restored" and previous rom, the rom stuck at first boot and need to format data partition (will delete internal storage too!!).
I use ofox recovery, having stock rom in an sd card and migrate backup I just flash new rom and when I want to come back, I flash stock and restore migrate. Nandroid backups are a bit risky I think.

Categories

Resources