The settings data is stored in the com.android.providers.settings/databases/settings.db
The default data for the data in the database is defined in Frameworks/base/packages/settingsprovider/res/values/defaults.xml, and if you want to add a new field to the database, you can use the following steps:
1. Define a default value for the newly added data in the Defaults.xml (which can be given directly in your code, of course)
2. In frameworks/base/packages/settingsprovider/src/com/android/providers/settings/ Add code for the new field in the Loadsystemsettings () method in Databasehelper.java, as follows:
Loadintegersetting (stmt, "homescreen_switch_effict"),
R.INTEGER.DEF_HOMESCREEN_SWITCH_EFFICT);
3, recompile a settingsprovider.apk, and then replace the original settingsprovider.apk
4, with Settings.System.putInt (); Settings.System.getInt () to set and get the values set