AOSP/Gallery2 - Updated to sdkVersion 29. Deleted usage of GROUP BY from the WHERE clause. Changed all COUNT(*) to COUNT(_id).
API 29 disallows SQL injection by trying to include it in a "WHERE" clause. Galley app is used for CTS testing and that doesn't require the GROUP BY clause.
BUG: 143667204 (verified this bug doesn't happen)
Test: manual - Ran the following on Pixel phone. Tested the gallery2 UI manually.
$ make -j 40
$ make Gallery2 -j
$ ls -l out/target/product/generic/system/product/app/Gallery2/Gallery2.apk
... 7608845 Nov 5 16:58 out/target/product/generic/system/product/app/Gallery2/Gallery2.apk
$ adb install -r -d -g out/target/product/generic/system/product/app/Gallery2/Gallery2.apk
5 files changed