问题描述
GtsAppBlacklistDeviceTestCases模块com.google.android.appblacklist.gts.GtsAppBlacklistDeviceTest#testForBlacklistedApps测试项Fail
10-15 14:29:31 I/ModuleListener: [1/1] com.google.android.appblacklist.gts.GtsAppBlacklistDeviceTest#testForBlacklistedApps fail:
junit.framework.AssertionFailedError: Packages with a blacklisted signature:
com.android.fmradio
com.mediatek.gba
com.mediatek.ims
com.mediatek.ppl
com.android.secretcode
org.simalliance.openmobileapi.uicc2terminal
com.android.internal.display.cutout.emulation.corner
com.android.internal.display.cutout.emulation.double
com.android.providers.telephony
com.mediatek.camera
com.valmul.defcontainer
com.android.providers.media
解决方案
比对GtsAppBlacklistDeviceTestCases.dynamic中预设的签名,如果所有install的apk签名有不匹配,就fail
全局搜索,
在比对GtsAppBlacklistDeviceTestCases.dynamic中预设的签名,如果所有install的apk签名有不匹配,就fail 需要改下签名;
项目中apk用的google默认签名导致此项Fail,改成自定义就OK了;