DO NOT MERGE Remove permission guard on getTestProviderCurrentRequests()

This permission was only supposed to be in S, and was accidentally
cherrypicked into R as part of a larger change.

Bug: 153051820
Bug: 153051800
Bug: 152897902
Test: presubmits
Change-Id: I1454351a5ad34149a58db945463da28ad75c1d24
This commit is contained in:
Soonil Nagarkar
2020-04-03 09:33:07 -07:00
parent 80849883c6
commit e38efca813

View File

@@ -2598,8 +2598,6 @@ public class LocationManagerService extends ILocationManager.Stub {
@Override @Override
@NonNull @NonNull
public List<LocationRequest> getTestProviderCurrentRequests(String provider) { public List<LocationRequest> getTestProviderCurrentRequests(String provider) {
mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_DEVICE_CONFIG, null);
LocationProviderManager manager = getLocationProviderManager(provider); LocationProviderManager manager = getLocationProviderManager(provider);
if (manager == null) { if (manager == null) {
throw new IllegalArgumentException("provider doesn't exist: " + provider); throw new IllegalArgumentException("provider doesn't exist: " + provider);