Android14 设置DRM 安全等级为L1 但是会自动降级为L3
大概的原因是OP-TEE初始化失败,OP-TEE驱动与secure world之间的共享内存没有配置,这个该怎么解决
DrmUtils: found IDrmFactory. Instance name:[android.hardware.drm.IDrmFactory/widevine]
06-12 09:27:12.245 321 321 I WVCdm-DrmFactory: [nullptr][com.toralabs.deviceinfo] calling virtual ::ndk::ScopedAStatus wvdrm::hardware::drm::widevine::WVDrmFactory::createDrmPlugin(const Uuid &, const string &, std::shared_ptr< ::aidl::android::hardware::drm::IDrmPlugin> *)
06-12 09:27:12.255 321 321 D WVCdm : [cdm_engine.cpp(597):QueryStatus] security_level = Default, query_token = WidevineCdmVersion
06-12 09:27:12.257 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(837):Initialize] Level 3 Build Info (v18): {"soc_vendor":"L3_28612","soc_model":"ARM 32 bit","ta_ver":"18.1.0+May 1 2023_06:32:58_","uses_opk":false,"tee_os":"none","tee_os_ver":"0.0.0","form_factor":"L3","implementer":"Widevine","fused":false}
06-12 09:27:12.303 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(851):Initialize] L3 Initialized. Trying L1.
06-12 09:27:12.319 321 321 I oemcrypto_tz:
06-12 09:27:12.319 321 321 I oemcrypto_tz: MM-module-name:Widevine liboemcrypto,Version:18.5-r0.0-g4a915c8(build:2964)
06-12 09:27:12.320 321 321 E oemcrypto_tz: TEEC_InitializeContext failed: 0xffff0008
06-12 09:27:12.320 321 321 E oemcrypto_tz: OPTEE_Open: TEEC error 0xffff0008
06-12 09:27:12.320 321 321 E oemcrypto_tz: TOS_Transport_GetRequest: no shared memory!
06-12 09:27:12.320 321 321 W oemcrypto_tz: OVERFLOW_ERROR
06-12 09:27:12.320 321 321 E oemcrypto_tz: Error getting serialization versions: 28
06-12 09:27:12.320 321 321 E oemcrypto_tz: TOS_Transport_GetRequest: no shared memory!
06-12 09:27:12.320 321 321 W oemcrypto_tz: OVERFLOW_ERROR
06-12 09:27:12.320 321 321 W WVCdm : [oemcrypto_adapter_dynamic.cpp(960):LoadLevel1] Could not initialize L1. Falling back to L3: 28
06-12 09:27:12.320 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(900):Level1Terminate] L1 Terminate not needed
06-12 09:27:12.320 321 321 E WVCdm : [oemcrypto_adapter_dynamic.cpp(1337):ValidateOrInstallL1KeyboxOrCert] L1 not initialized. Falling back to L3
06-12 09:27:12.320 321 321 W WVCdm : [oemcrypto_adapter_dynamic.cpp(1549):OEMCrypto_InitializeAndCheckKeybox] Keybox error: 28. Falling back to L3.
06-12 09:27:12.321 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(900):Level1Terminate] L1 Terminate not needed
06-12 09:27:12.321 321 321 D WVCdm : [crypto_session.cpp(472):CacheVersion] OEMCrypto version (default security level): 18.1
06-12 09:27:12.321 321 321 D WVCdm : [crypto_session.cpp(481):CacheVersion] OEMCrypto version (L3 security level): 18.1
06-12 09:27:12.322 321 321 D WVCdm : [cdm_engine.cpp(597):QueryStatus] security_level = Default, query_token = WidevineCdmVersion
06-12 09:27:12.331 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(837):Initialize] Level 3 Build Info (v18): {"soc_vendor":"L3_28612","soc_model":"ARM 32 bit","ta_ver":"18.1.0+May 1 2023_06:32:58_","uses_opk":false,"tee_os":"none","tee_os_ver":"0.0.0","form_factor":"L3","implementer":"Widevine","fused":false}
06-12 09:27:12.335 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(851):Initialize] L3 Initialized. Trying L1.
06-12 09:27:12.335 321 321 E WVCdm : [oemcrypto_adapter_dynamic.cpp(924):LoadLevel1] Still falling back to L3.
06-12 09:27:12.335 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(900):Level1Terminate] L1 Terminate not needed
06-12 09:27:12.335 321 321 E WVCdm : [oemcrypto_adapter_dynamic.cpp(1337):ValidateOrInstallL1KeyboxOrCert] L1 not initialized. Falling back to L3
06-12 09:27:12.335 321 321 W WVCdm : [oemcrypto_adapter_dynamic.cpp(1549):OEMCrypto_InitializeAndCheckKeybox] Keybox error: 28. Falling back to L3.
06-12 09:27:12.335 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(900):Level1Terminate] L1 Terminate not needed
06-12 09:27:12.336 321 321 D WVCdm : [crypto_session.cpp(472):CacheVersion] OEMCrypto version (default security level): 18.1
06-12 09:27:12.336 321 321 D WVCdm : [crypto_session.cpp(481):CacheVersion] OEMCrypto version (L3 security level): 18.1
06-12 09:27:12.344 4788 4834 I DrmUtils: found IDrmFactory. Instance name:[android.hardware.drm.IDrmFactory/widevine]
06-12 09:27:12.344 321 321 I WVCdm-DrmFactory: [nullptr][com.toralabs.deviceinfo] calling virtual ::ndk::ScopedAStatus wvdrm::hardware::drm::widevine::WVDrmFactory::createDrmPlugin(const Uuid &, const string &, std::shared_ptr< ::aidl::android::hardware::drm::IDrmPlugin> *)
06-12 09:27:12.344 321 321 E WVCdm-DrmFactory: Widevine Drm HAL: failed to create drm plugin, invalid crypto scheme
06-12 09:27:12.873 1295 2096 E AndroidRuntime: java.lang.IllegalStateException: Callback timeout
06-12 09:27:12.910 1295 2096 E DeviceDoctorHandler: java.lang.IllegalStateException: Callback timeout
06-12 09:27:17.168 4942 4942 W Thunderbird: at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
06-12 09:27:17.168 4942 4942 W Thunderbird: at android.os.Parcel.createException(Parcel.java:3041)
06-12 09:27:17.168 4942 4942 W Thunderbird: Caused by: android.os.RemoteException: Remote stack trace:
06-12 09:27:25.715 4788 4788 I DrmUtils: found IDrmFactory. Instance name:[android.hardware.drm.IDrmFactory/widevine]
06-12 09:27:25.716 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(837):Initialize] Level 3 Build Info (v18): {"soc_vendor":"L3_28612","soc_model":"ARM 32 bit","ta_ver":"18.1.0+May 1 2023_06:32:58_","uses_opk":false,"tee_os":"none","tee_os_ver":"0.0.0","form_factor":"L3","implementer":"Widevine","fused":false}
06-12 09:27:25.723 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(851):Initialize] L3 Initialized. Trying L1.
06-12 09:27:25.723 321 321 E WVCdm : [oemcrypto_adapter_dynamic.cpp(924):LoadLevel1] Still falling back to L3.
06-12 09:27:25.723 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(900):Level1Terminate] L1 Terminate not needed
06-12 09:27:25.723 321 321 E WVCdm : [oemcrypto_adapter_dynamic.cpp(1337):ValidateOrInstallL1KeyboxOrCert] L1 not initialized. Falling back to L3
06-12 09:27:25.724 321 321 W WVCdm : [oemcrypto_adapter_dynamic.cpp(1549):OEMCrypto_InitializeAndCheckKeybox] Keybox error: 28. Falling back to L3.
06-12 09:27:25.724 321 321 I WVCdm : [oemcrypto_adapter_dynamic.cpp(900):Level1Terminate] L1 Terminate not needed
06-12 09:27:25.724 321 321 D WVCdm : [crypto_session.cpp(472):CacheVersion] OEMCrypto version (default security level): 18.1
06-12 09:27:25.724 321 321 D WVCdm : [crypto_session.cpp(481):CacheVersion] OEMCrypto version (L3 security level): 18.1
06-12 09:27:25.728 4788 4788 I DrmUtils: found IDrmFactory. Instance name:[android.hardware.drm.IDrmFactory/widevine]