RK3576 android14 GMS 部分fail 项总结
平台:RK3576,android14
这里记录下A14 GMS测试碰到的问题。
CTS 部分:
| Test | Result | Details |
|---|---|---|
| android.media.codec.cts.DecodeEditEncodeTest#testVideoEdit[2_c2.rk.avc.encoder_c2.rk.avc.decoder_video/avc_1,280_720_6,000,000] |
fail
|
java.lang.AssertionError: Found 2 bad frames
|
| android.media.codec.cts.DecodeEditEncodeTest#testVideoEdit[5_c2.rk.hevc.encoder_c2.rk.hevc.decoder_video/hevc_1,280_720_6,000,000] |
fail
|
java.lang.AssertionError: Found 10 bad frames
|
| android.media.codec.cts.DecodeEditEncodeTest#testVideoEdit[8_c2.android.vp8.encoder_c2.android.vp8.decoder_video/x-vnd.on2.vp8_1,280_720_6,000,000] |
fail
|
java.lang.AssertionError: Found 31 bad frames
|
| android.media.codec.cts.DecodeEditEncodeTest#testVideoEdit[11_c2.android.vp9.encoder_c2.rk.vp9.decoder_video/x-vnd.on2.vp9_1,280_720_6,000,000] |
fail
|
java.lang.AssertionError: Found 32 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToPersistentSurface[2_c2.rk.avc.encoder_c2.rk.avc.decoder] |
fail
|
java.lang.AssertionError: Found 1 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToSurfaceNdk[2_c2.rk.avc.encoder_c2.rk.avc.decoder] |
fail
|
java.lang.AssertionError: Found 1 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToPersistentSurfaceNdk[2_c2.rk.avc.encoder_c2.rk.avc.decoder] |
fail
|
java.lang.AssertionError: Found 1 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToSurface[2_c2.rk.avc.encoder_c2.rk.avc.decoder] |
fail
|
java.lang.AssertionError: Found 1 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToPersistentSurface[5_c2.android.vp8.encoder_c2.android.vp8.decoder] |
fail
|
java.lang.AssertionError: Found 4 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToSurfaceNdk[5_c2.android.vp8.encoder_c2.android.vp8.decoder] |
fail
|
java.lang.AssertionError: Found 4 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToPersistentSurfaceNdk[5_c2.android.vp8.encoder_c2.android.vp8.decoder] |
fail
|
java.lang.AssertionError: Found 4 bad frames
|
| android.media.codec.cts.EncodeDecodeTest#testEncodeDecodeVideoFromSurfaceToSurface[5_c2.android.vp8.encoder_c2.android.vp8.decoder] |
fail
|
java.lang.AssertionError: Found 3 bad frames
|
| android.media.codec.cts.ExtractDecodeEditEncodeMuxTest#testExtractDecodeEditEncodeMux720p |
fail
|
java.lang.AssertionError: video encoder changed its output format again?
|
| android.media.codec.cts.ExtractDecodeEditEncodeMuxTest#testExtractDecodeEditEncodeMuxQCIF |
fail
|
java.lang.AssertionError: video encoder changed its output format again?
|
| android.media.codec.cts.ExtractDecodeEditEncodeMuxTest#testExtractDecodeEditEncodeMuxQVGA |
fail
|
java.lang.AssertionError: video encoder changed its output format again?
|
| android.media.codec.cts.ExtractDecodeEditEncodeMuxTest#testExtractDecodeEditEncodeMuxAudioVideo |
fail
|
java.lang.AssertionError: video encoder changed its output format again?
|
| android.media.codec.cts.VideoCodecTest#testEncoderQuality[4_c2.rk.avc.encoder_video/avc_2] |
fail
|
java.lang.RuntimeException: Low average PSNR 30.84235019854924 comparing to reference PSNR 33.1 for bitrate 300000
|
| android.media.codec.cts.VideoCodecTest#testEncoderQuality[6_c2.rk.avc.encoder_video/avc_1] |
fail
|
java.lang.RuntimeException: Low average PSNR 30.99666638484646 comparing to reference PSNR 33.1 for bitrate 300000
|
这个需要找RK 工程师要最新的媒体相关库文件,替换库文件之后,需要make clean 重新编译测试。
[gms] 替换RK media库文件,解决CtsMediaCodecTestCases问题
Changes to be committed:
modified: vendor/rockchip/common/gpu/MaliG52_for_a53/lib/arm/libGLES_mali.so
modified: vendor/rockchip/common/gpu/MaliG52_for_a53/lib/arm/libgpudataproducer.so
modified: vendor/rockchip/common/gpu/MaliG52_for_a53/lib/arm/vulkan.mali.so
modified: vendor/rockchip/common/gpu/MaliG52_for_a53/lib/arm64/libGLES_mali.so
modified: vendor/rockchip/common/gpu/MaliG52_for_a53/lib/arm64/libgpudataproducer.so
modified: vendor/rockchip/common/gpu/MaliG52_for_a53/lib/arm64/vulkan.mali.so
modified: vendor/rockchip/common/vpu/lib/libmpp/arm/libmpp.so
modified: vendor/rockchip/common/vpu/lib/libmpp/arm64/libmpp.so
| Test | Result | Details |
|---|---|---|
| android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testWifiManagerLock |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testAddNetworkPrivilegedBadInput |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testNetworkCarrierProvisioningPermission |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testGetSupportedFeatures |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSingleRequestByApps |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testScanThrottleEnabled |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSuccess |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
| android.net.wifi.cts.WifiManagerTest#testVerboseLoggingEnabled |
fail
|
java.lang.AssertionError: expected:<CONNECTED> but was:<DISCONNECTED>
|
我们wifi 模组是 ap6275s,需要找模组厂商替换最新的wifi驱动。
GTS部分:
| Test | Result | Details |
|---|---|---|
| com.google.android.youtube.gts.SimultaneousClearAndProtectedDecodeTest#testSimultaneousClearAndProtectedDecode |
fail
|
java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] com.google.android.exoplayer2.drm.FrameworkMediaDrm.openSession()' on a null object reference
|
解决方法: 更新mainline
| Test | Result | Details |
|---|---|---|
| com.google.android.smscalllog.gts.GtsSmsCallLogTest#testSmsCallLogAgainstAllowlist |
fail
|
java.lang.AssertionError: [pCloud com.android.cts.RemoteDPC a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc] is not allowlisted for android.permission.SEND_SMS
|
刷写SN和KEY 重新测试PASS
| Test | Result | Details |
|---|---|---|
| com.google.android.os.gts.MainlineConfigurationTest#testMainlineApprovedTrain |
fail
|
java.lang.AssertionError: Module(s) not approved for preloading found.: com.google.android.os.statsd: 351110000, com.google.android.media: 351010060, com.google.android.conscrypt: 351110000, com.google.android.sdkext: 351110000, com.google.android.healthfitness: 351120000, com.google.android.modulemetadata: 351159004, com.google.android.wifi: 351110040, com.google.android.tzdata5: 341510170, com.google.mainline.telemetry: 351103004, com.google.android.appsearch: 351112060, com.google.android.media.swcodec: 351010060, com.google.android.art: 351110100, com.google.android.cellbroadcast: 351111000, com.google.android.adservices: 351121120, com.google.android.permission: 351112280, com.google.android.tethering: 351110060, com.google.android.neuralnetworks: 351010000, com.google.android.captiveportallogin: 351111100, com.google.android.permissioncontroller: 351112280, com.google.android.extservices: 351122083, com.google.android.ext.services: 351122080, com.google.android.adbd: 351010000, com.google.android.documentsui: 351113060, com.google.android.ipsec: 351111040, com.google.android.resolv: 351111020, com.google.mainline.primary.libs: 351159000, com.google.mainline.adservices: 351114000, com.google.android.networkstack: 351111140, com.google.android.scheduling: 351010000, com.google.android.mediaprovider: 351113020, com.google.android.ondevicepersonalization: 351121040, com.google.android.configinfrastructure: 351010000, Try factory reset or preload Mainline modules approved for preloading only.
|
Mainline包要用绿色框Preload版本,而不是for testing only版本。更换Mainline包之后,重新测试PASS。
| Test | Result | Details |
|---|---|---|
| com.google.android.gts.audio.AudioHostTest#testTelephonyAudioAvailable |
fail
|
java.lang.AssertionError: on-device tests failed:
|
| com.google.android.gts.location.locationhost.LocationHostTest#testGnssSatelliteBlocklist |
fail
|
java.lang.AssertionError: on-device tests failed:
|
| com.google.android.gts.security.AttestationRootHostTest#testEcAttestationChainRemProvLengthTee |
fail
|
java.lang.AssertionError: on-device tests failed:
|
| com.google.android.gts.security.AttestationRootHostTest#testRsaAttestationChainRemProvLengthTee |
fail
|
java.lang.AssertionError: on-device tests failed:
|
| com.google.android.gts.security.DeviceIdAttestationHostTest#testSerialNumberAttestation |
fail
|
java.lang.AssertionError: on-device tests failed:
|
com.google.android.gts.audio.AudioHostTest#testTelephonyAudioAvailable 我们机器没有电话功能,可以去掉相应的通话组件,补丁如下:
[gms]去掉通话组件,解决GtsGmscoreHostTestCases的com.google.android.gts.audio.AudioHostTest#testTelephonyAudioAvailable问题
Changes to be committed:
modified: vendor/partner_gms/products/gms.mk
diff --git a/vendor/partner_gms/products/gms.mk b/vendor/partner_gms/products/gms.mk
index b9039cefb38..3a6cf68612e 100644
--- a/vendor/partner_gms/products/gms.mk
+++ b/vendor/partner_gms/products/gms.mk
@@ -70,8 +70,6 @@ PRODUCT_PACKAGES += \
Velvet \
Videos
-# GMS comms suite
-$(call inherit-product, $(ANDROID_PARTNER_GMS_HOME)/products/google_comms_suite.mk)
# Personal Safety
$(call inherit-product, $(ANDROID_PARTNER_GMS_HOME)/products/personal_safety.mk)
com.google.android.gts.location.locationhost.LocationHostTest#testGnssSatelliteBlocklist 这个问题是GPS定位问题,我们后续使用了移远模块,解决GPS问题
后面三项是需要刷 Attestation key SN 解决问题。
| Test | Result | Details |
|---|---|---|
| com.google.android.exoplayer.gts.DashStreamingTest#widevine24FpsH264FixedV23 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineVp9AdaptiveWithSeekingV24 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevine23FpsH264FixedV23 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH264AdaptiveWithRendererDisablingV18 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineVp9Fixed360pV23 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH264AdaptiveV18 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH264AdaptiveWithSeekingV18 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineVp9AdaptiveV24 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH265AdaptiveV24 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevine29FpsH264FixedV23 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH265FixedV23 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH265AdaptiveWithSeekingV24 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH265AdaptiveWithRendererDisablingV24 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineVp9AdaptiveWithRendererDisablingV24 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.DashStreamingTest#widevineH264FixedV18 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.CommonEncryptionDrmTest#cencSchemeTypeV18 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
| com.google.android.exoplayer.gts.CommonEncryptionDrmTest#cbcsSchemeTypeV25 |
fail
|
java.lang.RuntimeException: androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error
|
更换widevine,重新测试PASS
| Test | Result | Details |
|---|---|---|
| android.devicepolicy.gts.ManagedProvisioningRequiredPatchesTest#patchSet1 |
fail
|
1 expectation failed:
|
错误log:
03-13 16:18:46.600 12003 32538 32550 E TestRunner: failed: patchSet1(android.devicepolicy.gts.ManagedProvisioningRequiredPatchesTest) 03-13 16:18:46.600 12003 32538 32550 E TestRunner: ----- begin exception ----- 03-13 16:18:46.600 12003 32538 32550 E TestRunner: 1 expectation failed: 03-13 16:18:46.600 12003 32538 32550 E TestRunner: 1. Patch[24760218] is applied 03-13 16:18:46.600 12003 32538 32550 E TestRunner: expected: true 03-13 16:18:46.600 12003 32538 32550 E TestRunner: but was : null 03-13 16:18:46.600 12003 32538 32550 E TestRunner: at android.devicepolicy.gts.ManagedProvisioningRequiredPatchesTest.checkRequiredPatches(ManagedProvisioningRequiredPatchesTest.kt:39) 03-13 16:18:46.600 12003 32538 32550 E TestRunner: at android.devicepolicy.gts.ManagedProvisioningRequiredPatchesTest.patchSet1(ManagedProvisioningRequiredPatchesTest.kt:31) 03-13 16:18:46.600 12003 32538 32550 E TestRunner: 03-13 16:18:46.600 12003 32538 32550 E TestRunner: 03-13 16:18:46.600 12003 32538 32550 E TestRunner: ----- end exception -----
测试期望补丁 24760218 处于应用状态,实际返回了null。
解决方法如下:
diff --git a/packages/apps/ManagedProvisioning/AndroidManifest.xml b/packages/apps/ManagedProvisioning/AndroidManifest.xml
index 357fd852955..9f083c35ec7 100644
--- a/packages/apps/ManagedProvisioning/AndroidManifest.xml
+++ b/packages/apps/ManagedProvisioning/AndroidManifest.xml
@@ -92,7 +92,9 @@
android:usesCleartextTraffic="true"
android:supportsRtl="true"
android:name=".ManagedProvisioningApplication">
-
+ <meta-data
+ android:name="com.android.managedprovisioning.patch.24760218"
+ android:value="true" />
<!--
Note: Setup activities are android:immersive to prevent full-screen notifications (USB
mass storage; incoming calls) from taking over. Note that high-priority notifications
| Test | Result | Details |
|---|---|---|
| com.google.android.assistant.gts.AssistantTest#testAssistantOpenFrontCameraWithVoiceInteraction |
fail
|
java.lang.AssertionError
|
| com.google.android.assistant.gts.AssistantTest#testAssistantOpenRearCameraWithVoiceInteraction |
fail
|
java.lang.AssertionError
|
[gms] 修改camera features 解决GtsAssistantHostTestCases
Changes to be committed:
modified: frameworks/native/data/etc/android.hardware.camera.front.xml
modified: frameworks/native/data/etc/android.hardware.camera.xml
diff --git a/frameworks/native/data/etc/android.hardware.camera.front.xml b/frameworks/native/data/etc/android.hardware.camera.front.xml
index 3dd18557111..6339ba88d3b 100644
--- a/frameworks/native/data/etc/android.hardware.camera.front.xml
+++ b/frameworks/native/data/etc/android.hardware.camera.front.xml
@@ -17,5 +17,4 @@
<!-- This is the standard set of features for a front facing camera. -->
<permissions>
<feature name="android.hardware.camera.any" />
- <feature name="android.hardware.camera.front" />
</permissions>
diff --git a/frameworks/native/data/etc/android.hardware.camera.xml b/frameworks/native/data/etc/android.hardware.camera.xml
index dede356a889..1c6dd446162 100644
--- a/frameworks/native/data/etc/android.hardware.camera.xml
+++ b/frameworks/native/data/etc/android.hardware.camera.xml
@@ -16,5 +16,6 @@
<!-- This is the standard set of features for a non auto-focus camera. -->
<permissions>
- <feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera.any" />
+ <feature name="android.hardware.camera" />
</permissions>
浙公网安备 33010602011771号