我有一个xiaomi mi 6x，这是a2的中文版。有一种方法可以将其转换为A2，但OTA更新无法正常工作，因为6x只有一个分区。我不确定，但我读过，可以在Android设备上创建/删除分区。所以我想手动创建一个/ b分区，但我不知道它看起来如何。
I have an Xiaomi Mi 6X which is the Chinese version of A2. There is a way to convert it into A2, but OTA updates won't work because 6X has only A partition. I'm not sure, but I've read, it is possible to create/delete partitions on an Android device.
So I want to create A/B partitions manually, but I have no idea how it looks like.
Android uses GUID Partition Table (GPT) as its partitioning system which is possible to modify using tools like
gdisk. But there are a few constraints I can think of, other than the OTA problem you have already mentioned:
_b) pairs including
modem. New partitions require space which obviously isn't available on flash memory (eMMC) and needs to be freed from your
userdatapartition. So you will get short on your
userdatapartition (which is usually the last one), you may need to delete and create dozens of partitions. Exact details depend on the order of partitions in your partition table. So there are bright chances of bricking your device. :)
bootpartitions and no
recoverypartition. So the process of making choice from where to boot the device is different than on non-A/B devices.
abootthat depends on partition names such as
fastboot updatewill also break. And since bootloaders are closed source, you can't modify it to be compatible with your new partition table (unless you are lucky as well as an expert at
So it seems practically impossible to convert a non-A/B device to A/B device.
The a/b partitioning scheme doesn't eat into internal storagexe2x80x94on a Google pixel 1, the a/b scheme takes only 320MiB more than the a-only scheme. Source:Android Developers https://source.android.com/devices/tech/ota/ab/ab_faqs