From ea8f0ad51dcac1245f69e61af8987a77e9119568 Mon Sep 17 00:00:00 2001 From: Victor Hsieh Date: Thu, 20 Jul 2023 17:17:18 -0700 Subject: [PATCH] Cleanup: remove fs-verity availability check fs-verity has been required for years now, so removing the check in this test. Bug: 277348426 Test: atest UpdatableSystemFontTest Change-Id: I1b1a842d15fab2fba44c976340829d01231f88bf --- .../updatablesystemfont/UpdatableSystemFontTest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java b/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java index fa5b7c15a6fe8..ba9e4a8317898 100644 --- a/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java +++ b/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java @@ -24,7 +24,6 @@ import static android.os.ParcelFileDescriptor.MODE_READ_ONLY; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; -import static org.junit.Assume.assumeTrue; import static java.util.concurrent.TimeUnit.SECONDS; @@ -36,7 +35,6 @@ import android.graphics.fonts.FontManager; import android.graphics.fonts.FontStyle; import android.os.ParcelFileDescriptor; import android.platform.test.annotations.RootPermissionTest; -import android.security.FileIntegrityManager; import android.text.FontConfig; import android.util.Log; import android.util.Pair; @@ -139,10 +137,6 @@ public class UpdatableSystemFontTest { @Before public void setUp() throws Exception { Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); - // Run tests only if updatable system font is enabled. - FileIntegrityManager fim = context.getSystemService(FileIntegrityManager.class); - assumeTrue(fim != null); - assumeTrue(fim.isApkVeritySupported()); mKeyId = insertCert(CERT_PATH); mFontManager = context.getSystemService(FontManager.class); expectCommandToSucceed("cmd font clear");