Input settings
:
XXX:/ $ settings
usage: settings [--user <USER_ID> | current] get namespace key
settings [--user <USER_ID> | current] put namespace key value
settings [--user <USER_ID> | current] delete namespace key
settings [--user <USER_ID> | current] list namespace
'namespace' is one of {system, secure, global}, case-insensitive
If '--user <USER_ID> | current' is not given, the operations are performed on the system user.
'namespace' is one of {system, secure, global}, case-insensitive
For example:
settings put secure location_providers_allowed gps //Enable gps
settings put global encoded_surround_output 2 //Set surround as 'always'
settings get global encoded_surround_output //Output '2'
public static final int ENCODED_SURROUND_OUTPUT_AUTO = 0;
public static final int ENCODED_SURROUND_OUTPUT_NEVER = 1;
public static final int ENCODED_SURROUND_OUTPUT_ALWAYS = 2;