在Android系统当中,系统设置保存着全局性、系统级别的用户编好设置,比如像飞行模式开关、是否开启手机静音模式时震动、屏幕休眠时长等状态值。这些用户偏好的设置很多就保存在SettingsProvider中,在Android 6.0及以后版本,SettingsProvider被重构,Android从性能、安全等方面考虑,把SettingsProvider中原本保存在settings.db中的数据,目前全部保存在XML文件中。并且对SettingsProvider对数据进行了分类,分别是Global、System、Secure三种类型: Global:所有的偏好设置对系统的所有用户公开,第三方APP有读没有写的权限; 数据保存的位置为: /data/system/users/0/settings_global.xml //通过adb命令可以查看global类型的数据 //比如查看系统设置是否自动确定时间的开关 adb shell settings get global auto_time 1 //通过adb命令也可以修改global类型的数据 //比如修改系统设置自动确定时间的开关...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with int
Contact int, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack