On Saturday, November 23, 2013 11:20:57 PM UTC+5:30, Subodh Nijsure wrote:
>
> When creating custom ROM is there a good way to create ROM image that has 
> settings such as say screen timeout, adb usb enabled, etc. 
>
> Or should one run a system to have settings.db file with right values and 
> have it handy when building ROM and  copy that "stashed" copy of 
> settings.db file to 
> /data/data/com.android.providers.settings/databases/settings.db at first 
> boot instance?
>
> Is there a more correct/elegant way of achieving this?
>

You can have custom values for some settings by defining your own overlay 
for the SettingsProvider deaults.xml:

https://android.googlesource.com/platform/frameworks/base/+/android-4.4_r1.2/packages/SettingsProvider/res/values/defaults.xml

Refer this example for BeagleBone Black from rowboat project:

https://gitorious.org/rowboat/vendor-ti-beagleboneblack/source/d32584d01e374a28bdd8cbe606154d660db48230:overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml

-Vishveshwar

>
> -Subodh
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to