2) settings get settings get 用于获取global ,system,secure 中单个key的值,比如获取global中auto_time 这个key的值
1 2 3
console:/ $ settings get global auto_time 0 console:/ $
3) settings put settings put 用于设置global ,system,secure 中单个key的值,比如设置global中auto_time 这个key的值
1 2 3 4
console:/ $ settings put global auto_time 1 console:/ $ settings get global auto_time 1 console:/ $
对于 system,secure中的key ,获取和设置命令类似
1 2 3 4 5 6 7 8 9
console:/ $ console:/ $ settings get system accelerometer_rotation 0 console:/ $ settings put system accelerometer_rotation 1 console:/ $ console:/ $ console:/ $ settings get system accelerometer_rotation 1 console:/ $