区区一只呆唯 2025-06-13 21:17 采纳率: 0%
浏览 42

Android14 设置DRM 安全等级为L1 但是会自动降级为L3

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]

  • 写回答

6条回答 默认 最新

  • 阿里嘎多学长 2025-06-13 21:17
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    Android14 设置DRM 安全等级为L1 但是会自动降级为L3

    问题描述:在 Android 14 中设置 DRM 安全等级为 L1,但是会自动降级为 L3。可能的原因是 OP-TEE 初始化失败,OP-TEE 驱动与 secure world 之间的共享内存没有配置。

    解决方案:

    1. 检查 OP-TEE 驱动的配置是否正确。确保 OP-TEE 驱动的配置文件(通常是 op-tee.conf)正确地配置了 secure world 和 OP-TEE 之间的共享内存。
    2. 检查 secure world 的配置是否正确。确保 secure world 的配置文件(通常是 secure-world.conf)正确地配置了 OP-TEE 驱动和 secure world 之间的共享内存。
    3. 检查 OP-TEE 的日志是否有错误信息。可以使用 logcat 命令来查看 OP-TEE 的日志,检查是否有错误信息。
    4. 如果以上步骤都没有解决问题,可以尝试重新编译 OP-TEE 驱动和 secure world,确保它们之间的共享内存配置正确。

    代码示例:

    // op-tee.conf
    [shared-memory]
    size = 0x100000
    offset = 0x100000
    
    // secure-world.conf
    [op-tee]
    shared-memory = /dev/shm/op-tee
    

    注意:上述代码只是示例,实际配置文件的内容可能会有所不同。

    评论

报告相同问题?

问题事件

  • 创建了问题 6月13日