backup end restore - Xiaomi Mi 9 Questions & Answers

I like to try a little all roms. I am fine with TWRP 3.3.2b-302. Can you tell me how I can make a backup correctly in order to restore correctly? what are the items that I have to check? System, Data, Boot?

I suspect that nobody knows how to do it correctly

If you just want to take backup & restore of data on your Xiaomi Mi 9, you can do that by uing Xiaomi Cloud. If you want to transfer data from your Xiaomi Mi 9 to the PC for backup, you can do that via USB Cable in MTP mode or via Bluetooth. Pro Samsung mobile manager tool can also help us. Hope this will be your help.

Related

Uninstall twrp without wiping data

Hi, please, I need help. I wanted to root my note 8 (exynos) using TWRP (with odin) and MAGISK. But at the reboot in recovery mode, TWRP asks me to wipe my data, something I don’t wanna do of course. The problem is i can’t go back because the system reboots in a loop and I can’t make a backup of my rom with all my data because it doesn’t recognize them, when I mount a partition I can’t select data. Thank you for helping me because I don’t wanna lose my files.

backing up a rooted phone

I want to do a backup of my android before restoring OOS on the phone (for a test). Was planing to use titanium backup but it seems like the app isn't very good anymore (the reviews are really bad now). Any other ideas? ADB didn't really create that a good backup and I lost WhatsApp and other stuff.
Current setup: lineage 17.1, twerp (latest version) and magisk 20.4.
Just realised I can use twrp for this ??
Eggstones said:
I want to do a backup of my android before restoring OOS on the phone (for a test). Was planing to use titanium backup but it seems like the app isn't very good anymore (the reviews are really bad now). Any other ideas? ADB didn't really create that a good backup and I lost WhatsApp and other stuff.
Current setup: lineage 17.1, twerp (latest version) and magisk 20.4.
Just realised I can use twrp for this ??
Click to expand...
Click to collapse
Two options:
1. Use TB to backup and restore app data and non-bundled/not split apks. Use SAI https://play.google.com/store/apps/details?id=com.aefyr.sai to backup/restore bundled/split apks.
2. Use Migrate https://forum.xda-developers.com/an...stom-rom-migration-tool-t3862763/post78060823
Sent from my OnePlus 3T using XDA Labs
BillGoss said:
Two options:
1. Use TB to backup and restore app data and non-bundled/not split apks. Use SAI https://play.google.com/store/apps/details?id=com.aefyr.sai to backup/restore bundled/split apks.
2. Use Migrate https://forum.xda-developers.com/an...stom-rom-migration-tool-t3862763/post78060823
Click to expand...
Click to collapse
I actually don't understand option one but two sounds just the ticket. Thank you.
Eggstones said:
I want to do a backup of my android before restoring OOS on the phone (for a test). Was planing to use titanium backup but it seems like the app isn't very good anymore (the reviews are really bad now). Any other ideas? ADB didn't really create that a good backup and I lost WhatsApp and other stuff.
Current setup: lineage 17.1, twerp (latest version) and magisk 20.4.
Just realised I can use twrp for this ??
Click to expand...
Click to collapse
If you have TWRP, then indeed, adb backup --twrp data should be your friend.
However, extracting TWRP backups on your computer is not that trivial. To do that you need twrpabx, specifically prudy's fixed version. On a Linux computer, it is quick and easy to compile. I haven't tried on Windows.
Else, TWRP backups can only be restored on the same phone (or maybe also on another phone of the same model)
yahya69 said:
If you have TWRP, then indeed, adb backup --twrp data should be your friend.
However, extracting TWRP backups on your computer is not that trivial. To do that you need twrpabx, specifically prudy's fixed version. On a Linux computer, it is quick and easy to compile. I haven't tried on Windows.
Else, TWRP backups can only be restored on the same phone (or maybe also on another phone of the same model)
Click to expand...
Click to collapse
That should be then fine. I just want to try a thing on OOS so no switching of phones intended.
ADB backup I don't think restored the apps data when I tried it which was the main reason for doing the backup
Eggstones said:
That should be then fine. I just want to try a thing on OOS so no switching of phones intended.
ADB backup I don't think restored the apps data when I tried it which was the main reason for doing the backup
Click to expand...
Click to collapse
When you do adb backup --trwp you can add which partitions you want to have backup up:
adb backup --trwp data system boot recovery (haven't checked the names, but data and system should be the most important ones)
Just be mindful that when you do an adb backup --twrp, the backup does not include Internal Files, so make sure to back them up separately or not to wipe them in the first place. I would recommend that after backing up your precious data, you go to "advanced wipe" and there select system, data, cache and dalvik cache. After that, happy flashing..
yahya69 said:
When you do adb backup --trwp you can add which partitions you want to have backup up:
adb backup --trwp data system boot recovery (haven't checked the names, but data and system should be the most important ones)
Just be mindful that when you do an adb backup --twrp, the backup does not include Internal Files, so make sure to back them up separately or not to wipe them in the first place. I would recommend that after backing up your precious data, you go to "advanced wipe" and there select system, data, cache and dalvik cache. After that, happy flashing..
Click to expand...
Click to collapse
I'm doing this with very basic understanding of what I'm doing/being recommended to do. Is adb backup --twrp a command or twice different things as in 'adb backup' to computer and twrp is done on the phone?
My plan is to copy the important data like audio files and photos to my laptop, then use use migrate to make a copy plus twrp backup. I should be fine after that I think.
I'm just hoping my root and magisk doesn't go when I reinstal OOS 9.0.6 as I want to try to edit my system to see if I can force vowife to work.
Eggstones said:
I'm doing this with very basic understanding of what I'm doing/being recommended to do. Is adb backup --twrp a command or twice different things as in 'adb backup' to computer and twrp is done on the phone?
Click to expand...
Click to collapse
That would be a command you have to run in a command line window on your computer. Again, after the --twrp parameter, you can pass the names of the partitions you want to have backed up, which would probably be data, system, recovery and boot.
First, of course, you have to install adb, if you haven't already. But if that's too complicated, it might be easier to make a full backup in TWRP and then copy it over to your computer. adb backup --twrp basically saves a step and you don't have to have sufficient space on your phone for a full backup
My plan is to copy the important data like audio files and photos to my laptop, then use use migrate to make a copy plus twrp backup. I should be fine after that I think.
Click to expand...
Click to collapse
That's always a good idea, even though wiping data in TWRP should not touch your internal files.
I'm just hoping my root and magisk doesn't go when I reinstal OOS 9.0.6 as I want to try to edit my system to see if I can force vowife to work.
Click to expand...
Click to collapse
I don't know, I never used it. I'm happy with LineageOS. I guess you can re-flash Magisk trough twrp and then in your running system, you can re-install the MagiskManager apk. But I haven't tried it.

General TWRP createTarFork() error 255-why and how:)

Hi, a lot of Us have problem: TWRP createTarFork() error 255 when backing up data when backup data. It is on miui because miui uses a lot of users in android for:
- dual spaces
- dual app
- and other thinks that i dont know...
And TWRP cant work with it (decrypt only main user).
On Redmi K20 (my old phone) if i would like to make backup, i remove encryptions, pernamently deleted from adb other users and succefully make backup.. But It has no sense, cause it affect miui system (crashes etc).
PJ

data recovery after unlock bootloader and root

Hello,
Today I had some kind of mental blackout and made a horrible mistake - I wanted to root my phone to do a full backup with Titanium Backup.
I unlocked the bootloader with the Xiaomi Unlock Tool (miflash_unlock-en-5.5.224.24) not realizing that this means a factory reset and all data is lost.
Unfortunately, I had a lot of pictures of my family / children on the phone without a recent backup.
As next step I installed twrp-3.4.0-10-tucana-mauronofrio.img with adb and used Magisk-v23.0 to root the phone.
Then I tried different recovery solutions like Ultdata with root access to restore the old files - but the scans can't find anything.
Is there a chance to restore those 50-80 GB of pictures and videos again. Are the old partitions still there. How can I scan them to undelete files at raw level?
I would be very grateful for any further information!
THX Wolfgang
PS: df shows this entries:
Filesystem1K-blocksUsedAvailableUse%Mounted ontmpfs2.839.2641.3402.837.9241%​/devtmpfs2.839.264-2.839.2640%​/mnt/dev/block/dm-02.031.5481.904.536110.62895%​/vendortmpfs2.839.2643.1802.836.0841%​/dev/yeQQutmpfs2.839.264-2.839.2640%​/apexnone2.839.264-2.839.2640%​/sys/fs/cgroup/dev/block/sda30364.504264352.4441%​/cache/dev/block/sda145.0921604.9324%​/dev/logfs/dev/block/sda31999.320863.068109.38489%​/cust/dev/block/sda32114.374.6204.623.308109.620.2405%​/datatmpfs2.839.264-2.839.2640%​/system/bin/dev/yeQQu/.magisk/block/system_root4.571.1323.972.020582.72888%​/system/bin/abb/dev/fuse114.374.6204.623.308109.620.2405%​/storage/emulated
Just hit the same bump today. Device: Note 7 Pro
Have you found any solution?

Question How to restore a Google backup on Mi 11 Chinese version?

Hey guys...so..the question from the title. After I setup my Chinese version phone, is there any way to get my previous Google backup on it? Thanks!
Not if you are on a Chinese version ROM (because there not GMS, GooglePlay Services)
What is your ROM version V12.x.x.0.RKB??XM" ? Depending of the two letters (??) you will know.
If you have the old device, make a manual backup (always make both, manual / cloud)
Backup from from your old device
- Copy/Past Folders root : DCIM / Documents / Downloads / Pictures & all personnal folders (like WhatsApp, Signal, Facebook)
- Make a full SMS Backup & Restore local for backup your Call log & SMS/MMS
- Make a backup of your socail apps (WhatsApp, Signal, etc...)
- Verify if your contacts are synced in your Google Account instead in Phone memory or SIM, if not Export à contacts on your Google account
After that, if you want switch your ROM to a Global International (with GooglePlay Services) you will before Unlock your Bootloader (and waiting 168 hours, and unlock erase all your data), flash in Fastboot mode the full Fastboot ROM (if it's a Mi 11 phone !) :
venus_global_images_V12.5.5.0.RKBMIXM_20210624.0000.00_11.0_global_2c40cce7ea.tgz
Extract *tgz with an archiver like 7Zip or WinRAR and extract *.tar for have all the entire extracted ROM
In MiFlash, select extracted folder, and flash... Wait ~8/10 minutes, don't touch / unplug your phone during process.
Tadaaaa
Pho3nX said:
Not if you are on a Chinese version ROM (because there not GMS, GooglePlay Services)
What is your ROM version V12.x.x.0.RKB??XM" ? Depending of the two letters (??) you will know.
If you have the old device, make a manual backup (always make both, manual / cloud)
Backup from from your old device
- Copy/Past Folders root : DCIM / Documents / Downloads / Pictures & all personnal folders (like WhatsApp, Signal, Facebook)
- Make a full SMS Backup & Restore local for backup your Call log & SMS/MMS
- Make a backup of your socail apps (WhatsApp, Signal, etc...)
- Verify if your contacts are synced in your Google Account instead in Phone memory or SIM, if not Export à contacts on your Google account
After that, if you want switch your ROM to a Global International (with GooglePlay Services) you will before Unlock your Bootloader (and waiting 168 hours, and unlock erase all your data), flash in Fastboot mode the full Fastboot ROM (if it's a Mi 11 phone !) :
venus_global_images_V12.5.5.0.RKBMIXM_20210624.0000.00_11.0_global_2c40cce7ea.tgz
Extract *tgz with an archiver like 7Zip or WinRAR and extract *.tar for have all the entire extracted ROM
In MiFlash, select extracted folder, and flash... Wait ~8/10 minutes, don't touch / unplug your phone during process.
Tadaaaa
Click to expand...
Click to collapse
))) Tadaaa indeed. Thank you very much for your detailed response.
Pho3nX said:
Not if you are on a Chinese version ROM (because there not GMS, GooglePlay Services)
What is your ROM version V12.x.x.0.RKB??XM" ? Depending of the two letters (??) you will know.
If you have the old device, make a manual backup (always make both, manual / cloud)
Backup from from your old device
- Copy/Past Folders root : DCIM / Documents / Downloads / Pictures & all personnal folders (like WhatsApp, Signal, Facebook)
- Make a full SMS Backup & Restore local for backup your Call log & SMS/MMS
- Make a backup of your socail apps (WhatsApp, Signal, etc...)
- Verify if your contacts are synced in your Google Account instead in Phone memory or SIM, if not Export à contacts on your Google account
After that, if you want switch your ROM to a Global International (with GooglePlay Services) you will before Unlock your Bootloader (and waiting 168 hours, and unlock erase all your data), flash in Fastboot mode the full Fastboot ROM (if it's a Mi 11 phone !) :
venus_global_images_V12.5.5.0.RKBMIXM_20210624.0000.00_11.0_global_2c40cce7ea.tgz
Extract *tgz with an archiver like 7Zip or WinRAR and extract *.tar for have all the entire extracted ROM
In MiFlash, select extracted folder, and flash... Wait ~8/10 minutes, don't touch / unplug your phone during process.
Tadaaaa
Click to expand...
Click to collapse
Hey man, since you seem to know whats the deal with all these...maybe you can help me with two more answers.
1. The phone is a Mi11 Pro; the only ROMs on xiaomi.eu are ZIP files., and not Fastboot. How do I install those, cause noone explains that, only the fastboot method.
2. if I applied for Bootloader unlocking via the xiaomi official app, how do I know when the 168 hours are over? Do I get some kind of notification? And after that, do I just connect again to the xiaomi unlocking app and it works?
Thank you very much!
leoking3 said:
Hey man, since you seem to know whats the deal with all these...maybe you can help me with two more answers.
1. The phone is a Mi11 Pro; the only ROMs on xiaomi.eu are ZIP files., and not Fastboot. How do I install those, cause noone explains that, only the fastboot method.
2. if I applied for Bootloader unlocking via the xiaomi official app, how do I know when the 168 hours are over? Do I get some kind of notification? And after that, do I just connect again to the xiaomi unlocking app and it works?
Thank you very much!
Click to expand...
Click to collapse
So :
If you have a Mi 11 Pro, be careful, my previous link is not for your model !
1/ If you want flash Xiaomi.eu ROM, there no problem, just flash is by custom recovery (TWRP), not Fastboot (Xiaomi.eu has discontinued Fastboot ROMS until TWRP is available from May 2021). The Mi 11 Pro ROM is the same Mi 11 Ultra ROM.
You have a good Tutorial here : [ROM][MIUI][venus] Xiaomi.eu ROM for Xiaomi MI 11
If you want Root, apply Root on the fly after update, ask me
2/ When you apply asking for Unlocking Bootloader, you want wait 168 hours exactly. If you retry before the 168 hours remaing, waiting time is resetted ! lol
You don't have notification, just redo the same thing the same day, the same hours in a week, i advise to wait 1 or 2 hours more for be sure.
When 168 hours are passed, you will redo the Unlock and it will be granted.
BE CAREFUL, YOU MUST HAVE BACKUP BEFORE UNLOCK BECAUSE UNLOCK ERASE ALL DATA & THERE ANY WARNING / NOTIFICATION FOR THAT.
Pho3nX said:
So :
If you have a Mi 11 Pro, be careful, my previous link is not for your model !
1/ If you want flash Xiaomi.eu ROM, there no problem, just flash is by custom recovery (TWRP), not Fastboot (Xiaomi.eu has discontinued Fastboot ROMS until TWRP is available from May 2021). The Mi 11 Pro ROM is the same Mi 11 Ultra ROM.
You have a good Tutorial here : [ROM][MIUI][venus] Xiaomi.eu ROM for Xiaomi MI 11
If you want Root, apply Root on the fly after update, ask me
2/ When you apply asking for Unlocking Bootloader, you want wait 168 hours exactly. If you retry before the 168 hours remaing, waiting time is resetted ! lol
You don't have notification, just redo the same thing the same day, the same hours in a week, i advise to wait 1 or 2 hours more for be sure.
When 168 hours are passed, you will redo the Unlock and it will be granted.
BE CAREFUL, YOU MUST HAVE BACKUP BEFORE UNLOCK BECAUSE UNLOCK ERASE ALL DATA & THERE ANY WARNING / NOTIFICATION FOR THAT.
Click to expand...
Click to collapse
Wow thank you for everything. So I have few more days to think about it. I am not sure it is worth doing it though, because I dont see any issues with the Chinese ROM so far...except for the google assistant, wich cannot be started. So...I have to decide if I will do it after all. Thanks so much again, I ll ask if I dont manage to do it.

Categories

Resources