问题描述(Issue Description)
[GTS Test Step] :
− cd Android-gts/tools
− ./gts-tradefed
− run gts
[CTS/GTS/VTS Version] : GTS 8.0_r2
[GMS/GSI Version]: GMS 10_202009
[Security Patch]: Update to 20201105
[Testing Result]:
11-19 18:41:56.277 15818 15838 I MADAComplianceTest: 'Find My' is not visible
11-19 18:41:56.337 15818 15838 E TestRunner:
failed:testMADACompliance(com.google.android.settings.gts.MADAComplianceTest)
问题分析(Analysis)
• Normally, in the process of running
com.googleandroid.settings.gts.MADAComplianceTest#testMADACompliance, Settings-Security UI shouldbe started multiple times, and gts case will check whether one of the GMS items exists (items include:Google Play Protect , Security update, Find My Device) each time, when all the above GMS items are visible,test case will pass; otherwise, it fails.
• However, when using the 8.0_r2 test package to test the device, there is a high probability that the Settings-Security Activity is not successfully launched, causing the GTS case fail to detect GMS items in the Settings-Security.
• Fail Log:
11-19 18:41:56.277 15818 15838 I MADAComplianceTest: 'Find My' is not visible
11-19 18:41:56.338 15818 15838 E TestRunner: ----- begin exception -----
11-19 18:41:56.338 15818 15838 E TestRunner: java.lang.RuntimeException: Test failed for cases: [2]
11-19 18:41:56.338 15818 15838 E TestRunner: Reasons include:
11-19 18:41:56.338 15818 15838 E TestRunner: message [2]: 'Google Play Protect' setting doesn't meet all requirements. The Settings app for the device implementations running Android 8 and later MUST display three status items injected by the Google Play services app as shown on the screenshot below. The items MUST be grouped together under Security status header, MUST be visible without scrolling,and MUST be made available within single depth from the top level Settings menu. For more information, please refer to 'Settings: Security Status' document in the GMS Help Center. Google Play Protect, which protects users from harmful apps, needs to be the first thing listed underneath 'Security status'. Please see the following for
details: https://support.google.com/andro ... _topic=9252245Note:
This test does not apply to devices with API level < 27 (O-MR1)
11-19 18:41:56.338 15818 15838 E TestRunner: Stack Trace:…
结论(Conclusion)
结果
谷歌反馈
信息
谷歌确认此弃权
NA
NA
NA
结果
详情(如果结果是YES)
使用来自 Partner Android Build (PAB) dashboard 的最新 CTS/GSI/VT S dev builds,来验证失败的测试,测试失败不再发生。
YES
Test Date:
2020 Dec. 02
Test Case:
GtsSettingsTestCases
com.google.android.settings.gts.MADAComplianceTest#testM
ADACompliance
Build Created date:
2020 Dec. 02 android-gts-8-R3(8-10)-Preview2-6995676