Questions tagged [ab-partition]

A/B partitioning was introduced by Google in Android O. It allows the inactive set of partitions to be patched in a running system on the active set of partitions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

In fastboot mode my phone appear locked

My phone is Huawei mate 8 when i try to install a twrp is appear locked in fastboot mode & i cant unlock oem. I cant acces to my data. Any one have an idea about recovery data from fastboot mode. ...
Mondher Kassaoui's user avatar
0 votes
0 answers
73 views

How to recreate partitions, like system_a?

I deleted the system_a partition on my Xiaomi device, and when flashing GSI, it says: E:\platform-tools_r34.0.5-windows\platform-tools>fastboot erase system Erasing 'system' ...
Ahmed Elgezawy's user avatar
1 vote
1 answer
785 views

A/B devices: Switch slots without using PC

I've seen this question asked two years ago How to switch slots without a computer or using TWRP? which asks for the same on Android 9,but with so many tools being developed (and abandoned) and ...
beeshyams's user avatar
  • 40.7k
0 votes
0 answers
248 views

Android 10: Difference Between System, Product and Vendor Partition

Android has read only A/B partitions where different apps are preloaded by OEM: /system/app /system/priv-app /product/app /product/priv-app /vendor/app /vendor/priv-app Questions: What is privilege/...
Spyder's user avatar
  • 361
1 vote
3 answers
673 views

lpmake error "Partition should only have linear extents:"

I'm trying to extract the content of super.img, modify some elements then repack it again. I followed all the steps correctly to extract the contents of super.img file. When running stat '%n %s *.img ...
zinger's user avatar
  • 111
4 votes
0 answers
1k views

How to switch slots without a computer or using TWRP?

I'm working with Android 9 Pie and I have one slot rooted (slot A) and the other is not (slot B). My reasoning to have my phone this way is because I need the non-rooted side to log in to the app I ...
user1091091's user avatar
0 votes
0 answers
194 views

Resize USB internal storage and use some as external without formatting the whole USB

I expanded my Amazon FireTV 4K Max (Fire TV Home Version 6341067.1 running Fire OS 7.2.5.5 PS7255/2444) storage by installing a USB flash drive together with an OTG and a usb 3.0 hub but i formatted ...
peris's user avatar
  • 101
2 votes
0 answers
381 views

What is Dynamic system update

Is seamless update(a/b partition) same as dynamic system update Or Can I use DSU in A only devices & how do I know if my device supports dsu updates. I have lineageos 18.1
Vivek Singh's user avatar
1 vote
1 answer
1k views

Rebuilt `super` partition won't boot

I'm trying to customize an Android 11 super partition, removing certain apps. I used https://forum.xda-developers.com/t/guide-ota-tools-lpunpack.4041843/ to unpack the super partition, mounted them as ...
Ytagger's user avatar
  • 21
1 vote
0 answers
321 views

Is it proper to format /data and /cache before running the LineageOS copy_partitions_script?

I've recently flashed LineageOS to my OnePlus6T by following the official guide on the Lineage website, I'm now writing a script I can run on my desktop which will perform the same procedure on a ...
nohatsatthetable's user avatar
1 vote
1 answer
3k views

Faster way to copy slot B back to slot A after update

After update into Slot into B, is there any way to mirror the contents of B back to slot A? So that both slots have the same versions. How do copy complete updated slot B back to slot A efficiently?
Amruth A's user avatar
1 vote
1 answer
2k views

How can I boot to a specific partition with ADB?

If I have ADB access to device, how can I specify the boot partition and reboot. I tried with setprop but this failed, #> setprop ro.boot.slot_suffix _b libc: Unable to set property "ro.boot....
Evan Carroll's user avatar
  • 4,227
1 vote
0 answers
438 views

How can I change the partition (slot) that LineageOS Recovery targets?

If I boot into LinageOS Recovery, how can I tell what slot to target when I use adb sideload?
Evan Carroll's user avatar
  • 4,227
5 votes
1 answer
7k views

How can I tell whether I am booted into the A or B partition?

Android can install to an A or a B partition. This seems to be a default these days. How can I tell which one I am booted into using adb? I am using LineageOS 17.1.
Evan Carroll's user avatar
  • 4,227
2 votes
0 answers
229 views

