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
相关推荐
louisgeek11 小时前
Android Studio 和 Git
android
solo_9915 小时前
Android Event 日志完全指南
android
孙晓鹏life16 小时前
MySQL-Seconds_behind_master的精度误差
android·mysql·adb
雨白16 小时前
C 语言文件操作核心
android
鱼儿也有烦恼18 小时前
01.搭建Android Studio开发环境
android·android studio
m0_7381207218 小时前
PHP代码审计基础——面向对象(四)
android·开发语言·网络·安全·github·php
Coffeeee20 小时前
搞Android的怎么可能搞不懂Context Engineering?
android·人工智能·ai编程
Carson带你学Android20 小时前
Gemini Nano 开发实战:让你的App轻松拥有端侧 AI 功能
android·ai编程
TDengine (老段)21 小时前
TDengine SMA 索引 — 块级/文件级统计索引
android·大数据·服务器·数据库·人工智能·时序数据库·tdengine
心中有国也有家21 小时前
AtomGit Flutter 鸿蒙客户端: AnimatedScale 与 AnimatedContainer 联合实战
android·javascript·flutter·华为·harmonyos