This class is a command line utility for manipulating content. A client
can insert, update, and remove records in a content provider. For example,
some settings may be configured before running the CTS tests, etc.
Examples:
-
# Add "new_setting" secure setting with value "new_value".
adb shell content insert --uri content://settings/secure --bind name:s:new_setting
--bind value:s:new_value
-
# Change "new_setting" secure setting to "newer_value" (You have to escape single quotes in
the where clause).
adb shell content update --uri content://settings/secure --bind value:s:newer_value
--where "name=\'new_setting\'"
-
# Remove "new_setting" secure setting.
adb shell content delete --uri content://settings/secure --where "name=\'new_setting\'"
-
# Query \"name\" and \"value\" columns from secure settings where \"name\" is equal to"
\"new_setting\" and sort the result by name in ascending order.\n"
adb shell content query --uri content://settings/secure --projection name:value
--where "name=\'new_setting\'" --sort \"name ASC\"
|