sabato 13 ottobre 2012

Android default parameters

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.

 
 

Nessun commento:

Posta un commento