backup partition a in partition b - Xiaomi Mi A1 Guides, News, & Discussion

hi guys, I upgraded to oreo through ota, you can copy partition B where is installed oreo in partition A where is nougat installed?

dado1295 said:
hi guys, I upgraded to oreo through ota, you can copy partition B where is installed oreo in partition A where is nougat installed?
Click to expand...
Click to collapse
See: https://source.android.com/devices/tech/ota/ab_updates
Once the OTA is successfully applied and you boot into Oreo then the new working system is copied automatically to the other partition (this is what is happening when you see the 'completing update' progress bar after booting into the new system.
This makes sure that the partitions are ready for the next A/B OTA update.
The old system files are only kept on the other partition until the new system boots successfully, the old system is then overwritten.
It's not a way to roll back a successful update. It's a way to recover from an unsuccessful update.

Related

How to install 5.1.1 without losing data...

Hey Guys,
My N5 is currently running android 5.1 and I want to upgrade to 5.1.1. My phone also shows that the OTA update is available but I am currently rooted and running TWRP. A quick google research showed me that I canĀ“t install an OTA update while being on TWRP. Is there any other way to update my phone to 5.1.1 without losing my data?
Greets
I have this exact same question. I was going to try and use fastboot with the system image and recovery and then take the ota update. Not sure if that will work.
I got impatient, so i downloaded the factory image from the web for the version of my phone (lmy47d). I extracted the system.img and recovery.img and flashed them with fastboot as stated here -> http://forum.xda-developers.com/goo...orial-applying-ota-update-stock-root-t2976556
Rebooted the phone and then applied the OTA update. Phone is updating the apps after boot. So far seems ok.
Thank you I will try it out later
You don't lose data by default? At least not for me

how to update Android via OTA when Multirom and TWRP are installed

Hi,
today I received a security update in my Nexus 5. I accepted it and when rebooted it got stuck in the multirom menu and it didnt update anything. Last time I have to lock the device and flash the rooted image in order to proceed with the update. this time I would like to do it diferently if possible.
Is there any other way to flash the update without removing multirom and locking back the device?
where is the update.zip stored when the system automatically downloads the update? maybe I could manually flash it using the TWRP.
thanks!
Jose

Can't update with OTA zip.

I'm on the XT1540 and I got my OTA notification and went back to stock recovery (still rooted and unlocked bootloader) but it fails halfway through flashing everytime. I reflashed TWRP and captured the OTA into a zip but get an error about updating binary or something when flashing it. Is there something I need to delete from the OTA zip to allow it to flash in twrp?
Sent from my MotoG3 using xda premium
You cannot update your systems software using the OTA update if you are rooted and have modified the system in any way as there are checks of original system during the auto update over the OTA. This means having the original recovery too. Wont work on TWRP or CWM. So no root and no custom recovery for OTA. Unlocked bootloader is okay.
In case you want to try the OTA update then what I have noticed on my XT1550 dual sim APAC version is that even unrooting it using the SuperSu unroot option is not going to help. In my case I could download the OTA and waited till it replaced the system software but got stuck midway of the boot animation.
I had to flash the 23.72-33 version of the stock ROM and opt for the OTA update. This time though I was successful.
Hope this info helps.
Yes, what arunhebbare says. you need to back up al your data and restore your stock firmware and than update via ota.
that is the best way of doing it
HelpMeruth said:
Yes, what arunhebbare says. you need to back up al your data and restore your stock firmware and than update via ota.
that is the best way of doing it
Click to expand...
Click to collapse
This...do a full factory image restore, then adb sideload the ota file. It's signed. TWRP can't install it.
Just use fastboot to flash the factory image for the version you want ... screw wiping your user partition like the above recommends.
nikon120 said:
Just use fastboot to flash the factory image for the version you want ... screw wiping your user partition like the above recommends.
Click to expand...
Click to collapse
This...I can't understand, for the life of me, why everyone is wiping userdata with fastboot....that wipes your android data, and internal storage in one shot. Cache erasing is another totally unnecessary step. All that's necessary, at the most, is a factory reset with TWRP to wipe the android data and both caches....but even that shouldn't technically be necessary for an update like this. It's not like this is the marshmallow update!!
arunhebbare said:
You cannot update your systems software using the OTA update if you are rooted and have modified the system in any way as there are checks of original system during the auto update over the OTA. This means having the original recovery too. Wont work on TWRP or CWM. So no root and no custom recovery for OTA. Unlocked bootloader is okay.
In case you want to try the OTA update then what I have noticed on my XT1550 dual sim APAC version is that even unrooting it using the SuperSu unroot option is not going to help. In my case I could download the OTA and waited till it replaced the system software but got stuck midway of the boot animation.
I had to flash the 23.72-33 version of the stock ROM and opt for the OTA update. This time though I was successful.
Hope this info helps.
Click to expand...
Click to collapse
@arunhebbare I've got the APAC version of the G3 as well, which ROMs are you flashing? I could only find images of the India version, did you use those?

Does Root Stay after Update?

Does root stay after an ota update with oneplus or will I have to re-root?
I had to reroute my Nexus 6p after an update
Of course. You will have to root again. Doing an update will install the stick kernel for that Fournette, hence removing the patched boot partition changes. You will have a stock boot partition and kernel.
Also, for OTA, won't work with a modified boot partition. You need the full ROM to flash in system update>local upgrade or in TWRP if you have that installed

[Pixel 3a][Android 11][ROOTED][TWRP 3.6.0] Install OTA without reverting to stock

Hello!
I am on an older version of Android 11 and I would like to install the latest Android 11 OTA without losing root and TWRP.
I know that I could just manually flash the lasted Android 11 firmware, then re-install TWRP and Magisk, but this would mean losing all data and having to reinstall apps, restore backups, etc...
So I was wondering if there were a quicker way to install OTA updates without losing data and root.
I know that there are many articles on the subject but they all refer to a previous version of TWRP and Magisk. Because TWRP 3.6.0 sports a completely revamped codebase I would like to know what is the latest recommended method if any.
This is my system info:
Android 11 sargo-rq1a.201105.002-factory-2433e0c0
Magisk v23
TWRP 3.6.0-11_0
Japan region
PS I do not intend to update to Android 12 yet
I ended up flashing the latest version of the stock firmware and reinstalling TWRP and root. However if you have a solution please post it for future reference.
I was looking for the same thing, didn't find any good solution, however, you can edit the flash-all script so that it doesn't wipe your data (remove the -w argument if I remember well).
reyqn said:
I was looking for the same thing, didn't find any good solution, however, you can edit the flash-all script so that it doesn't wipe your data (remove the -w argument if I remember well).
Click to expand...
Click to collapse
The flashall script will still remove TWRP and root though, right?
blksith0 said:
The flashall script will still remove TWRP and root though, right?
Click to expand...
Click to collapse
Yeah it does, you have to reflash them after
It's annoying that we can't choose the OTA android installs, it has to be the latest one. On some phones you can choose a local file, but I didn't find a way to do so with a pixel 3a.
If you were able to do this, in theory you could just flash the magisk module for twrp retention and preflash magisk on the unactive partition after installing the ota but before rebooting. Then just reboot and you keep everything.
I'm not ready to update to android 12 either (gravitybox, twrp), but I'll try then...
LastStarDust said:
I ended up flashing the latest version of the stock firmware and reinstalling TWRP and root. However if you have a solution please post it for future reference.
Click to expand...
Click to collapse
I don't understand. Just flash the Full Factory OTA zip in TWRP. That won't remove any data. And you can just check the box to "Automatically flash TWRP after zip" so that you'll keep whatever TWRP you're using. Then you just have to reboot recovery (so that you're on the updated slot) and flash the Magisk APK in TWRP. Reboot and profit.
P.S. This post belongs in Q&A.
Captain_Throwback said:
I don't understand. Just flash the Full Factory OTA zip in TWRP
Click to expand...
Click to collapse
I wondered if you could do this, apparently TWRP doesn't recommend it.
Also I had no idea how this works on a device with A/B partitions. Does TWRP automatically flash on the inactive partition?
reyqn said:
I wondered if you could do this, apparently TWRP doesn't recommend it.
Also I had no idea how this works on a device with A/B partitions. Does TWRP automatically flash on the inactive partition?
Click to expand...
Click to collapse
That 'recommendation' is specific to incremental OTAs. Also, it not generally being supported isn't the same as it not being recommended.
TWRP will install the zip to the inactive slot, and then when you reboot, the device will automatically boot into the updated slot.
Thanks for the precisions, I'll know for the next time. TWRP really is awesome
hi everyone, i flashed pixel 3a to android 12 and now my imei is 004400.... and no service ..... what should i do?

Categories

Resources