Persist changes to /system partition on A/B device (Android 9)

I’m trying to add the F-Droid Privileged Extension using the OTA .zip to a Fairphone 3 on which I’ve installed /e/ OS. I tried modifying the update-binary script because the mount points assumed in ...
Socob's user avatar
  • 224
1 vote
1 answer
2k views

What's the purpose of A and B partition slots if both are flashed?

I recently play with LineageOS flashing (or actually adb-sideloading) tutorials, but I guess my question is more generic. In my device there are A and B partitions for everything except the userdata ...
Grzegorz Oledzki's user avatar
1 vote
0 answers
2k views

please explain the: >"adb shell sm partition disk:179,64 mixed 80" command

it is taken from I want to split one MicroSD card into two parts: part adoptable storage, and part normal storage. How can I do this? what is 80 at the end? 80%? I ran that on an Adoptable Storage ...
London's user avatar
  • 11
3 votes
2 answers
2k views

Treble devices not same as A/B devices and vice-versa. Why?

This XDA blog How A/B Partitions and Seamless Updates Affect Custom Development on XDA has some Q&A's, of which : My device supports A/B partitions, does that mean I can make use of a Project ...
beeshyams's user avatar
  • 40.7k
1 vote
0 answers
11k views

A/B partitioning - which slot is really flashed?

I have a Moto Z3 Play with stock ROM and rooted it by Magisk. Phone is seamless updates and treble ready. Everything works fine. Yesterday system updater was trying to update to the newest version but ...
QkiZ's user avatar
  • 262
3 votes
1 answer
1k views

How does update_engine validate a differential update-image with dm-verity enabled?

I am working with Android 8, Android verified boot with dm-verity, and block-based differential seamless A/B updates. To my understanding, the Android update_engine performs some validations of the ...
Ulrich Schuster's user avatar
1 vote
1 answer
1k views

How is system-as-root mounted in Android 9?

In Android 9, system.img consist of system and ramdisk. So kernel will mount system.img directly and implement init program. Next, init will parse init.rc file and mount remaining partitions based on ...
hugtech's user avatar
  • 123
0 votes
1 answer
185 views

Installing rom zip through TWRP replaces recovery instead of intalling os

I formatted my Oneplus 6t and was able to install TWRP, but when I install the zip for LineageOS, instead of installing it as the OS, it just replaces the TWRP recovery with a Lineage one, and I am ...
yanagibashi's user avatar
8 votes
1 answer
16k views

Why can't I write to recovery using fastboot on A/B device?

I'm trying to flash TWRP Recovery into my Mi A2 recovery. However I get the error when flashing: ~$ fastboot flash recovery twrp.img FAILED (remote: '(recovery_a) No such partition') Does anyone ...
Simkoo's user avatar
  • 83
2 votes
3 answers
5k views

Manually create A/B partitions

I have a 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 ...
Aray Karjauv's user avatar
1 vote
2 answers
4k views

Accidentally flashed TWRP on both A/B partitions on Xiaomi Mi A2 Lite

I decided to try to root my Xiaomi Mi A2 Lite. I accidentally flashed twrp-3.2.3-0-daisy.img on both A and B partitions. Because of that, now I can only access the TWRP menu. I think I should download ...
Sapu's user avatar
  • 11
4 votes
1 answer
3k views

Install TWRP to only one slot or offline boot.img file, not both

I want to install TWRP on my phone that uses the A/B partition schema. The official TWRP installer ZIP by default installs to both boot_a and boot_b. This always breaks the system in the inactive slot ...
iBug's user avatar
  • 7,727
3 votes
2 answers
6k views

How do I update an OTA while retaining TWRP and Magisk, only with my phone?

I have a OnePlus 6 that uses the A/B partition schema. Previously with my OnePlus 5 with TWRP, I normally download the OTA package, reboot into TWRP to install it, and then TWRP img and Magisk ZIP ...
iBug's user avatar
  • 7,727
1 vote
1 answer
3k views

`Wipe Cache` option missing in Google Pixel 2! (A/B device)

I am not finding the option Wipe Cache in the recovery mode of Google Pixel 2. can anyone tell how could i enable it if it is disabled by default and is it there in this device or not?
Abhinav Suman's user avatar