• Jeff Sharkey's avatar
    DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. · 136692bd
    Jeff Sharkey authored
    Developers often accept selection clauses from untrusted code, and
    SQLiteQueryBuilder already supports a "strict" mode to help catch
    SQL injection attacks.  This change extends the builder to support
    update() and delete() calls, so that we can help secure those
    selection clauses too.
    
    Bug: 111085900
    Test: atest packages/providers/DownloadProvider/tests/
    Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
    Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
    Change-Id: Ib4fc8400f184755ee7e971ab5f2095186341730c
    Merged-In: Ib4fc8400f184755ee7e971ab5f2095186341730c
    (cherry picked from commit 09d49531)
    136692bd
Name
Last commit
Last update
apct-tests/perftests Loading commit data...
api Loading commit data...
cmds Loading commit data...
config Loading commit data...
core Loading commit data...
data Loading commit data...
docs Loading commit data...
drm Loading commit data...
graphics/java/android Loading commit data...
keystore Loading commit data...
legacy-test Loading commit data...
libs Loading commit data...
location Loading commit data...
lowpan Loading commit data...
media Loading commit data...
native Loading commit data...
nfc-extras Loading commit data...
obex Loading commit data...
opengl/java Loading commit data...
packages Loading commit data...
proto Loading commit data...
rs Loading commit data...
samples/training/network-usage Loading commit data...
sax Loading commit data...
services Loading commit data...
telecomm/java Loading commit data...
telephony/java Loading commit data...
test-runner Loading commit data...
tests Loading commit data...
tools Loading commit data...
vr Loading commit data...
wifi Loading commit data...
Android.bp Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
MODULE_LICENSE_APACHE2 Loading commit data...
NOTICE Loading commit data...
PREUPLOAD.cfg Loading commit data...
pathmap.mk Loading commit data...