diff options
author | Steve McKay <smckay@google.com> | 2016-12-02 11:35:35 -0800 |
---|---|---|
committer | Steve McKay <smckay@google.com> | 2016-12-09 12:31:44 -0800 |
commit | ea93fe75396465b26429cfe1c1dcfadf7351354f (patch) | |
tree | cc979179513a34dc41035455d74ee10dba2d078a /cmds/content/src | |
parent | eddb8b0cf4abf12e662dd7032275d54485da1fe9 (diff) |
Replace ContentProvider SQL args w/ Bundle & Constants.
Test: cts-tradefed run cts-dev -m CtsContentTestCases
Bug: 30927484
Change-Id: Idb9dbc2b80896e9f8474a0db71353b7a3810d597
Diffstat (limited to 'cmds/content/src')
-rw-r--r-- | cmds/content/src/com/android/commands/content/Content.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmds/content/src/com/android/commands/content/Content.java b/cmds/content/src/com/android/commands/content/Content.java index 63641a8e38f4..3687f10f9974 100644 --- a/cmds/content/src/com/android/commands/content/Content.java +++ b/cmds/content/src/com/android/commands/content/Content.java @@ -19,6 +19,7 @@ package com.android.commands.content; import android.app.ActivityManager; import android.app.ContentProviderHolder; import android.app.IActivityManager; +import android.content.ContentResolver; import android.content.ContentValues; import android.content.IContentProvider; import android.database.Cursor; @@ -589,8 +590,8 @@ public class Content { @Override public void onExecute(IContentProvider provider) throws Exception { - Cursor cursor = provider.query(resolveCallingPackage(), mUri, mProjection, mWhere, - null, mSortOrder, null); + Cursor cursor = provider.query(resolveCallingPackage(), mUri, mProjection, + ContentResolver.createSqlQueryBundle(mWhere, null, mSortOrder), null); if (cursor == null) { System.out.println("No result found."); return; |