Android 'settings' command

Input settings:

XXX:/ $ settings
usage:  settings [--user  | current] get namespace key
        settings [--user  | current] put namespace key value
        settings [--user  | current] delete namespace key
        settings [--user  | current] list namespace

'namespace' is one of {system, secure, global}, case-insensitive
If '--user  | 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;

你可能感兴趣的:(Android 'settings' command)