Android 是否支持AB分区
C:\Users\Administrator>adb shell
bengal:/ $ su
bengal:/ # getprop |grep treble
[ro.treble.enabled]: [true]
bengal:/ #
返回不为空而且为true,那就是支持pt(project treble)分区
进入fastboot模式
adb reboot bootloader
查看当前分区
C:\Users\Administrator>adb reboot
error: no devices/emulators found
C:\Users\Administrator>adb reboot fastboot
C:\Users\Administrator>fastboot getvar current-slot
current-slot: a
Finished. Total time: 0.007s
切换分区
C:\Users\Administrator>fastboot set_active b
Setting current slot to 'b' OKAY [ 0.104s]
Finished. Total time: 0.113s
重启
C:\Users\Administrator>fastboot reboot