我最近在谷歌的源代码网站上偶然发现了Brillo。在上面,我找到了几个扩展名为bpt的文件。这些是JSON文件,用于描述设备上的分区。Here是基本文件的内容:
{
"settings": {
"disk_size": "4 GiB"
},
"partitions": [
{
"ab": true,
"label": "boot",
"size": "32 MiB",
"guid": "auto",
"type_guid": "brillo_boot"
},
{
"ab": true,
"label": "system",
"size": "512 MiB",
"guid": "auto",
"type_guid": "brillo_system"
},
{
"ab": true,
"label": "odm",
"size": "512 MiB",
"guid": "auto",
"type_guid": "brillo_odm"
},
{
"label": "misc",
"size": "1 MiB",
"type_guid": "brillo_misc"
},
{
"label": "userdata",
"grow": true,
"guid": "auto",
"type_guid": "brillo_userdata"
}
]
}我找不到任何关于这方面的文档。它是一种新的分区方案(例如,MBR、GPT、APM、Tegra PT、MTD的命令行分区表解析等)吗?
发布于 2016-07-25 11:09:08
带有.bpt扩展名的JSON文件由bpttool使用,bpttool是一个用于为Brillo和Android分区磁盘镜像的工具。
这是开源的,托管在上
分区指令在.bpt JSON文件中表示。
查看存储库的历史(相对较新,只有4个月的历史)。这最初是为Brillo引入的,可能很快就会出现在Android版本中(也许是在Nougat?)。这可能是GPT分区方案的替代方案或其衍生方案。
https://stackoverflow.com/questions/38512742
复制相似问题