如何设置在AOSP默认属性 [英] How to set default properties in AOSP
本文介绍了如何设置在AOSP默认属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在哪里我可以在我的自定义更改默认安卓
设备属性 AOSP
建?
例如:
- GPS - 开;
- 同步 - ON;
- 亮度 - AUTO;
- 蓝牙 - 关闭;
- 无线网络 - 关闭;
- 声音 - 默认的声音;
- 在振动时圈 - 关;
这些设置应该在构建定义。
是否有集中的地方(存储)存储位置,或全部设置设置
应用程序本身设置的所有约战安卓
平台模块?
解决方案
有两个主要的地方,我通常检查的默认值:
/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
和
/frameworks/base/core/res/res/values/config.xml
它也值得检查设备目录覆盖刚刚覆盖原来的文件:
<$p$p><$c$c>/device/<company-name>/<product-name>/overlay/frameworks/base/core/res/res/values/config.xml
默认壁纸往往难以coded到:
/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg
Where can I change default Android
device properties in my custom AOSP
build?
E.g.:
- GPS - ON;
- Sync - ON;
- Brightness - AUTO;
- Bluetooth - OFF;
- WiFi - OFF;
- Sound - default sound;
- Vibrate when ring - OFF;
These settings should be defined in build.
Is there centralized place (storage) for all settings where they are stored, or Settings
application gathers by itself settings from all Android
platform modules?
解决方案
There are two main places I usually check for defaults:
/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
and:
/frameworks/base/core/res/res/values/config.xml
Its also worth checking the device directory for overlays which just override the original files:
/device/<company-name>/<product-name>/overlay/frameworks/base/core/res/res/values/config.xml
Default wallpaper usually hardcoded to:
/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg
这篇关于如何设置在AOSP默认属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文