Where can I change default location mode in AOSP.
I have to set the location service as OFF. I have checked this file
/frameworks/base/core/res/res/values/config.xml
but I couldn't find any variation by changing values.
Is there a centralized file/folder for all the settings?
There's a XML file at /frameworks/base/packages/SettingsProvider/res/values/defaults.xml
where you can set default values.
To set default location provider you would need to set def_location_providers_allowed
. AOSP's default value is gps
, but you can set network
for network location provider or anything else to disable it.