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
8 files changed