Enable the new permission subsystem implementation on V.

The old implementation is still around and can be brought back by
setting PermissionManager.USE_ACCESS_CHECKING_SERVICE back to false.

Bug: 263504888
Test: presubmit
Change-Id: I8916942e5189ad5acee55daef9159e8e43f11ce7
This commit is contained in:
Hai Zhang
2022-12-25 23:20:48 -08:00
parent 77f57c9d6f
commit 728e677876

View File

@@ -75,6 +75,7 @@ import android.util.Slog;
import com.android.internal.R;
import com.android.internal.annotations.Immutable;
import com.android.internal.util.CollectionUtils;
import com.android.modules.utils.build.SdkLevel;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -181,7 +182,7 @@ public final class PermissionManager {
*
* @hide
*/
public static final boolean USE_ACCESS_CHECKING_SERVICE = false;
public static final boolean USE_ACCESS_CHECKING_SERVICE = SdkLevel.isAtLeastV();
/**
* The time to wait in between refreshing the exempted indicator role packages