简体   繁体   English

如何创建自定义build.prop文件到aosp中的自定义目录?

[英]How to create custom build.prop file to custom directory in aosp?

I am working on aosp and have two questions about build.prop. 我正在使用aosp,对build.prop有两个问题。

1) Normally, build.prop file is located to /system directory. 1)通常,build.prop文件位于/ system目录。 I'd like create to custom build.prop file and save it to different directory. 我想创建自定义build.prop文件并将其保存到其他目录。 For example, I have tvconfig directory and want to create it in here. 例如,我有tvconfig目录,并想在这里创建它。 Could I read properties from /tvconfing/build.prop via SystemProperties? 我可以通过SystemProperties从/tvconfing/build.prop中读取属性吗?

2) Could I use different name for prop file except build.prop for example mycustom.prop 2)我可以为build.prop以外的prop文件使用其他名称吗,例如mycustom.prop

There's a partition called oem and you can put your-name.prop file on it and the properties in it is still readable by using getprop. 有一个名为oem的分区,您可以在其中放置your-name.prop文件,并且使用getprop仍可以读取其中的属性。

https://source.android.com/devices/bootloader/product-partitions https://source.android.com/devices/bootloader/product-partitions

By the way, why do you need another prop file? 顺便说一句,为什么还需要另一个prop文件? What's wrong with just put your property in build.prop? 仅将您的属性放入build.prop有什么问题?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM