- 查看SettingsProvider数据库中表信息,操作这个三张关键的表system、secure、global
adb shell settings list system|secure|global
- 根据Name查看SettingsProvider数据库表格
adb shell settings get [system][secure][global] [Name]
例如:查看system表的自定义字段custom_key
adb shell settings get system custom_key
- 根据Name向对应的数据库中插入value
adb shell settings put [system][secure][global] [Name] [Value]
例如:向system表的自定义字段custom_key写入值true
adb shell settings put system custom_key true