Android 15 CTS 版本说明

本页包含 Android 15 中引入的 CTS 重要变更。

CTS 功能

Android 15 包含关于以下主题的全新文档和更新版文档: 以下 CTS 功能:

领域 功能 说明 新增/更新
测试模块 CtsWindowManagerDeviceTestCases 分为多个模块 分为多个模块进行测试以减少测试错误,并将运行时从 1 小时 30 分钟缩短至将近 55 分钟。 更新
测试模块 CtsDynamicMimeHostTestCases 分为多个模块 不适用 更新
测试基础架构 Mainline CTS 的自动动态下载 动态下载 Mainline CTS 并自动集成到 CTS 软件包中执行测试,以适当改进通过 CTS 针对相应的 Mainline 模块版本进行的兼容性测试。 新增
测试基础架构 引入了两个新的基准设置 CTS/VTS/GTS 中已启用的两个新的基准设置:
  • 清除 hidden_api_policy 设置以确保无法访问隐藏 API(除非在模块内部显式设置)。
  • 返回到主屏幕以避免因未关闭的 activity 导致测试失败。
新增

CTS 验证程序功能

Android 15 包含关于以下主题的全新文档和更新版文档: CTS 验证程序的以下功能:

领域 功能 说明 新增/更新
CTS-V 测试类 废弃了 CTS 验证程序中的 USB Audio Play 和 USB Audio Record 测试。 这些测试已被 Audio Datapaths USB 测试中经过改进的测试取代。 更新
CTS-V 测试类 新的 ITS 测试:LowLightBoostTest 在昏暗照明条件下测试弱光增强模式。 新增
CTS-V 测试类 新的 CTS 验证程序测试 Sharesheet ChooserResult 验证 Android 15 中 Sharesheet ChooserResult 类的功能。 新增

CTS 模块

测试模块和测试用例的数量如下:

  • 约 1389 个模块,具体取决于设备
  • 约 600 万个测试用例,涉及 2 个 ABI

在 Android 15 中,共有 191 个新模块 添加了 5 个模块,共删除了 5 个模块。

新模块

  • ABI:arm64-v8a
