问题描述
CtsSecurityBulletinHostTestCases
android.security.cts.Poc18_06#testPocCVE_2018_5892
fail: junit.framework.AssertionFailedError
解决方案
testPocCVE_2018_5892从source.android.com官网上查看,该patch是Qualcomm closed-source components 里面的.
MTK无法提供patch.
可以参考以下网址修改(去掉com.emoji.keyboard.touchpal应用试试看):
https://android.googlesource.com/platform/cts/+/638a1ea%5E%21/
+
+ /**
+ * CVE-2018-5892
+ */
+ @SecurityTest(minPatchLevel = "2018-06")
+ public void testPocCVE_2018_5892() throws Exception{
+ String result = AdbUtils.runCommandLine(
+ "pm list package com.emoji.keyboard.touchpal", getDevice());
+ assertFalse(result.contains("com.emoji.keyboard.touchpal"));
+ }
触宝这个apk 在8月的sts加入google黑名单