Search code examples
androidhuawei-mobile-serviceshuawei-developers

The message ”Failed to open session” is displayed when the DRM sample code is tested on HUAWEI P40


I was testing the sample code on HUAWEI P40, and received the error message android.media.NotProvisionedException: Failed to open session. Any solution?Thanks for advance.


Solution

  • Hi,from what you described. The DRM service is not applied for or enabled.

    Before integrating the DRM Kit, apply for integrating and enabling the DRM service. For details, see How Do Developers Apply for and Enable DRM Kit