Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9610a161 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Remove RuntimePermPresSvc#onRevokeRuntimePerm

This was newly added to a now deprecated service. we can just
remove it and not provide backwards compatibility

Test: Built
Bug: 123221743
Change-Id: Ic7ff6674d3eafd98cd00f3a3e1d92c8161ba3f16
parent 3e6de26e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -5548,7 +5548,6 @@ package android.permissionpresenterservice {
    method @Deprecated public final void attachBaseContext(android.content.Context);
    method @Deprecated public final android.os.IBinder onBind(android.content.Intent);
    method @Deprecated public abstract java.util.List<android.content.pm.permission.RuntimePermissionPresentationInfo> onGetAppPermissions(@NonNull String);
    method @Deprecated public abstract void onRevokeRuntimePermission(@NonNull String, @NonNull String);
    field @Deprecated public static final String SERVICE_INTERFACE = "android.permissionpresenterservice.RuntimePermissionPresenterService";
  }
+0 −1
Original line number Diff line number Diff line
@@ -27,5 +27,4 @@ import android.os.RemoteCallback;
 */
oneway interface IRuntimePermissionPresenter {
    void getAppPermissions(String packageName, in RemoteCallback callback);
    void revokeRuntimePermission(String packageName, String permissionName);
}
+0 −20
Original line number Diff line number Diff line
@@ -78,15 +78,6 @@ public abstract class RuntimePermissionPresenterService extends Service {
    public abstract List<RuntimePermissionPresentationInfo> onGetAppPermissions(
            @NonNull String packageName);

    /**
     * Revokes the permission {@code permissionName} for app {@code packageName}
     *
     * @param packageName The package for which to revoke
     * @param permissionName The permission to revoke
     */
    public abstract void onRevokeRuntimePermission(@NonNull String packageName,
            @NonNull String permissionName);

    @Override
    public final IBinder onBind(Intent intent) {
        return new IRuntimePermissionPresenter.Stub() {
@@ -99,17 +90,6 @@ public abstract class RuntimePermissionPresenterService extends Service {
                        obtainMessage(RuntimePermissionPresenterService::getAppPermissions,
                                RuntimePermissionPresenterService.this, packageName, callback));
            }

            @Override
            public void revokeRuntimePermission(String packageName, String permissionName) {
                checkNotNull(packageName, "packageName");
                checkNotNull(permissionName, "permissionName");

                mHandler.sendMessage(
                        obtainMessage(RuntimePermissionPresenterService::onRevokeRuntimePermission,
                                RuntimePermissionPresenterService.this, packageName,
                                permissionName));
            }
        };
    }