User Tools

Site Tools


android:oneplus:configinfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
android:oneplus:configinfo [2020/09/16 13:36] – created oscarandroid:oneplus:configinfo [2022/01/15 11:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Get Configuration Information ====== ====== Get Configuration Information ======
-===== Using A/B partitions =====+===== Check Using A/B partitions =====
 If your device is running anything older than Android 7.1, skip this section as your device will not be using A/B nor system-as-root. First, you need to know whether your device is using A/B partitions. If you don’t know, use a terminal (adb shell or any terminal emulator) to check with this command: If your device is running anything older than Android 7.1, skip this section as your device will not be using A/B nor system-as-root. First, you need to know whether your device is using A/B partitions. If you don’t know, use a terminal (adb shell or any terminal emulator) to check with this command:
 <code>getprop ro.build.ab_update</code> <code>getprop ro.build.ab_update</code>
Line 9: Line 9:
 <code>getprop ro.build.system_root_image</code> <code>getprop ro.build.system_root_image</code>
 If the result is true, then your device is using system-as-root. If the result is true, then your device is using system-as-root.
 +
 +===== Find active slot (in fastboot)=====
 +Boot into fastboot bootloader and execute:
 +<code>fastboot getvar all</code>
 +Wait for a lot of text to finish scrolling and look for the "**(bootloader) current-slot**" text. This should actually be toward the bottom without the need to scroll up. The letter after this text will be the currently 
 +active partition slot for your device
 +===== Find active slot (via ADB)=====
 +<code>adb shell
 +getprop | grep slot</code>
 +
 +===== Change active slot =====
 +Boot into fastboot bootloader and execute:
 +<code>fastboot --set-active=b (or fastboot --set-active='b')? </code>
  
 ===== List partitions ===== ===== List partitions =====
 getprop ro.boot.bootdevice getprop ro.boot.bootdevice
android/oneplus/configinfo.1600263369.txt.gz · Last modified: (external edit)