Revert "Allow location provider to deep link into permissions UI"
This reverts commit ed98828335.
Reason for revert: The exposed API is not needed anymore
Test: Built
Bug: 118437704
Change-Id: I155eb0f7241327b34ea5beaabee514ba2a018998
This commit is contained in:
@@ -22,7 +22,6 @@ import static android.Manifest.permission.LOCATION_HARDWARE;
|
||||
import static android.Manifest.permission.WRITE_SECURE_SETTINGS;
|
||||
|
||||
import android.Manifest;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.RequiresFeature;
|
||||
import android.annotation.RequiresPermission;
|
||||
@@ -2401,29 +2400,4 @@ public class LocationManager {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow the {@link android.location.LocationManager#getNetworkProviderPackage location
|
||||
* provider} to start the UI to modify the location permission for a package.
|
||||
*
|
||||
* <p>Can only be called by the location provider.
|
||||
*
|
||||
* @param packageName The package the permission belongs to
|
||||
* @param permission The (individual) location permission to switch
|
||||
*
|
||||
* @return A one-shot pending intent that starts the permission management UI or {@code null} if
|
||||
* the intent cannot be created
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public @Nullable PendingIntent createManageLocationPermissionIntent(@NonNull String packageName,
|
||||
@NonNull String permission) {
|
||||
try {
|
||||
return mService.createManageLocationPermissionIntent(packageName, permission);
|
||||
} catch (RemoteException e) {
|
||||
e.rethrowFromSystemServer();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user