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
相关推荐
爱勇宝9 小时前
我做了一个只用来搜歌词的小 App
android·前端·后端
众少成多积小致巨12 小时前
JNI (Java Native Interface) 技术手册中文参考指南
android·java·c++
Coffeeee18 小时前
如何使用Glide和Coil加载WebP动图
android·kotlin·glide
Kapaseker19 小时前
5 分钟搞懂 Kotlin DSL
android·kotlin
恋猫de小郭20 小时前
AI Agent 开发究竟是啥?如何用 AI 开发 Agent ?深入浅出给你一套概念
android·前端·ai编程
黄林晴20 小时前
Android 17 正式发布!target 37 一大批旧代码直接不能用了
android
Carson带你学Android20 小时前
Android 17 正式发布:AI 终于成了系统能力
android·前端·ai编程
三少爷的鞋21 小时前
当 UseCase 开始长期监听,它可能已经不是 UseCase 了
android
恋猫de小郭1 天前
Android 限制侧载新进展,谷歌联合国内厂商推验证计划
android·前端·flutter
恋猫de小郭1 天前
解读 Android 17 全新内存限制,有没有“豁免”后门?
android·前端·flutter