GMS(cts、gsi、vts、gts、ctsv)问题总结

CTS部分

# CtsMediaTestCases android.media.cts.MediaCodecListTest#testAllComponentInstantiation

失败原因:fail: java.io.IOException: Failed to find matching codec OMX.MTK.VIDEO.DECODER.AVC, error 0x80000000

解决方法:juejin.im/post/5cec98…

# CtsTelephonyTestCases android.telephony.cts.VisualVoicemailServiceTest#testFilter_data

失败原因1:java.lang.RuntimeException: java.util.concurrent.TimeoutException

失败原因2:junit.framework.ComparisonFailure: expected:<eg[@]example.com> but was:<eg[¡]example.com>

解决方法:juejin.im/post/5cef88…

注意点:插入一张有效SIM卡并打开数据连接(可以打电话和发短信)

# CtsLibcoreTestCases libcore.java.net.SocketTest#testSocketTestAllAddresses

解决方法:网络问题,需要在IPV6的环境下进行测试

# CtsLocationTestCases android.location.cts.GnssPseudorangeVerificationTest#testPseudoPosition

解决方法:在测试之前确保工模下有搜到卫星信号,可以在笔记本上设定cts 环境,然后在户外测试。或者使用室内GPS信号放大器

# CtsKeystoreTestCases android.keystore.cts.KeyAttestationTest#testEcAttestation

解决方法:该项测试需要写入google key

# CtsCarrierApiTestCases

android.carrierapi.cts.CarrierApiTest#testGetIccAuthentication android.carrierapi.cts.CarrierApiTest#testHasCarrierPrivileges android.carrierapi.cts.CarrierApiTest#testSendDialerSpecialCode

解决方法:需要使用特殊sim卡测试

# CtsPermission2TestCases android.permission2.cts.PrivappPermissionsTest#testPrivappPermissionsEnforcement

解决方法:从8.0之后凡是放在priv-app下面的需要使用的权限都必须使用XML文件进行白名单申明,请知悉,具体可以参考https://source.android.com/devices/tech/config/perms-whitelist

# CtsIntentSignatureTestCases android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents

解决方法:第三方APK不能用 android.intent.action打头的,请自行卸载或者修改成xxx.intent.action(xxx不能是android)

# CtsAppSecurityHostTestCases android.appsecurity.cts.EphemeralTest#testExposedSystemActivities

解决方法:需要设置android:visibleToInstantApps = “true“

# CtsJniTestCases android.jni.cts.JniStaticTest#test_linker_namespaces

解决方法:需要更新最新的patch

# CtsServicesHostTestCases android.server.cts.KeyguardLockedTests#testDismissKeyguardActivity_method

这种情况属于log打印过多导致的的fail,那么修改思路有两种:

1、减少log打印; 【FAQ20559】MTK 对于 Android Go 版本缩减 logs 量的建议

2、增大log buffer; 【FAQ18332】如何修改android log buffer 大小

GSI部分

GTS部分

# GtsGmscoreHostTestCases com.google.android.gts.devicepolicy.ManagedProfileTest#testPendingSystemUpdate

解决方法:www.jianshu.com/p/545ff154d…

# GtsPackageManagerHostTestCases com.google.android.pm.gts.PackageManagerHostTest#testSettingsReadable

解决方法:www.jianshu.com/p/545ff154d…

# GtsBackupHostTestCases com.google.android.gts.backup.SettingsProviderBackupHostTest#testSoftApE2EBR

解决方法:请确认在设置中打开backup后进行测试

# GtsGmscoreHostTestCases com.google.android.gts.security.AttestationRootHostTest#testEcAttestationChain

解决方法:正确写入google key

# GtsSearchHostTestCases com.google.android.search.gts.GoogleSearchWidgetTest#testWidgetPresence

解决方法:桌面需包含google search widget

# GtsPackageManagerHostTestCases com.google.android.pm.gts.PackageManagerHostTest#testStartForegroundService

解决方法: 申请豁免bug id:70933248

VTS部分

# VtsVndkDependency#testElfDependency

失败原因:disallowed dependencies:这条VTS 的测试用意是用于审查 vendor image 和 system image 之间的依赖是否符合Google 规范, 通常大家都遵循 VNDK(Vendor Native Development Kit )的做法.

解决方法:此类关键就找到异常的lib 的来源, 确认它和system image 下相关lib的依赖, 往往可以直接从android.mk/android.bp 中直接看到. 如果lib 是来源于vendor, 就找相关vendor 处理. 如果是客户自行添加或者修改引入,需要解除依赖.

CTS-V部分

# CtsVerifier Bluetooth LE Read 和 Bluetooth LE Write 开启测试后蓝牙报停

报错的地方判空处理第三方app(CTSVerifer.apk)进行配对的时候其他地方会再次报错,google强烈建议移除此 patch(CVE-2019-2036)(system/bt),后续会发布新的安全补丁,因此暂时移除补丁。

其他

# CTS/VTS/GTS/GSI涉及到sensor的case, 如果各项配置正确,但仍然失败如何处理

通常是Sensor的精度不够所导致,此时需要客户去联系Sensor供应商,把精度调到High,再复测跟Sensor相关的Case.

# CTS/GSI/VTS 测试所需白卡如何购买

可以联系卡商金雅拓购买

# 待续

猜你喜欢

转载自blog.csdn.net/weixin_34007291/article/details/91398402