美文网首页Android
Android 'settings' comma

Android 'settings' comma

作者: JaedenKil | 来源:发表于2018-04-25 11:24 被阅读31次

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;

相关文章

网友评论

    本文标题:Android 'settings' comma

    本文链接:https://www.haomeiwen.com/subject/utpllftx.html