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
相关推荐
成都大菠萝10 小时前
Android Car CarProperty 车辆信号链路
android
敲代码的鱼10 小时前
PDF 预览与签名批注写回 支持安卓 iOS 鸿蒙 UTS插件
android·前端·ios
时光足迹12 小时前
uni-app 视频通话实战:康复师与患者视频问诊的 6 个致命 Bug 与解决方案
android·ios·uni-app
Coffeeee16 小时前
闲聊几句,Android老哥们,你们多久没做技改需求了
android·程序员·代码规范
萝卜er17 小时前
Fragment 生命周期与状态恢复-《Android深水区(四)》
android
萝卜er17 小时前
Intent 显式、隐式与 PendingIntent-《Android深水区(五)》
android
Kapaseker19 小时前
一文吃透 Kotlin 集合操作符
android·kotlin
三少爷的鞋20 小时前
Main-safe:现代Android 架构真正的分水岭
android
沐怡旸1 天前
深入解析 Android Performance Analyzer (APA) 底层架构与技术原理
android
李斯维1 天前
从历史的角度看 Android 软件架构
android·架构·android jetpack