[GTSR3]com.google.android.dialer.gts.GtsDialerDeviceTest#makeCall_verifyDialerWorking

问题描述

GtsDialerDeviceTestCases  com.google.android.dialer.gts.GtsDialerDeviceTest#makeCall_verifyDialerWorking
Fail:
java.lang.AssertionError: Error running self check - Active call audio not available.: Not true that <FAILED> is equal to <SUCCESS>

解决方案

继续阅读“[GTSR3]com.google.android.dialer.gts.GtsDialerDeviceTest#makeCall_verifyDialerWorking”

[GTSR3]com.google.android.storage.gts.StorageTest#testSystemStorageUsage

问题描述

GtsStorageTestCases
com.google.android.storage.gts.StorageTest#testSystemStorageUsage
Fail:
java.lang.AssertionError: Not enough space for user available: 11924373504 < 12000000000 (total: 16000000000)

[GTS7.0r3]GtsPermissionTestCases com.google.android.permission.gts.SplitPermissionsSystemTest#ensureReadExternalStorageIsSplit failed

问题描述

GtsPermissionTestCases
12-17 13:24:23 I/ModuleListener: [1/1] com.google.android.permission.gts.SplitPermissionsSystemTest#ensureReadExternalStorageIsSplit fail:
java.lang.AssertionError: The subject was expected to be true, but was false
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:24)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:20)
at com.google.common.truth.Subject.failWithRawMessage(Subject.java:381)
at com.google.common.truth.BooleanSubject.isTrue(BooleanSubject.java:43)
at com.google.android.permission.gts.SplitPermissionsSystemTest.ensureReadExternalStorageIsSplit(SplitPermissionsSystemTest.java:55)

[GTS7.0r3]GtsSuspendAppsTestCases 2 cases failed

问题描述

GtsSuspendAppsTestCases
com.google.android.suspendapps.gts.SuspendPackagesTest#testOpCameraOnSuspend fail
java.lang.AssertionError: Op CAMERA allowed while package is suspended. Actual: 0 at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failEquals(Assert.java:185) at org.junit.Assert.assertNotEquals(Assert.java:199) at com.google.android.suspendapps.gts.SuspendPackagesTest.assertOpDisallowed(SuspendPackagesTest.java:500)
com.google.android.suspendapps.gts.SuspendPackagesTest#testOpRecordAudioOnSuspend fail
java.lang.AssertionError: Op RECORD_AUDIO allowed while package is suspended. Actual: 0 at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failEquals(Assert.java:185) at org.junit.Assert.assertNotEquals(Assert.java:199) at com.google.android.suspendapps.gts.SuspendPackagesTest.assertOpDisallowed(SuspendPackagesTest.java:500) at com.google.android.suspendapps.gts.SuspendPackagesTest.testOpRecordAudioOnSuspend(SuspendPackagesTest.java:509)

[GTS7.0r3]GtsWebViewHostTestCases 4 cases failed

问题描述

更新GMS r11包,GtsWebViewHostTestCases出现4项fail:
com.google.android.gts.webview.WebViewDisablingHostTest#testWebViewDisablingPrimaryUser fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
com.google.android.gts.webview.WebViewDisablingHostTest#testUpdateAndDisableMonochrome fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
com.google.android.gts.webview.WebViewDisablingHostTest#testWebViewDisablingSecondaryUser fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
com.google.android.gts.webview.DisableChromeInManagedProfileTest#testWebViewDisablingManagedProfile fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'

[GTS7.0r3]GtsStagedInstallHostTestCases com.google.android.stagedinstall.gts.host.StagedInstallTest#testSamegradeSystemTzdataApex fail

问题描述

com.google.android.stagedinstall.gts.host.StagedInstallTest#testSamegradeSystemTzdataApex fail:
java.lang.AssertionError: on-device tests failed:
com.google.android.stagedinstall.gts.StagedInstallTest#testSamegradeSystemTzdataApex_VerifyPostReboot:
java.lang.AssertionError: Not true that <"/system/apex/com.google.android.tzdata.apex"> starts with <"/data/apex/active">
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:24)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:20)
at com.google.common.truth.Subject.failComparingToStrings(Subject.java:295)
at com.google.common.truth.Subject.fail(Subject.java:272)
at com.google.common.truth.StringSubject.startsWith(StringSubject.java:169)
at com.google.android.stagedinstall.gts.StagedInstallTest.testSamegradeSystemTzdataApex_VerifyPostReboot(StagedInstallTest.java:135)

解决方案

继续阅读“[GTS7.0r3]GtsStagedInstallHostTestCases com.google.android.stagedinstall.gts.host.StagedInstallTest#testSamegradeSystemTzdataApex fail”

[GTSR3]com.google.android.assistant.gts.AssistantTest#testAssistantOpenFrontCameraWithVoiceInteraction fail

问题描述

GtsAssistantHostTestCases
com.google.android.assistant.gts.AssistantTest#testAssistantOpenFrontCameraWithVoiceInteraction
Fail:
java.lang.AssertionError

