2 ms·
The main code that executes when you turn off the location setting for a user that stops apps from getting your location is LocationManagerService.refreshAppOps
by charcircuit 4y ago
The main code that executes when you turn off the location setting for a user that stops apps from getting your location is LocationManagerService.refreshAppOpsRestrictions
https://cs.android.com/android/platform/superproject/+/master:frameworks/base/services/core/java/com/android/server/location/LocationManagerService.java;l=1520;bpv=1;bpt=1?q=Ilocationmanager https://cs.android.com/android/platform/superproject/+/maste...
This function removes the coarse and fine permissions from all apps except those who are on the Emergency Bypass Allowlist or the ADAS Bypass Allowlist.
https://source.android.com/docs/devices/automotive/location_bypass/location_bypass_policy https://source.android.com/docs/devices/automotive/location_...