No blame for location usage if no location sensitive field is queried
ServiceStateProvide calls LocationAccessPolicy#checkLocationPermission
to check if the calling app has location permission. But this
API blames a location usage when the app has location granted.
To avoid caller get blamed if no location protected filed is queried,
ServiceStateProvide will perform location permission check only
app explicitly queries loction protected fields.
Bug: 179730843
Test: atest ServiceStateProvideTest
Merged-In: Idcb04cf3b981db8e704c485993225e366dbc8db4
Change-Id: Idcb04cf3b981db8e704c485993225e366dbc8db4
(cherry picked from commit 353652c095b138e9629de5a929f19d683db20602)
2 files changed