美文网首页
android Q gms认证失败项整理(202005)

android Q gms认证失败项整理(202005)

作者: Darkt | 来源:发表于2020-05-06 20:22 被阅读0次
    • 【vts】 VtsFastbootVerification
      请升级adb/fastboot到最新版 (Ubuntu版本需要18.04版本以上,adb需要是41的) 刷GSI时记得清一下缓存 fastboot-w 请确保以下两条命令 执行OK的,再跑VTS fastboot reboot bootloader fastboot reboot fastboot

    • 【gts】GtsSuspendAppsTestCases 2 cases failed
      com.google.android.suspendapps.gts.SuspendPackagesTest#testOpCameraOnSuspend fail java.lang.AssertionError: Op CAMERA allowed while package is suspended.
      com.google.android.suspendapps.gts.SuspendPackagesTest#testOpRecordAudioOnSuspend fail java.lang.AssertionError: Op RECORD_AUDIO allowed while package is suspended.
      -- Google Patch:
      https://android.googlesource.com/platform/frameworks/av/+/b0de569edd2d27b8dae9e3048f9c131b6ebc2d45
      https://android.googlesource.com/platform/frameworks/base/+/873e19f63f97dbb74db499c1145a1102b1ce8fda

    • 【vts】GraphicsComposerHidlCommandTest.SET_COLOR_TRANSFOR
      Fail:hardware/interfaces/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp:681
      -- 这个测试项是做SET_COLOR_TRANSFORM,但是driver层没有相关代码,导致了失败。可申请patch

    • 【cts】CtsVideoTestCases testH263Goog0Qual0176x0144 & testMpeg4Goog0Qual0176x0144 fail
      junit.framework.AssertionFailedError: rms error is bigger than the limit
      -- 更新Mainline Media Module;合入patch:https://android-review.googlesource.com/c/platform/frameworks/av/+/1116737/

    • 【vts】SystemVendorTest.ServedHwbinderHalsAreInManifest_32bit
      test/vts-testcase/hal/treble/vintf/SystemVendorTest.cpp:78 Expected: (manifest_hwbinder_hals_.find(name)) != (manifest_hwbinder_hals_.end()), actual: 8-byte object <68-65 21-FE 7F-00 00-00> vs 8-byte object <68-65 21-FE 7F-00 00-00> android.hardware.radio.config@1.0::IRadioConfig/default is being served, but it is not in a manifest.
      -- ALPS04839613

    • 【ITS】ITS test effects 测试fail
      对于scene2/test_effects测试fail。 EFFECTS = {0: 'OFF', 1: 'MONO', 2: 'NEGATIVE', 3: 'SOLARIZE', 4: 'SEPIA', 5: 'POSTERIZE', 6: 'WHITEBOARD', 7: 'BLACKBOARD', 8: 'AQUA'}
      -- 这些effects mode 目前平台并没有支持,ISP中有对应的flow,但是并没有做实际的处理;因此测试中会出现一些effect 没有效果导致fail
      方案:删除相对应的imgsensor_metadata的配置

    • 【gts】GtsWebViewHostTestCases 4 cases failed
      gms包的问题,可更换apk

    • 【cts】android.video.cts.VideoEncoderDecoderTest#testAvcGoog0Perf0720x0480 fail

    -- XML 提供的 google avc codec framerate range 不符合 CTS 預期
    調整 XML:google avc codec framerate range <MediaCodec name="c2.android.avc.encoder" type="video/avc" update="true"><Limit name="measured-frame-rate-720x480" range="11-25" /> https://source.android.com/devices/media/oem.html#2_achievable_frame_rates_for_video_codecs

    • 【cts】USB Audio Peripheral Attributes Test fail
      通过OTG连接audio box,提示属性不匹配
      下面的字符串少了空格,请加上空格后测试。 564 std::string patternCTS2 = "AudioBox 44 VSL"; 565 std::string patternCTS3 = "AudioBox 22 VSL";

    • 【cts】CtsViewTestCases 测试fail
      CTS/VTS 检测edgeColor fail fail log: android.view.cts.PixelCopyTest#testDialogProducer fail java.lang.AssertionError: Bottom edge; expected=ffffff00, actual=ff424242 android.view.cts.PixelCopyTest#testDialogProducerCopyToRGBA16F fail java.lang.AssertionError: Bottom edge; expected=ffffff00, actual=ff8b8b8b
      https://android-review.googlesource.com/c/platform/cts/+/1254104

    • 【cts】testFlashTurnOff fail
      该项测试要求: flash从on->off的状态是[4,2], 从off->on(flash_mode_torch下发之前),flash的状态要求是[2,4] 从off->on的状态是[4,3] 而在测试过程中因为开关灯延迟的原因,导致AP 拿到的flash state 不符合预期。

    • 【cts】How to fix SELinuxHostTest#testNoBugreportDenials fail
      这是因为从Android Q开始 Google 新增了对dumpstate denials 的检查(AOSP/667966, AOSP/742461), 如果在执行Bugreport命令后,有出现dumpstate 的avc denied log,该测项就会fail.
      1. 确认相关目录/文件是Google原生的还是MTK的还是客制化的,找对应owner确认相关目录/文件是否有在使用,若没有在使用,则移除之。若有在使用,则要确认它的SELinux context 是否有正确配置。若context未正确配置,请在file.te和file_contexts中分别做定义和绑定操作;2. 评估dumpstate对它的访问是否是合理的/预期的,如不需要授权(即不需要加allow rules),则需要添加对应的dontaudit rule来避免印出avc denied log。如:dontaudit dumpstate apex_mnt_dir:dir getattr;3. 若确实需要允许给dumpstate对它的访问,则需要添加对应的allow rule。如:allow dumpstate mnt_expand_file:dir getattr;

    • 【vts】vendor.mediatek.hardware.presence@1.0::IPresence not available.
      这类报错的原因是,VTS工具检测到此HIDL service alive,但是此service 对应的HIDL在manifest中没有定义 在Q版我們有對Presence做了refactor, Presence hidl service是不會被使用的, 所以可以將以下這兩個file中的 /device/mediatek/vendor/common/device.mk /device/mediatek/common/device.mk 這三行給拔掉 volte_uce_ua vendor.mediatek.hardware.presence@1.0.so DEVICE_MANIFEST_FILE += $(LOCAL_PATH)/project_manifest/manifest_presence.xm 以及移除掉以下這兩個file: /device/mediatek/vendor/common/project_manifest/manifest_presence.xml /device/mediatek/common/project_manifest/manifest_presence.xml

    • 【cts】android.hardware.camera2.cts.ExtendedCameraCharacteristicsTest#testRecommendedStreamConfigurations fail
      patch:ALPS04828678

    • 【vts】VtsHalDrmV1_2Target 申请patch

    • 【cts-v】How to decide whether the Audio Input Routing Notifications Test passed or not?
      CTS Verifier 测试中,安装CTS verifier apk后,进入Audio Input Routing Notifications测项 按照要求操作,先点击Yes,然后点击Record,再插入带麦克风的有线耳机,然后拔掉耳机,再点Stop。 这个过程是测试手机录音设备能否在有线耳机和手机麦克风之间正常切换,在操作过程中,由于点击record或插拔耳机的操作顺序不同,也许下方message中的数值会有所不同,但这个数值不是改CTS Verifier的目的,所以不用关心,只把握住测项的目的,符合测试要求,就是pass的。

    • 【cts】android.media.cts.ImageReaderDecoderTest#testGoogH264Image
      java.lang.RuntimeException: while c2.android.avc.decoder decoding swirl_132x130_h264: {color-format=2135033992, track-id=1, level=256, mime=video/avc, frame-count=31, profile=65536, language=und, display-width=132, csd-1=java.nio.HeapByteBuffer[pos=0 lim=9 cap=9], durationUs=2583333, display-height=130, width=132, max-input-size=1597, frame-rate=12, height=130, csd-0=java.nio.HeapByteBuffer[pos=0 lim=28 cap=28]}
      Apply ALPS05081495 (2 patches) to update Google c2 h264/h265 decoder

    • 【CTSV】Audio Frequency Voice Recognition Test fail
      Adjust UL total gain of VR for test case PASS 200 (32) -> 152 (20)
      也可以再透過audio tuning tool 操作,去選取camera recording修改analog gain值,再抓取tuning tool 修改好的XML檔。

    • 【cts】android.hardware.camera2.cts.CaptureRequestTest#testDigitalZoomPreviewCombinations fail
      加入以下判断条件: //just for fix google camera ,preview & capture always capture intent MINT32 rawType = 0; // ERawType_Proc+ char AppPackageName[256]={'\0'};+ ::property_get("com.android.camera2", AppPackageName, "com.mediatek.com");+ if(strcmp(AppPackageName,"com.android.camera2") == 0){ IMetadata::IEntry entry(MTK_P1NODE_RAW_TYPE); sp<IMetaStreamBuffer> pStremBuf = request.vIMetaBuffers[0]; IMetadata* pMetadata = pStremBuf->tryWriteLock(LOG_TAG); //tryReadLock ==> tryWriteLock @@ -415,7 +418,7 @@ submitRequest(AppRequest& request) MY_LOGE("Preview:MTK_P1NODE_RAW_TYPE:%d",entry.itemAt(0,Type2Type<MINT32>())); } pStremBuf->unlock(LOG_TAG,pMetadata); }

    • 【vts】[Vsim]VtsTrebleVendorVintfTest
      如果是Vsim项目 这个问题是因为AOSP在run VTS之前会强制把手机切成DSDS,但是VTS case还是会按照TSTS测试,所以造成fail。
      Google有一笔change修改这个问题: https://android-review.googlesource.com/c/platform/frameworks/base/+/1217995/

    • 【vts】VtsHalGraphicsMapperV2_1Target
      1. DDK 的部分: 在 gralloc 模塊新增兩個 function, 以處理 VTS 測試所需的檢查: gralloc_validate_buffer_size (..) 以及 gralloc_get_transport_size(..)
      2. AOSP 的部分: 增加對返回値的判斷: Platform/hardware/ graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/Gralloc0Hal.h

    • 【vts】VtsHalKeymasterV4_0Target
      Tee问题引起的,需要找对应vendor解决

    • 【cts】CtsTelephonySdk28TestCases android.telephony.sdk28.cts.CellInfoTest#testCellInfoSdk28 fail
      需要申请patch ALPS04841218

    • 【cts】[kernel3.18]VtsKernelNetTest failed
      Failed是因为没有enable CONFIG_XFRM_STATISTICS,所以找不到/proc/net/xfrm_stat'。 Google要求Q至少kernel4.9,而且CONFIG_XFRM_STATISTICS是在kernel4.9 default enable的,k50s project是kernel3.18,default没开这个config

    • 【vts】VideoEncHidlTest.EncodeTestBufferMetaModes_OMX.google.h264.encoder_video_encoder.avc(default)_32bit fail

    ALPS04938922

    • 待续

    相关文章

      网友评论

          本文标题:android Q gms认证失败项整理(202005)

          本文链接:https://www.haomeiwen.com/subject/ivcgghtx.html