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
相关推荐
vocal2 小时前
【我的安卓第一课】Android 多线程与异步通信机制(1)
android
顾林海2 小时前
ViewModel 销毁时机详解
android·面试·android jetpack
恋猫de小郭4 小时前
Google I/O Extended :2025 Flutter 的现状与未来
android·前端·flutter
@Ryan Ding4 小时前
MySQL主从复制与读写分离概述
android·mysql·adb
移动开发者1号5 小时前
Android 同步屏障(SyncBarrier)深度解析与应用实战
android·kotlin
移动开发者1号5 小时前
深入协程调试:协程调试工具与实战
android·kotlin
雨白13 小时前
Jetpack系列(三):Room数据库——从增删改查到数据库平滑升级
android·android jetpack
花王江不语16 小时前
android studio 配置硬件加速 haxm
android·ide·android studio
江太翁18 小时前
mediapipe流水线分析 三
android·mediapipe
与火星的孩子对话19 小时前
Unity进阶课程【六】Android、ios、Pad 终端设备打包局域网IP调试、USB调试、性能检测、控制台打印日志等、C#
android·unity·ios·c#·ip