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 不可访问,除非在模块内显式设置。
  • 返回主屏幕以避免因未关闭的活动而导致的测试失败。
已添加

CTS 验证程序功能

Android 15 包含以下 CTS 验证程序功能的新增和更新文档

区域 功能 描述 已添加/已更新
CTS-V 测试类 弃用 CTS 验证程序中的 USB 音频播放和 USB 音频录制测试。 这些测试已被音频数据路径 USB 测试中经过改进的测试所取代。 已更新
CTS-V 测试类 新的 ITS 测试:LowLightBoostTest 在黑暗照明条件下测试弱光增强模式。 已添加
CTS-V 测试类 新的 CTS 验证程序测试 Sharesheet ChooserResult 这验证了 Android 15 中 Sharesheet ChooserResult 类的功能。 已添加

CTS 模块

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

  • ~ 1389 个模块,具体取决于设备
  • ~ 600 万个测试用例(超过 2 个 ABI)

在 Android 15 中,总共添加了 191 个新模块,移除了 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