添加了测试模块名称 免安装应用测试
CtsAddApkToApexHostTestCases
CtsAdoptableHostTestCases
CtsADPFHostTestCases
CtsAdServicesCobaltTest
CtsAdServicesCustomAudienceTests
CtsAdServicesExtDataStorageServiceTest
CtsApkVerityInstallHostTestCases
CtsAppCloningContactsSharingTest
CtsAppCloningIntentRedirectionTest
CtsAppDataIsolationHostTestCases
CtsAppFgsStartTestCases
CtsAppSearchTestCases[run-on-work-profile]
CtsAppStartTestCases
CtsAppStartTestCasesYes
CtsBRSTestCases
CtsCameraHeadlessSystemUserTestCases
CtsCompanionDeviceManagerMultiDeviceTestCases
CtsConnectivityMultiDevicesTestCases
CtsContactKeysManagerTestCases
CtsContactKeysProviderPrivilegedApp
CtsContextualSearchServiceTestCases
CtsCorruptApkHostTestCases
CtsCrashDetailHostTestCases
CtsCredentialManagerHostSideTestCases
CtsDeleteKeepDataHostTestCases
CtsDevicePolicyTestCases[run-on-private-profile]
CtsDirectBootHostTestCases
CtsDropBoxManagerTestCasesAPI34
CtsDynamicMimeChangedGroupAppUpdateHostTestCases
CtsDynamicMimeComplexFilterClearGroupRebootHostTestCases
CtsDynamicMimeComplexFilterRebootHostTestCases
CtsDynamicMimeIndependentGroupRebootHostTestCases
CtsDynamicMimePreferredActivitiesHostTestCases
CtsDynamicMimeRemoveRebootHostTestCases
CtsDynamicMimeSingleAppGroupRebootHostTestCases
CtsDynamicMimeSingleAppRebootHostTestCases
CtsExerciseRouteTestCases
CtsFgsTimeoutTestCases
CtsFgsTimeoutTestCasesYes
CtsFingerprintTestCases
CtsGetBindingUidImportanceTest
CtsHealthFitnessDeviceTestCasesHistoricAccessLimitWithPermission
CtsHealthFitnessDeviceTestCasesNotAllPermissionsAreGranted
CtsHealthFitnessDeviceTestCasesRateLimiter
CtsHealthFitnessShowMigrationInfoIntentAbsentTests
CtsHostsideNetworkPolicyTests
CtsHostsideNetworkPolicyTestsYes
CtsInputHostTestCases
CtsInputMethodInstallTestCases
CtsInputMethodInstallTestCasesYes
CtsInstantAppsHostTestCases
CtsLegacyNotification34TestCases
CtsMediaCUJLargeTest
CtsMediaCUJSmallTest
CtsMediaCUJSmallTestYes
CtsMediaEditingTestCases
CtsMediaProjectionSDK33TestCases
CtsMediaProjectionSDK33TestCasesYes
CtsMediaProjectionSDK34TestCases
CtsMediaProjectionSDK34TestCasesYes
CtsMediaProviderTestCases
CtsMemunreachableTestCases
CtsMultiUserTestCases[run-on-private-profile]
CtsNetSecConfigCertificateTransparencyDefaultTestCases
CtsNetSecConfigCertificateTransparencyDefaultTestCasesYes
CtsNetSecConfigCertificateTransparencyTestCases
CtsNetSecConfigCertificateTransparencyTestCasesYes
CtsNotificationExtendersTestCases
CtsOnDeviceIntelligenceServiceTestCases
CtsOnDevicePersonalizationConfigTests
CtsOnDevicePersonalizationE2ETests
CtsOverlayHostTestCases
CtsPackageInstallerCUJTestCases
CtsPackageManagerHostTestCases
CtsPackageManagerIncrementalStatsHostTestCases
CtsPackageManagerTestCases
CtsPackageManagerTestCasesYes
CtsPdfModuleTestCases
CtsPdfModuleTestCasesYes
CtsPendingIntentApi33TestCases
CtsPendingIntentApi33TestCasesYes
CtsPermissionMultiDeviceTestCases
CtsPermissionsHostTestCases
CtsPermissionUiTestCases
CtsProfilingModuleTests
CtsResourcesHostTestCases
CtsResourcesTestCases
CtsResourcesTestCasesYes
CtsResumeOnRebootHostTestCases
CtsRollbackManagerTestCases
CtsScopedStorageBypassDatabaseOperationsTest
CtsScopedStorageGeneralTest
CtsScopedStorageRedactUriTest
CtsSecureElementTestCases
CtsSensitiveContentProtectionTestCases
CtsSensitiveContentProtectionTestCasesYes
CtsSettingsTestCases[run-on-work-profile]
CtsStorageAccessTestCases
CtsStorageHostTestCases
CtsSystemApiAnnotationTestCases
CtsTelecomCujTestCases
CtsTelephonyCujTestCases
CtsTelephonyCujTestCasesYes
CtsUseEmbeddedDexHostTestCases
CtsUserRestrictionTestCases
CtsUserRestrictionTestCases[run-on-work-profile]
CtsUwbMultiDeviceTestCase_FiraRangingTests
CtsVibratorTestCases
CtsVibratorTestCasesYes
CtsVibratorTestCases[run-on-clone-profile]
CtsVibratorTestCases[run-on-private-profile]
CtsVibratorTestCases[run-on-secondary-user]
CtsVibratorTestCases[run-on-work-profile]
CtsVideoQualityFloorHostTestCases
CtsVirtualDevicesAppLaunchTestCases
CtsVirtualDevicesAudioTestCases
CtsVirtualDevicesCameraCtsTestCases
CtsVirtualDevicesCameraTestCases
CtsVirtualDevicesSensorTestCases
CtsWifiNonUpdatableTestCases
CtsWindowManagerDeviceActivity
CtsWindowManagerDeviceAm
CtsWindowManagerDeviceAnimations
CtsWindowManagerDeviceBackNavigation
CtsWindowManagerDeviceDisplay
CtsWindowManagerDeviceIme
CtsWindowManagerDeviceInput
CtsWindowManagerDeviceInsets
CtsWindowManagerDeviceKeyguard
CtsWindowManagerDeviceMultiDisplay
CtsWindowManagerDeviceOther
CtsWindowManagerDeviceTaskFragment
CtsWindowManagerDeviceWindow
CtsWindowManagerTestCases
CtsWindowManagerTestCasesYes
MicrodroidTestAppNoInternetPerm
MultiDeviceRangingTestCase_Uwb

新的 Mainline 相关 CTS 模块

添加了测试模块名称 免安装应用测试
MctsAppSecurityHostTestCases
MctsMediaBetterTogetherTestCases
MctsMediaBetterTogetherTestCasesYes
MctsMediaCodecTestCases
MctsMediaCodecTestCasesYes
MctsMediaDecoderTestCases
MctsMediaEncoderTestCases
MctsMediaExtractorTestCases
MctsMediaMiscTestCases
MctsMediaMiscTestCasesYes
MctsMediaMuxerTestCases
MctsMediaParserTestCases
MctsMediaPlayerTestCases
MctsMediaRecorderTestCases
MctsMediaStressTestCases
MctsMediaTranscodingTestCases
MctsMediaV2TestCases

已移除的模块

已删除的测试模块名称 ABI 免安装应用测试
CtsLaunchNonExportedComponentsTestCases arm64-v8a
CtsLegacyNotification20TestCases arm64-v8a
CtsPermission3TestCases arm64-v8a
CtsStrictJavaPackagesTestCases arm64-v8a
CtsTareTestCases arm64-v8a
CtsWindowManagerDeviceTestCases arm64-v8a
libnativeloader_test arm64-v8a