[CTS10.0r1]CtsVideoTestCases testH263Goog0Qual0176x0144 & testMpeg4Goog0Qual0176x0144 fail

问题描述

CtsVideoTestCases:

android.video.cts.VideoEncoderDecoderTest#testH263Goog0Qual0176x0144  fail

android.video.cts.VideoEncoderDecoderTest#testMpeg4Goog0Qual0176x0144 fail

junit.framework.AssertionFailedError: rms error is bigger than the limit [71.65898971874873, 72.06630322857461, 71.38896848896059, 71.42307884557219, 71.03807465917168, 71.37617246481136, 69.86188898540244, 70.35844353087238, 69.4291330573414, 69.75561629197684, 71.67132049724061, 71.77830903362988, 68.71918203523552, 69.03982221168019, 68.68988023179618, 68.91085089264462, 72.53627389555753, 72.84800599200705, 70.51591117877537, 71.07855750248216] vs 20.0

解决方案 继续阅读“[CTS10.0r1]CtsVideoTestCases testH263Goog0Qual0176x0144 & testMpeg4Goog0Qual0176x0144 fail”

[CTS10.0r2]CtsIncidentHostTestCases com.android.server.cts.ErrorsTest#testANR failed

问题描述

com.android.server.cts.ErrorsTest#testANR fail:
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at com.android.server.cts.errors.ErrorsTests.testANR(ErrorsTests.java:99)

解决方案

继续阅读“[CTS10.0r2]CtsIncidentHostTestCases com.android.server.cts.ErrorsTest#testANR failed”

[CTS-10.0_r1]android.appsecurity.cts.AdoptableHostTest#testEjected

问题描述

android.appsecurity.cts.AdoptableHostTest#testEjected
Fail:
com.android.tradefed.device.DeviceUnresponsiveException: Attempted shell sm partition disk:7,9 public multiple times on device px5222222222 without communication success. Aborting.
注意:kernel 4.14 才会发生

解决方案

继续阅读“[CTS-10.0_r1]android.appsecurity.cts.AdoptableHostTest#testEjected”

[CTS10.0]CtsTelephonyTestCases--android.telephony.cts.VisualVoicemailServiceTest#testGetVisualVoicemailPackageName_isSelf failed

问题描述

CtsTelephonyTestCases
android.telephony.cts.VisualVoicemailServiceTest#testGetVisualVoicemailPackageName_isSelf failed:
12-09 09:50:43.140  2910  2932 E TestRunner: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.telephony.TelephonyManager.getVisualVoicemailPackageName()' on a null object reference
12-09 09:50:43.140  2910  2932 E TestRunner:     at android.telephony.cts.VisualVoicemailServiceTest.testGetVisualVoicemailPackageName_isSelf(VisualVoicemailServiceTest.java:486)

解决方案

继续阅读“[CTS10.0]CtsTelephonyTestCases--android.telephony.cts.VisualVoicemailServiceTest#testGetVisualVoicemailPackageName_isSelf failed”

[CTS10.0r2]CtsWindowManagerDeviceTestCases testDeviceConfig & testDeviceConfigWithSecondaryDisplay fail

问题描述

android.server.wm.ActivityManagerGetConfigTests#testDeviceConfig fail:
java.lang.AssertionError: Expected number of locales does not match expected:<1> but was:<0>
android.server.wm.ActivityManagerGetConfigTests#testDeviceConfigWithSecondaryDisplay fail:
java.lang.AssertionError: Expected number of locales does not match expected:<1> but was:<0>

解决方案

继续阅读“[CTS10.0r2]CtsWindowManagerDeviceTestCases testDeviceConfig & testDeviceConfigWithSecondaryDisplay fail”

[CTS10.0r1]CtsAlarmManagerTestCases android.alarmmanager.cts.AppStandbyTests#testNeverDelay single run fail

问题描述

CtsAlarmManagerTestCases
android.alarmmanager.cts.AppStandbyTests#testNeverDelay failed when single run.
java.lang.AssertionError: Alarm received when app was in never bucket
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at android.alarmmanager.cts.AppStandbyTests.testNeverDelay(AppStandbyTests.java:257)
However it can pass in full run with following command:
run cts -m CtsAlarmManagerTestCases -t android.alarmmanager.cts.AppStandbyTests

[CTS10.0R1]CtsMediaTestCases android.media.cts.VideoEncoderTest#testOtherH264FlexNearMaxMax fail

问题描述

CtsMediaTestCases
android.media.cts.VideoEncoderTest#testOtherH264FlexNearMaxMax fail:
java.nio.BufferOverflowException
at java.nio.ByteBuffer.put(ByteBuffer.java:611)
at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:256)
at android.media.cts.VideoEncoderTest$VideoStorage$1.onInputBufferAvailable(VideoEncoderTest.java:116)

