整段 COPY:
There is a really simple way to set default values of Android settings when building a new custom firmware. Most of those parameters are declared in a resource xml file from the SettingsProvider base package located at: frameworks/base/packages/SettingsProvider/res/values/defaults.xml Unfortunately not of all the default parameters can be set here. For some unknown reasons (you must ask Google for this) there are some other configuration items that are set in java code at: frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java This is true, for example, for the "Stay awake" option. Another suggestion : always check for specific device source overlay...sometimes there already are customized resource or java files in the "device" directory.
也就是說, checkout defaults.xml 和 DatabaseHelper.java
另外,有關 configuration 的部份...
ref: http://stackoverflow.com/questions/16770639/how-to-set-default-properties-in-aosp
內容 copy:
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
沒有留言:
張貼留言