[DESCRIPTION]
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields 失败。
junit.framework.AssertionFailedError: Expected exception type was java.lang.IllegalArgumentException but caught java.lang.SecurityException: Shortcut package name mismatch (message=)
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.assertTrue(Assert.java:20)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:427)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:408)
at android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest.testShortcutInfoMissingMandatoryFields(ShortcutManagerClientApiTest.java:132)
at java.lang.reflect.Method.invoke(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:220)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:205)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
[SOLUTION]
Dear Customer
可以豁免,请参考以下信息:
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields is waived for devices with Sept SPL until the Google patch is integrated into a future CTS version. This is waived across Android versions based on below patches.
https://android-review.googlesource.com/c/platform/cts/+/735922
https://android-review.googlesource.com/c/platform/cts/+/735923
https://android-review.googlesource.com/c/platform/cts/+/735924
https://android-review.googlesource.com/c/platform/cts/+/735925