Loading
Make LocationAccessQuery's builder safer to use
Add new methods on LocationAccessQuery.Builder to make it harder to screw up when using. Changes include: * Mandatory specification of min sdk levels for enforcing both fine and coarse permission * Mandatory "are-you-sure" check when both fine and coarse are above the base level (i.e. when there are api levels that are left unprotected) Also adapt TelephonyRegistry's permission checks to follow these new requirements on the builder. Fixes: 157170257 Test: CTS, unit tests, manual Change-Id: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d