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
1
vote
1answer
38 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....
1
vote
0answers
37 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?
3
votes
1answer
282 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.
2
votes
0answers
50 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 ...
0
votes
0answers
518 views

OnePlus 6 bootloop no such partition (recovery_b)

Long story short, I did wanna install Snapchat, but my phone was rooted with magisk, so I did wanna do an reinstall of the latest OP6 10 andr. version. But now I get in a bootloop the issue I see now ...
1
vote
0answers
104 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 ...
1
vote
0answers
196 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 ...
3
votes
2answers
875 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 ...
0
votes
0answers
46 views

Ab partition for root environment!

I have a infinix smart 3 plus phone. This phone supports Treble project and Slot A is active. Architecture:- arm v7a,(32bit). OS:-Android pie. But after wipe data and system and then install GSI ...
1
vote
0answers
3k 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 ...
3
votes
1answer
283 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 ...
1
vote
1answer
513 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 ...
0
votes
1answer
95 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 ...
5
votes
1answer
6k 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 ...
1
vote
2answers
2k views

Manually create A/B partitions

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 ...
1
vote
1answer
2k 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 ...
3
votes
2answers
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 ...
1
vote
1answer
2k 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?