ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2014年1月17日 星期五

Android : 一些 setting 的 default setting

ref: http://androidextrememodding.blogspot.tw/2012/10/android-default-parameters.html

整段 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

沒有留言:

標籤

網誌存檔