Add bracket checking support to SQLiteTokenizer

Add OPTION_CHECK_BRACKETS to SQLiteTokenizer to allow checking for
unbalanced brackets. This can be used to prevent SQL injection where
user-provided selection strings attempt to break out of parentheses.

Bug: 393377017
Test: atest SQLiteTokenizerTest
Flag: EXEMPT BUGFIX

Autogenerated by MendIt (go/androidmendit)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:07a576269b3c322f1dbda670ef4b811305b74863
Merged-In: I84dd342b7ee2328413c9aef5734d7ffefafa4d85
Change-Id: I84dd342b7ee2328413c9aef5734d7ffefafa4d85
2 files changed