RESTRICT AUTOMERGE
Add code to check for SELECT statements in query

Add code that prevents apps with only a restricted view of the SMS
databases from using subqueries in their queries to the SMS provider,
which may potentially leak data from the unrestricted view.

Fixes: 143229845
Test: CTS
Change-Id: I55b56e9b0bc7d2bf0d9aef00e19f9157efc1bb93
4 files changed