adb shell content
usage: adb shell content [subcommand] [options]
usage: adb shell content insert --uri [--user ] --bind [--bind ...] [--extra ...] a content provider URI. binds a typed value to a column and is formatted: :: where: specifies data type such as: b - boolean, s - string, i - integer, l - long, f - float, d - double, n - null Note: Omit the value for passing an empty string, e.g column:s: Example: # 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
usage: adb shell content update --uri [--user ] [--where ] [--extra ...] is a SQL style where clause in quotes (You have to escape single quotes - see example below). Example: # Change "new_setting" secure setting to "newer_value". adb shell content update --uri content://settings/secure --bind value:s:newer_value --where "name='new_setting'"
usage: adb shell content delete --uri [--user ] --bind [--bind ...] [--where ] [--extra ...] Example: # Remove "new_setting" secure setting. adb shell content delete --uri content://settings/secure --where "name='new_setting'"
usage: adb shell content query --uri [--user ] [--projection ] [--where ] [--sort ] [--extra ...] is a list of colon separated column names and is formatted: [:...] is the order in which rows in the result should be sorted. Example: # Select "name" and "value" columns from secure settings where "name" is equal to "new_setting" and sort the result by name in ascending order. adb shell content query --uri content://settings/secure --projection name:value --where "name='new_setting'" --sort "name ASC"
usage: adb shell content call --uri --method [--arg ] [--extra ...] is the name of a provider-defined method is an optional string argument is like --bind above, typed data of the form :{b,s,i,l,f,d}:
usage: adb shell content read --uri [--user ] Example: adb shell 'content read --uri content://settings/system/ringtone_cache' > host.ogg
usage: adb shell content write --uri [--user ] Example: adb shell 'content write --uri content://settings/system/ringtone_cache' < host.ogg
usage: adb shell content gettype --uri [--user ] Example: adb shell content gettype --uri content://media/internal/audio/media/
查看原文
发表评论