[CTS10.0r1]CtsPermissionTestCases android.permission.cts.ProviderPermissionTest#testManageDocuments fail

问题描述

CtsPermissionTestCases  android.permission.cts.ProviderPermissionTest#testManageDocuments fail:
junit.framework.AssertionFailedError: Exactly one package (must be com.google.android.documentsui) can request the MANAGE_DOCUMENTS permission; found package com.mediatek.dataprotection which must be revoked for security reasons

[CTS10.0R1]CtsLibcoreTestCases模块4项fail

问题描述

org.apache.harmony.tests.java.nio.charset.CharsetEncoder2Test#testUtf8Encoding fail:
junit.framework.AssertionFailedError: expected:<3> but was:<1>
org.apache.harmony.tests.javax.security.auth.x500.X500PrincipalTest#testValidDN fail:
junit.framework.AssertionFailedError:
RFC2253: 139 parm: 'CN="\E0\90\AF"' expected: 'CN=���' returned: 'CN=Я'
RFC1779: 139 parm: 'CN="\E0\90\AF"' expected: 'CN=���' returned: 'CN=Я'
Unexpected encoding for: 139, dn= 'CN="\E0\90\AF"'
RFC2253: 140 parm: 'CN="\F0\80\90\AF"' expected: 'CN=����' returned: 'CN=Я'
RFC1779: 140 parm: 'CN="\F0\80\90\AF"' expected: 'CN=����' returned: 'CN=Я'
Unexpected encoding for: 140, dn= 'CN="\F0\80\90\AF"'
libcore.java.lang.StringTest#testFastPathString_illFormedUtf8Sequence fail:
junit.framework.ComparisonFailure: Fast-path UTF-8 decoder decodes sequence [c0 b1] into unexpected String expected:<[��]> but was:<[1]>
libcore.java.lang.StringTest#test_69599767 fail:
junit.framework.ComparisonFailure: expected:<��[�]!> but was:<��[]!>

解决方案

继续阅读“[CTS10.0R1]CtsLibcoreTestCases模块4项fail”

[CTS10.0r1]android.carrierapi.cts.CarrierApiTest#testAddSubscriptionToExistingGroupForMultipleSims fail

问题描述

双卡项目android.carrierapi.cts.CarrierApiTest#testAddSubscriptionToExistingGroupForMultipleSims 测试fail:
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at android.carrierapi.cts.CarrierApiTest.testAddSubscriptionToExistingGroupForMultipleSims(CarrierApiTest.java:970)

AGo Go GMS requirement - Enable CONFIG_DM_VERITY_FEC

问题描述

The anouncemnt from Google AGO team

Hi Go partners, adding to this note to answer some of your questions:

CONFIG_DM_VERITY_FEC=y

 

* O-Go devices will also benefit from this change. You should make this change for all devices.

* Q-Go config guide will recommend CONFIG_DM_VERITY_FEC=y when the guide is released in the near future.

 

继续阅读“AGo Go GMS requirement - Enable CONFIG_DM_VERITY_FEC”

CTS Android 9.0, 8.1, 8.0, 7.1, and 7.0 测试工具更新

The CTS 3rd quarter releases for Android 9.0, 8.1, 8.0, 7.1, and 7.0 are available on the Compatibility Test Suite Downloads<http://source.android.com/compatibility/cts/downloads> page. These releases contain continuous improvements of tests and test infrastructure.
For partners in China, the CTS packages can be downloaded from https://source.android.google.cn/ without using VPN for better reliability.

继续阅读“CTS Android 9.0, 8.1, 8.0, 7.1, and 7.0 测试工具更新”

targetSdkVersion小于26的apk处理方法

问题描述

所有预安装的应用和所有由 OEM 安装的应用强烈建议以 SDK 26 (Oreo) 或更高版本为目标.
Google强烈建议立即将应用更新至面向SDK26版本.
目标 SDK 要求从Android Q起开始实施---只针对Android 9 and newer GMS Devices.
不符合目标 SDK要求的设备版本将被拒绝.
继续阅读“targetSdkVersion小于26的apk处理方法”

[STS]android.security.cts.StagefrightTest#testStagefright_cve_2018_9423

问题描述

 android.security.cts.StagefrightTest#testStagefright_cve_2018_9423

解决方案

请参考对应平台并申请patch. 如果拿到的patch只有source code 没有libvcodecdrv.so ,请按照表格再重新申请一次patch.

继续阅读“[STS]android.security.cts.StagefrightTest#testStagefright_cve_2018_9423”