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

Commit 7c592e25 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: Ica44a7350a2a7bacb409ad6c47841c2073272c8a
parent 13d28601
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -497,20 +497,10 @@ public final class PermissionControllerServiceImpl extends PermissionControllerS
    @Override
    public void onRevokeRuntimePermission(@NonNull String packageName,
            @NonNull String permissionName) {
        onRevokeRuntimePermission(this, packageName, permissionName);
    }

    /**
     * Implementation of
     * {@link PermissionControllerService#onRevokeRuntimePermission(String, String)}}. Called
     * by this class and the legacy implementation.
     */
    static void onRevokeRuntimePermission(@NonNull Context context,
            @NonNull String packageName, @NonNull String permissionName) {
        try {
            final PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName,
            final PackageInfo packageInfo = getPackageManager().getPackageInfo(packageName,
                    GET_PERMISSIONS);
            final AppPermissions appPermissions = new AppPermissions(context, packageInfo, false,
            final AppPermissions appPermissions = new AppPermissions(this, packageInfo, false,
                    null);

            final AppPermissionGroup appPermissionGroup = appPermissions.getGroupForPermission(
+0 −7
Original line number Diff line number Diff line
@@ -47,11 +47,4 @@ public final class RuntimePermissionPresenterServiceLegacyImpl extends

        return legacyPermissions;
    }

    @Override
    public void onRevokeRuntimePermission(@NonNull String packageName,
            @NonNull String permissionName) {
        PermissionControllerServiceImpl.onRevokeRuntimePermission(this, packageName,
                permissionName);
    }
}