From 45c6231908265da0b91ad61df81a0c5af77e0c4a Mon Sep 17 00:00:00 2001 From: Kohsuke Yatoh Date: Thu, 4 Feb 2021 15:17:42 -0800 Subject: Add test for font crash protection. This test modifies the installed font file with block_device_writer. FontManagerService should detect it and remove the modified file. Bug: 176939176 Test: atest ApkVerityTest Test: atest UpdatableSystemFontTest Change-Id: I7da3f2911459619d5d56a94e091b912d67cb27d3 --- tests/UpdatableSystemFontTest/Android.bp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/UpdatableSystemFontTest/Android.bp') diff --git a/tests/UpdatableSystemFontTest/Android.bp b/tests/UpdatableSystemFontTest/Android.bp index d809fe8dad56..43a5078c3c24 100644 --- a/tests/UpdatableSystemFontTest/Android.bp +++ b/tests/UpdatableSystemFontTest/Android.bp @@ -16,8 +16,14 @@ java_test_host { name: "UpdatableSystemFontTest", srcs: ["src/**/*.java"], libs: ["tradefed", "compatibility-tradefed", "compatibility-host-util"], - static_libs: ["frameworks-base-hostutils"], + static_libs: [ + "block_device_writer_jar", + "frameworks-base-hostutils", + ], test_suites: ["general-tests", "vts"], + target_required: [ + "block_device_writer_module", + ], data: [ ":NotoColorEmojiTtf", ":UpdatableSystemFontTestCertDer", -- cgit v1.2.3-59-g8ed1b