Loading services/core/java/com/android/server/pm/PackageManagerServiceUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -578,7 +578,9 @@ public class PackageManagerServiceUtils { /** Returns true if standard APK Verity is enabled. */ static boolean isApkVerityEnabled() { return SystemProperties.getInt("ro.apk_verity.mode", FSVERITY_DISABLED) == FSVERITY_ENABLED; return Build.VERSION.FIRST_SDK_INT >= Build.VERSION_CODES.R || SystemProperties.getInt("ro.apk_verity.mode", FSVERITY_DISABLED) == FSVERITY_ENABLED; } static boolean isLegacyApkVerityEnabled() { Loading services/core/java/com/android/server/security/FileIntegrityService.java +3 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.IBinder; import android.os.Process; import android.os.SystemProperties; Loading Loading @@ -55,7 +56,8 @@ public class FileIntegrityService extends SystemService { private final IBinder mService = new IFileIntegrityService.Stub() { @Override public boolean isApkVeritySupported() { return SystemProperties.getInt("ro.apk_verity.mode", 0) == 2; return Build.VERSION.FIRST_SDK_INT >= Build.VERSION_CODES.R || SystemProperties.getInt("ro.apk_verity.mode", 0) == 2; } @Override Loading Loading
services/core/java/com/android/server/pm/PackageManagerServiceUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -578,7 +578,9 @@ public class PackageManagerServiceUtils { /** Returns true if standard APK Verity is enabled. */ static boolean isApkVerityEnabled() { return SystemProperties.getInt("ro.apk_verity.mode", FSVERITY_DISABLED) == FSVERITY_ENABLED; return Build.VERSION.FIRST_SDK_INT >= Build.VERSION_CODES.R || SystemProperties.getInt("ro.apk_verity.mode", FSVERITY_DISABLED) == FSVERITY_ENABLED; } static boolean isLegacyApkVerityEnabled() { Loading
services/core/java/com/android/server/security/FileIntegrityService.java +3 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.IBinder; import android.os.Process; import android.os.SystemProperties; Loading Loading @@ -55,7 +56,8 @@ public class FileIntegrityService extends SystemService { private final IBinder mService = new IFileIntegrityService.Stub() { @Override public boolean isApkVeritySupported() { return SystemProperties.getInt("ro.apk_verity.mode", 0) == 2; return Build.VERSION.FIRST_SDK_INT >= Build.VERSION_CODES.R || SystemProperties.getInt("ro.apk_verity.mode", 0) == 2; } @Override Loading