Android 是否支持AB分区

Android 是否支持AB分区

bash 复制代码
C:\Users\Administrator>adb shell
bengal:/ $ su
bengal:/ # getprop |grep treble
[ro.treble.enabled]: [true]
bengal:/ #

返回不为空而且为true,那就是支持pt(project treble)分区

进入fastboot模式

bash 复制代码
adb reboot bootloader

查看当前分区

bash 复制代码
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

切换分区

bash 复制代码
C:\Users\Administrator>fastboot set_active b
Setting current slot to 'b'                        OKAY [  0.104s]
Finished. Total time: 0.113s

重启

bash 复制代码
C:\Users\Administrator>fastboot reboot
相关推荐
阿巴斯甜2 小时前
ARouter
android
Andya_net3 小时前
MySQL | MySQL 8.0 权限管理实践-精确赋予库、表只读等权限
android·数据库·mysql
阿巴斯甜3 小时前
Map
android
巫山老妖3 小时前
鹅厂十年:三段式技术成长复盘
android·人工智能·程序员
阿巴斯甜4 小时前
List集合
android
ooseabiscuit5 小时前
Laravel6.x核心优化与特性全解析
android·开发语言·javascript
阿巴斯甜6 小时前
Kotlin 协程 Coroutine
android
Jomurphys6 小时前
Compose 适配 - 通过 UiMediaScope 获取设备信息
android·compose
阿巴斯甜6 小时前
必看12
android
阿巴斯甜7 小时前
必看11
android