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
相关推荐
一条上岸小咸鱼1 小时前
Kotlin 基本数据类型(一):Numbers
android·前端·kotlin
Huntto2 小时前
最小二乘法计算触摸事件速度
android·最小二乘法·触摸事件·速度估计
一笑的小酒馆2 小时前
Android中使用Compose实现各种样式Dialog
android
红橙Darren2 小时前
手写操作系统 - 编译链接与运行
android·ios·客户端
鹏多多.6 小时前
flutter-使用device_info_plus获取手机设备信息完整指南
android·前端·flutter·ios·数据分析·前端框架
来来走走11 小时前
Flutter开发 网络请求
android·flutter
独行soc17 小时前
2025年渗透测试面试题总结-18(题目+回答)
android·python·科技·面试·职场和发展·渗透测试
雨白18 小时前
登录和授权:Cookie与Authorization Header机制详解
android
Frank_HarmonyOS19 小时前
【Android -- 多线程】Handler 消息机制
android
一条上岸小咸鱼19 小时前
Kotlin 基本数据类型(一):概述及分类
android·kotlin