Skip to content

Commit abb4a70

Browse files
committed
Update the content shell command's usage instructions.
The usage instructions of the content shell command were missing some excape charecters which caused the examples not to work. As a result of the incorrect instructions users are prone to constructing incorrect commands. bug:7526252 Change-Id: I2fcc4dd1fd05806fe951245651b97e40a4786d24
1 parent f7f1c6a commit abb4a70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmds/content/src/com/android/commands/content/Content.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ public class Content {
8383
+ " Example:\n"
8484
+ " # Change \"new_setting\" secure setting to \"newer_value\".\n"
8585
+ " adb shell content update --uri content://settings/secure --bind"
86-
+ " value:s:newer_value --where \"name=\'new_setting\'\"\n"
86+
+ " value:s:newer_value --where \"name=\\'new_setting\\'\"\n"
8787
+ "\n"
8888
+ "usage: adb shell content delete --uri <URI> [--user <USER_ID>] --bind <BINDING>"
8989
+ " [--bind <BINDING>...] [--where <WHERE>]\n"
9090
+ " Example:\n"
9191
+ " # Remove \"new_setting\" secure setting.\n"
9292
+ " adb shell content delete --uri content://settings/secure "
93-
+ "--where \"name=\'new_setting\'\"\n"
93+
+ "--where \"name=\\'new_setting\\'\"\n"
9494
+ "\n"
9595
+ "usage: adb shell content query --uri <URI> [--user <USER_ID>]"
9696
+ " [--projection <PROJECTION>] [--where <WHERE>] [--sort <SORT_ORDER>]\n"
@@ -101,7 +101,7 @@ public class Content {
101101
+ " # Select \"name\" and \"value\" columns from secure settings where \"name\" is "
102102
+ "equal to \"new_setting\" and sort the result by name in ascending order.\n"
103103
+ " adb shell content query --uri content://settings/secure --projection name:value"
104-
+ " --where \"name=\'new_setting\'\" --sort \"name ASC\"\n"
104+
+ " --where \"name=\\'new_setting\\'\" --sort \"name ASC\"\n"
105105
+ "\n";
106106

107107
private static class Parser {

0 commit comments

Comments
 (0)