cts相关问题
1、CtsLibcoreTestCases libcore.java.net.SocketTest#testSocketTestAllAddresses
-
网络问题,需要在IPV6的环境下进行测试
2、CtsLocationTestCases android.location.cts.GnssPseudorangeVerificationTest#testPseudoPosition
-
在测试之前确保工模下有搜到卫星信号,可以在笔记本上设定cts 环境,然后在户外测试。或者使用室内GPS信号放大器
3、CtsKeystoreTestCases android.keystore.cts.KeyAttestationTest#testEcAttestation
-
该项测试需要申请google key
4、CtsCarrierApiTestCases
android.carrierapi.cts.CarrierApiTest#testGetIccAuthentication
android.carrierapi.cts.CarrierApiTest#testHasCarrierPrivileges
android.carrierapi.cts.CarrierApiTest#testSendDialerSpecialCode
-
需要使用特殊sim卡
5、CtsAutoFillServiceTestCases
android.autofillservice.cts.WebViewActivityTest#testAutofillAndSave
android.autofillservice.cts.WebViewActivityTest#testAutofillNoDatasets
android.autofillservice.cts.WebViewActivityTest#testAutofillOneDataset
android.autofillservice.cts.WebViewActivityTest#testSaveOnly
-
可申请豁免,Google bug id :70815921
6、CtsDeqpTestCases
GLES31.functional.debug.negative_coverage.get_error.vertex_array#draw_elements_base_vertex_invalid_map
GLES31.functional.debug.negative_coverage.get_error.vertex_array#draw_elements_instanced_base_vertex_invalid_map
GLES31.functional.debug.negative_coverage.get_error.vertex_array#draw_range_elements_base_vertex_invalid_map
-
可申请豁免,Google bug id : 37942569
7、CtsIncidentHostTestCases(cts-on-gsi)
com.android.server.cts.BatteryStatsValidationTest#testWifiDownload
com.android.server.cts.BatteryStatsValidationTest#testWifiUpload
-
可申请豁免,Google bug id : 69386624
8、CtsAppSecurityHostTestCases(cts-on-gsi)
android.appsecurity.cts.IsolatedSplitsTests#testInstallAllFeatureSplits
android.appsecurity.cts.IsolatedSplitsTests#testInstallAllFeatureSplitsAndConfigSplits
android.appsecurity.cts.IsolatedSplitsTests#testInstallDependentFeatureSplits
android.appsecurity.cts.IsolatedSplitsTests#testInstallDependentFeatureSplitsAndConfigSplits
android.appsecurity.cts.IsolatedSplitsTests#testInstallOneFeatureSplit
android.appsecurity.cts.IsolatedSplitsTests#testInstallOneFeatureSplitAndConfigSplits
-
可申请豁免,Google bug id : 70697855
android.appsecurity.cts.OverlayHostTest#testInstallingOverlayHasNoEffect
-
可申请豁免,Google bug id : 71958344
android.appsecurity.cts.UsesLibraryHostTest#testMissingLibrary
android.appsecurity.cts.UsesLibraryHostTest#testUsesLibrary
-
可申请豁免,Google bug id : 71958671
9、CtsAutoFillServiceTestCases(cts-on-gsi)
android.autofillservice.cts.AttachedContextActivityTest#testAutofill
-
可申请豁免,Google bug id : 71960322
10、CtsSpeechTestCases(cts-on-gsi)
android.speech.tts.cts.TextToSpeechTest#testSpeak
android.speech.tts.cts.TextToSpeechTest#testSpeakStop
android.speech.tts.cts.TextToSpeechTest#testSynthesizeToFile
-
可申请豁免,Google bug id : 64204643
11、CtsDeqpTestCases(cts-on-gsi)
EGL.functional.robustness.reset_context.shaders.infinite_loop.shared_context_status#compute
EGL.functional.robustness.reset_context.shaders.infinite_loop.shared_context_status#fragment
EGL.functional.robustness.reset_context.shaders.infinite_loop.shared_context_status#vertex
EGL.functional.robustness.reset_context.shaders.infinite_loop.shared_context_status#vertex_and_fragment
12、CtsDumpsysHostTestCases(cts-on-gsi)
android.dumpsys.cts.ProcessStatsDumpsysTest#testProcstatsOutput
-
可申请豁免,Google bug id : 72540761
13、CtsPermission2TestCases android.permission2.cts.PrivappPermissionsTest#testPrivappPermissionsEnforcement
-
从8.0之后凡是放在priv-app下面的需要使用的权限都必须使用XML文件进行白名单申明,请知悉,具体可以参考https://source.android.com/devices/tech/config/perms-whitelist
14、CtsAutoFillServiceTestCases android.autofillservice.cts.SimpleSaveActivityTest#testTapLink_changeOrientationThenTapBack
15、CtsIntentSignatureTestCases android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents
-
第三方APK不能用 android.intent.action打头的,请自行卸载或者修改成xxx.intent.action(xxx不能是android)
16、CtsSystemUiTestCases android.systemui.cts.LightBarTests#testLightNavigationBar
-
Google bug id:71837141
17、CtsAppSecurityHostTestCases android.appsecurity.cts.EphemeralTest#testExposedSystemActivities
-
需要设置android:visibleToInstantApps = “true“
18:CtsMediaTestCases--android.media.cts.MediaCodecListTest#testAllComponentInstantiation
(1)MTK_WMA_PLAYBACK_SUPPORT = no
(2)alps/device/mediatek/mt6761 / media_codecs_mediatek_audio_phone.xml
删除:<MediaCodec name="OMX.MTK.AUDIO.DECODER.WMA" type="audio/x-ms-wma" />
(3)alps/device/mediatek/mt6761 / mtk_omx_core.cfg
删除:OMX.MTK.AUDIO.DECODER.WMA audio_decoder.wma libMtkOmxWmaDec.so 32
19:Check GSI properties -- 修改[ro.sf.lcd_density]: [320]
20:CtsMediaTestCases--android.media.cts.VideoDecoderPerfTest#testMpeg4Goog0Perf0176x0144 报 Expected achievable frame rates for OMX.google.mpeg4.decoder video/mp4v-es 176x144: [156.0, 324.0].
alps/device/mediatek/mt6761 / media_codecs_performance.xml
<Limit name="measured-frame-rate-176x144" range="156-324" /> 修改为:
<Limit name="measured-frame-rate-176x144" range="750-1000" />
21:CtsVideoTestCases--android.video.cts.VideoEncoderDecoderTest#testAvcGoog0Perf0720x0480报错 Expected achievable frame rates for OMX.google.h264.encoder video/avc 720x480: [27.0, 95.0].
alps/device/mediatek/mt6761 / media_codecs_performance.xml
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-720x480" range="27-95" /> 修改为:
<Limit name="measured-frame-rate-720x480" range="100-200" />
</MediaCodec>
22:解决GTS GtsPackageManagerHostTestCases--com.google.android.pm.gts.PackageManagerHostTest#testSoundPool报Instant App should be able to access Media / DrmManager的问题
platform/system/sepolicy / private/ephemeral_app.te
添加:allow ephemeral_app drmserver_service:service_manager find;