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
Change-Id: Idcb04cf3b981db8e704c485993225e366dbc8db4
2 files changed