commit | 9d70f53e0d2eda1356af27b2a083c96257ff872e | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Mon Sep 19 15:43:10 2016 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Tue Sep 27 11:12:19 2016 -0700 |
tree | 499f56e4adb8c920ef1c20b935a5d4f2fbf57a58 | |
parent | d1b4bef03452af250ca3930cbfb2a52ad0ab0ab4 [diff] |
SQL token checker to detect uses of hidden tables/columns - Detect invalid SQL code (e.g. contains a semi-colon) in not only WHERE for query() but in other places too. - Disallow use of the word "select" and table/view names in the supplied code to prevent subqueries. - This mechanism will be used to hide columns in the futire too. Test: adb shell am instrument -w com.android.providers.contacts.tests Bug 31559073 Change-Id: Ib4293b4caf7e341186ee8bd4cc2d7dad7155c48d