AOSP camera 无法响应Intent,参考log:

12-12 11:44:59.390 13034 13034 I MainInteractionSession: starting_voiceactivity: Intent { act=android.media.action.STILL_IMAGE_CAMERA flg=0x10018000 (has extras) }

12-12 11:44:59.392  1163  7135 I ActivityTaskManager: START u0 {act=android.media.action.STILL_IMAGE_CAMERA cat=[android.intent.category.VOICE] flg=0x18018000 (has extras)} from uid 10185

继续阅读“[GTSR3]com.google.android.assistant.gts.AssistantTest#testAssistantOpenFrontCameraWithVoiceInteraction fail”

[GTSR3]com.google.android.gts.audio.AudioHostTest#testTwoChannelCapturing fail

问题描述

GtsGmscoreHostTestCases
com.google.android.gts.audio.AudioHostTest#testTwoChannelCapturing
Fail:
junit.framework.AssertionFailedError: com.google.android.gts.audio.AudioPolicyTest.testTwoChannelCapturing failed.

解决方案

继续阅读“[GTSR3]com.google.android.gts.audio.AudioHostTest#testTwoChannelCapturing fail”

[GTS R3]com.google.android.exoplayer.gts.DashTest#testWidevineH264Adaptive fail

问题描述

com.google.android.exoplayer.gts.DashTest#testWidevineH264Adaptive
Fail:
 java.lang.Error: com.google.android.exoplayer2.ExoPlaybackException

解决方案

继续阅读“[GTS R3]com.google.android.exoplayer.gts.DashTest#testWidevineH264Adaptive fail”

[GTS7.0r2]GtsPermissionTestCases com.google.android.permission.gts.ManageDocumentsPermissionTest#manageDocuments_theOnlyOneHolder_isDocumentsUi fail

问题描述

com.google.android.permission.gts.ManageDocumentsPermissionTest#manageDocuments_theOnlyOneHolder_isDocumentsUi fail
java.lang.AssertionError: Not true that <2> is at most <1>

com.google.android.permission.gts.RequiredPregrantPermissionsTest#checkRequiredPregrantPermission

问题描述

[GTS7.0r2]GtsPermissionTestCases
com.google.android.permission.gts.RequiredPregrantPermissionsTest#checkRequiredPregrantPermission

Fail:

java.lang.AssertionError: com.google.android.apps.assistant does not have android.permission.RECORD_AUDIO granted.
com.google.android.apps.assistant does not have android.permission.READ_SMS granted.
com.google.android.apps.assistant does not have android.permission.SEND_SMS granted.

继续阅读“com.google.android.permission.gts.RequiredPregrantPermissionsTest#checkRequiredPregrantPermission”

[GTS_7.01]GtsInstallPackagesWhitelistDeviceTestCases:com.google.android.installpackageswhitelist.gts.GtsInstallPackagesWhitelistDeviceTest#testInstallerPackagesAgainstWhitelist failed

问题描述

[GTS_7.01]GtsInstallPackagesWhitelistDeviceTestCases:com.google.android.installpackageswhitelist.gts.GtsInstallPackagesWhitelistDeviceTest#testInstallerPackagesAgainstWhitelist failed
com.google.android.installpackageswhitelist.gts.GtsInstallPackagesWhitelistDeviceTest#testInstallerPackagesAgainstWhitelist
java.lang.AssertionError: Package com.mediatek.location.lppe.main permission mismatch.. Actual: 0

继续阅读“[GTS_7.01]GtsInstallPackagesWhitelistDeviceTestCases:com.google.android.installpackageswhitelist.gts.GtsInstallPackagesWhitelistDeviceTest#testInstallerPackagesAgainstWhitelist failed”

com.android.gts.api.UnofficialApisUsageTest#testNonApiReferences

问题描述

GtsUnofficialApisUsageTestCases
com.android.gts.api.UnofficialApisUsageTest#testNonApiReferences
Fail:
junit.framework.AssertionFailedError: Undefined method ref: java.util.Collections.max(java.util.Collection)java.lang.Object from: /vendor/app/EmCamera/EmCamera.apk

继续阅读“com.android.gts.api.UnofficialApisUsageTest#testNonApiReferences”

如何使不支持IMS的终端pass GtsImsServiceTestCases?

问题描述

GTS fail case:在不支持IMS的情况下,GtsImsServiceTestCases可能会有下面两条case fail:
com.google.android.gts.imsservice.ImsServiceTest#testMmTelReceiveSms
com.google.android.gts.imsservice.ImsServiceTest#testMmTelSendSms
原因:Google GTS IMS测项需要载入Google ImsService而不是MtkImsService,如果不支持IMS,就不会build MtkImsService,这样在bind MtkImsService时会抛出ImsException,从而导致IMS相关的case fail。

继续阅读“如何使不支持IMS的终端pass GtsImsServiceTestCases?”