[GTS8.0R1-出国内]com.google.android.gts.devicepolicy.DeviceOwnerTest#testFactoryResetProtection fail

问题描述

GtsGmscoreHostTestCases
com.android.compatibility.common.tradefed.testtype.JarHostTest com.google.android.gts.devicepolicy.DeviceOwnerTest#testFactoryResetProtection
FAILURE: junit.framework.AssertionFailedError: com.google.android.gts.deviceowner.FactoryResetProtectionTest failed.

查看了源码,发现有两个文件夹:

1.vendor\google\products\gms_overlay:包含

\overlay\GmsConfigOverlayCommon\res\values\config.xml
    <!-- For Factory Reset Protection -->
    <string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string>
2.vendor\google\products\gms_overlay_cn:不包含

解决方案

MainlineModule

问题描述

GtsOsTestCases
com.google.android.os.gts.MainlineModulePreloadTest
com.google.android.os.gts com.google.android.os.gts.MainlineConfigurationTest#testMainlineApprovedTrain

解决方案

Q1: Mainline release 是什麼? What is Mainline release?Ans: Google 列進 Mainline scope 的 module 會由 Google 出 prebuilt binary 並 release 給有 GMS license 的廠商, Android 10 要過 Google GMS 認證需要 preload Mainline release, 也就是要用 Google build 的 binary, 不能用客戶修改過、客戶自己用 AOSP build 出的 binary。

From Android 10, we need to preload Mainline release into our SW load to pass xTS to obtain GMS certification. It means Google will release prebuilt binary for modules in Mainline scope to Android partners who have GMS lincense and Android partners must use Google Mainline release and cannot use binaries built by Android partners.

继续阅读“MainlineModule”

[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”