FileDocCategorySizeDatePackage
Content.javaAPI DocAndroid 5.1 API26595Thu Mar 12 22:22:08 GMT 2015com.android.commands.content

Content

public class Content extends Object
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\"

Fields Summary
private static final String
USAGE
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        Parser parser = new Parser(args);
        Command command = parser.parseCommand();
        if (command != null) {
            command.execute();
        }