Google 致力于为黑人社区推动种族平等。查看具体举措

Android 12 CTS 版本说明

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

CTS 功能

关于 Android 12 CTS 功能的全新文档及经过了更新的文档如下。

功能 说明 新增/更新
为 SIM 卡联系人读取/写入 API 添加了新测试。请参阅 CTS 设置说明 更新了 CTS 设置说明,以指定使用可支持必要实体文件的 SIM 卡,以便 SIM 卡联系人提供程序能正常运行。 新增
针对 RCS 单一注册 API 的测试 这些测试需要插入运营商 SIM 卡,并且只会在支持 PackageManager#FEATURE_TELEPHONY_IMS_SINGLE_REGISTRATION 功能的设备上进行测试。 新增
PY3 代码移植和 mobly 支持,以强化多设备支持

所有 CameraITS/* 均移植到 python3。功能保持不变。

新增的 Mobly 支持有助于减少通信套接字错误以及为 DUT 和测试图表平板电脑保存的 logcat,以 便提供更好的调试支持。

更新
开发者 UICC 规范更新 在 Android 12 中,若要运行 CTS 运营商 API 测试,设备需要使用具备 CTS 运营商权限的开发者 UICC,该 UICC 满足最新版第三方 GSMA TS.48 测试配置文件规范中规定的要求。 更新
NFC 测试的 UICC 要求 添加了针对 NFC CTS-V 测试的 UICC 要求。 新增
CtsVerifier ReportLog 文件 在 CTS 验证程序报告中添加了 CtsVerifier ReportLog 文件。 新增
更新了 GSI GSI 从 aosp_$arch 重命名为 GSI_$arch 更新

CTS 模块

Android 12 中总共添加了 127 个新模块,总共移除了 53 个模块。如需了解详情,请参阅下表。

新模块

下表列出了 Android 12 中添加的所有新模块。

测试模块名称 ABI 是否免安装应用测试?
arm64-v8a CtsActivityRecognitionTestCases arm64-v8a
arm64-v8a CtsActivityRecognitionTestCases[instant] arm64-v8a
arm64-v8a CtsAdbManagerHostTestCases arm64-v8a
arm64-v8a CtsApacheHttpTestCases arm64-v8a
arm64-v8a CtsApacheHttpTestCases[instant] arm64-v8a
arm64-v8a CtsApexSharedLibrariesTestCases arm64-v8a
arm64-v8a CtsAppCloningHostTest arm64-v8a
arm64-v8a CtsAppCloningHostTest[instant] arm64-v8a
arm64-v8a CtsAppOps2TestCases arm64-v8a
arm64-v8a CtsAppOps2TestCases[instant] arm64-v8a
arm64-v8a CtsAppSearchHostTestCases arm64-v8a
arm64-v8a CtsAppSearchTestCases arm64-v8a
arm64-v8a CtsBiometricsTestCases arm64-v8a
arm64-v8a CtsBugreportTestCases arm64-v8a
arm64-v8a CtsCallLogTestCases arm64-v8a
arm64-v8a CtsCameraApi31TestCases arm64-v8a
arm64-v8a CtsClasspathsTestCases arm64-v8a
arm64-v8a CtsDevicePolicyTestCases arm64-v8a
arm64-v8a CtsDevicePolicyTestCases[run-on-secondary-user] arm64-v8a
arm64-v8a CtsDevicePolicyTestCases[run-on-work-profile] arm64-v8a
arm64-v8a CtsDeviceStateManagerTestCases arm64-v8a
arm64-v8a CtsDomainVerificationDeviceMultiUserTestCases arm64-v8a
arm64-v8a CtsDomainVerificationDeviceMultiUserTestCases[run-on-secondary-user] arm64-v8a
arm64-v8a CtsDomainVerificationDeviceMultiUserTestCases[run-on-work-profile] arm64-v8a
arm64-v8a CtsDomainVerificationDeviceStandaloneTestCases arm64-v8a
arm64-v8a CtsDomainVerificationHostTestCases arm64-v8a
arm64-v8a CtsFrameRateOverrideTestCases arm64-v8a
arm64-v8a CtsFrameRateOverrideTestCases[instant] arm64-v8a
arm64-v8a CtsGameManagerTestCases arm64-v8a
arm64-v8a CtsGameManagerTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlocklistApi27TestCases arm64-v8a
arm64-v8a CtsHiddenApiBlocklistApi27TestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlocklistApi28TestCases arm64-v8a
arm64-v8a CtsHiddenApiBlocklistApi28TestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlocklistCurrentApiTestCases arm64-v8a
arm64-v8a CtsHiddenApiBlocklistCurrentApiTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlocklistDebugClassTestCases arm64-v8a
arm64-v8a CtsHiddenApiBlocklistDebugClassTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlocklistTestApiTestCases arm64-v8a
arm64-v8a CtsHiddenApiBlocklistTestApiTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiKillswitchSdkListTestCases arm64-v8a
arm64-v8a CtsHiddenApiKillswitchSdkListTestCases[instant] arm64-v8a
arm64-v8a CtsHostsideHiddenapiTests arm64-v8a
arm64-v8a CtsHostsideHiddenapiTests[instant] arm64-v8a
arm64-v8a CtsIcu4cTestCases arm64-v8a
arm64-v8a CtsInputTestCases arm64-v8a
arm64-v8a CtsInstalledLoadingProgressHostTests arm64-v8a
arm64-v8a CtsInstallHostTestCases arm64-v8a
arm64-v8a CtsLegacyNotification30TestCases arm64-v8a
arm64-v8a CtsLibnativehelperTestCases arm64-v8a
arm64-v8a CtsLocationTimeZoneManagerHostTest arm64-v8a
arm64-v8a CtsMediaParserHostTestCases arm64-v8a
arm64-v8a CtsMediaParserHostTestCases[instant] arm64-v8a
arm64-v8a CtsMediaPerformanceClassTestCases arm64-v8a
arm64-v8a CtsMediaProviderTranscodeTests arm64-v8a
arm64-v8a CtsMediaTranscodingTestCases arm64-v8a
arm64-v8a CtsMusicRecognitionTestCases arm64-v8a
arm64-v8a CtsNativeVerifiedBootTestCases arm64-v8a
arm64-v8a CtsNativeVerifiedBootTestCases[instant] arm64-v8a
arm64-v8a CtsNNAPIJavaTestCases arm64-v8a
arm64-v8a CtsNNAPIJavaTestCases[instant] arm64-v8a
arm64-v8a CtsPackageManagerMultiUserHostTestCases arm64-v8a
arm64-v8a CtsPackageManagerParsingHostTestCases arm64-v8a
arm64-v8a CtsPackageManagerPreferredActivityHostTestCases arm64-v8a
arm64-v8a CtsPackageManagerStatsHostTestCases arm64-v8a
arm64-v8a CtsPermission4TestCases arm64-v8a
arm64-v8a CtsPermission5TestCases arm64-v8a
arm64-v8a CtsPermission5TestCases[instant] arm64-v8a
arm64-v8a CtsPermissionManagerNativeTestCases arm64-v8a
arm64-v8a CtsPermissionManagerNativeTestCases[instant] arm64-v8a
arm64-v8a CtsRebootReadinessTestCases arm64-v8a
arm64-v8a CtsRotationResolverServiceDeviceTestCases arm64-v8a
arm64-v8a CtsScopedStorageCoreHostTest arm64-v8a
arm64-v8a CtsScopedStorageCoreHostTest[instant] arm64-v8a
arm64-v8a CtsScopedStorageDeviceOnlyTest arm64-v8a
arm64-v8a CtsSearchUiServiceTestCases arm64-v8a
arm64-v8a CtsSensorPrivacyTestCases arm64-v8a
arm64-v8a CtsSensorPrivacyTestCases[instant] arm64-v8a
arm64-v8a CtsSensorRatePermissionTestCases arm64-v8a
arm64-v8a CtsSensorRatePermissionTestCases[instant] arm64-v8a
arm64-v8a CtsSettingsSuggestionsTest arm64-v8a
arm64-v8a CtsSettingsTestCases arm64-v8a
arm64-v8a CtsSilentUpdateHostTestCases arm64-v8a
arm64-v8a CtsSimPhonebookProviderTestCases arm64-v8a
arm64-v8a CtsSmartspaceServiceTestCases arm64-v8a
arm64-v8a CtsStatsdAtomHostTestCases arm64-v8a
arm64-v8a CtsStatsdAtomHostTestCases[instant] arm64-v8a
arm64-v8a CtsTimeTestCases arm64-v8a
arm64-v8a CtsTranslationTestCases arm64-v8a
arm64-v8a CtsTranslationTestCases[instant] arm64-v8a
arm64-v8a CtsUsesNativeLibraryTest arm64-v8a
arm64-v8a CtsUwbTestCases arm64-v8a
arm64-v8a CtsUwbTestCases[instant] arm64-v8a
arm64-v8a CtsVcnTestCases arm64-v8a
arm64-v8a CtsViewReceiveContentTestCases arm64-v8a
arm64-v8a CtsViewReceiveContentTestCases[instant] arm64-v8a
arm64-v8a CtsVoiceRecognitionTestCases arm64-v8a
arm64-v8a ResourceObserverNativeTest arm64-v8a
arm64-v8a ResourceObserverNativeTest[instant] arm64-v8a
arm64-v8a signed-CtsOmapiTestCases arm64-v8a
armeabi-v7a CtsApexSharedLibrariesTestCases armeabi-v7a
armeabi-v7a CtsAppOps2TestCases armeabi-v7a
armeabi-v7a CtsBiometricsTestCases armeabi-v7a
armeabi-v7a CtsCameraApi31TestCases armeabi-v7a
armeabi-v7a CtsDevicePolicyTestCases armeabi-v7a
armeabi-v7a CtsDomainVerificationDeviceMultiUserTestCases armeabi-v7a
armeabi-v7a CtsDomainVerificationDeviceStandaloneTestCases armeabi-v7a
armeabi-v7a CtsDomainVerificationHostTestCases armeabi-v7a
armeabi-v7a CtsGameManagerTestCases armeabi-v7a
armeabi-v7a CtsIcu4cTestCases armeabi-v7a
armeabi-v7a CtsInputTestCases armeabi-v7a
armeabi-v7a CtsInstalledLoadingProgressHostTests armeabi-v7a
armeabi-v7a CtsLibnativehelperTestCases armeabi-v7a
armeabi-v7a CtsMediaParserHostTestCases armeabi-v7a
armeabi-v7a CtsMediaPerformanceClassTestCases armeabi-v7a
armeabi-v7a CtsNativeVerifiedBootTestCases armeabi-v7a
armeabi-v7a CtsNNAPIJavaTestCases armeabi-v7a
armeabi-v7a CtsPackageManagerMultiUserHostTestCases armeabi-v7a
armeabi-v7a CtsPackageManagerParsingHostTestCases armeabi-v7a
armeabi-v7a CtsPackageManagerPreferredActivityHostTestCases armeabi-v7a
armeabi-v7a CtsPackageManagerStatsHostTestCases armeabi-v7a
armeabi-v7a CtsPermissionManagerNativeTestCases armeabi-v7a
armeabi-v7a CtsStatsdAtomHostTestCases armeabi-v7a
armeabi-v7a CtsTranslationTestCases armeabi-v7a
armeabi-v7a CtsViewReceiveContentTestCases armeabi-v7a
armeabi-v7a CtsVoiceRecognitionTestCases armeabi-v7a
armeabi-v7a ResourceObserverNativeTest armeabi-v7a

已移除的模块

下表列出了 Android 12 中已移除的所有模块。

测试模块名称 ABI 是否免安装应用测试?
arm64-v8a CtsBlobStoreHostTestHelper arm64-v8a
arm64-v8a CtsBlobStoreTestHelper arm64-v8a
arm64-v8a CtsBlobStoreTestHelperDiffSig arm64-v8a
arm64-v8a CtsBlobStoreTestHelperDiffSig2 arm64-v8a
arm64-v8a CtsDeviceConfigTestCases[instant] arm64-v8a
arm64-v8a CtsExtendedMockingTestCases arm64-v8a
arm64-v8a CtsExtendedMockingTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlacklistApi27TestCases arm64-v8a
arm64-v8a CtsHiddenApiBlacklistApi27TestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlacklistApi28TestCases arm64-v8a
arm64-v8a CtsHiddenApiBlacklistApi28TestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlacklistCurrentApiTestCases arm64-v8a
arm64-v8a CtsHiddenApiBlacklistCurrentApiTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlacklistDebugClassTestCases arm64-v8a
arm64-v8a CtsHiddenApiBlacklistDebugClassTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiBlacklistTestApiTestCases arm64-v8a
arm64-v8a CtsHiddenApiBlacklistTestApiTestCases[instant] arm64-v8a
arm64-v8a CtsHiddenApiKillswitchWhitelistTestCases arm64-v8a
arm64-v8a CtsHiddenApiKillswitchWhitelistTestCases[instant] arm64-v8a
arm64-v8a cts-platform-version-check arm64-v8a
arm64-v8a CtsPrintTestCases arm64-v8a
arm64-v8a CtsPrintTestCases[instant] arm64-v8a
arm64-v8a CtsSecureElementAccessControlTestCases1 arm64-v8a
arm64-v8a CtsSecureElementAccessControlTestCases1[instant] arm64-v8a
arm64-v8a CtsSecureElementAccessControlTestCases2 arm64-v8a
arm64-v8a CtsSecureElementAccessControlTestCases2[instant] arm64-v8a
arm64-v8a CtsSecureElementAccessControlTestCases3 arm64-v8a
arm64-v8a CtsSecureElementAccessControlTestCases3[instant] arm64-v8a
arm64-v8a CtsSecurityTestCases[instant] arm64-v8a
arm64-v8a CtsShortcutManagerLauncher1 arm64-v8a
arm64-v8a CtsShortcutManagerLauncher2 arm64-v8a
arm64-v8a CtsShortcutManagerLauncher3 arm64-v8a
arm64-v8a CtsShortcutManagerLauncher4 arm64-v8a
arm64-v8a CtsShortcutManagerPackage1 arm64-v8a
arm64-v8a CtsShortcutManagerPackage2 arm64-v8a
arm64-v8a CtsShortcutManagerPackage3 arm64-v8a
arm64-v8a CtsShortcutManagerPackage4 arm64-v8a
arm64-v8a CtsShortcutManagerThrottlingTest arm64-v8a
arm64-v8a CtsSkQPTestCases arm64-v8a
arm64-v8a cts-system-all.api arm64-v8a
arm64-v8a cts-system-all.api[instant] arm64-v8a
arm64-v8a signed-CtsSecureElementAccessControlTestCases1[instant] arm64-v8a
arm64-v8a signed-CtsSecureElementAccessControlTestCases2[instant] arm64-v8a
arm64-v8a signed-CtsSecureElementAccessControlTestCases3[instant] arm64-v8a
armeabi-v7a CtsExtendedMockingTestCases armeabi-v7a
armeabi-v7a CtsPerfettoTestCases armeabi-v7a
armeabi-v7a cts-platform-version-check armeabi-v7a
armeabi-v7a CtsSkQPTestCases armeabi-v7a