Record the provisioning event
MediaDrm can report that provisioning is needed when opening a session, obtaining a key request or processing a response. It can also require reprovisioning when a certificate has a problem. The NotProvisionedException reference defines the failure to handle.
Record the app version, device, DRM plugin, failing API call and exception. A first install or previous successful playback does not establish whether provisioning is needed in the current state.
Follow the platform's request and response
MediaDrm produces a ProvisionRequest with request data and a default URL. The app sends the request through its configured callback and provides the response to MediaDrm. Inspect the callback for URL selection, wrapping, headers and response extraction. See the ProvisionRequest interface.
Record each transformation around the opaque request data. Keep provisioning traffic separate from the app's entitlement checks and content-license calls, even when the same network client carries them.
Handle the current device state
Follow the player's recovery path after provisioning completes, including retry limits and the call it resumes. Provisioning is not a universal one-time startup event. Check later sessions and the actual error path instead of assuming an earlier successful exchange removes this step forever.
Compare the same content and account on the test device before tracing a client failure. Record whether failure occurs in session setup, provisioning transport, response processing or the later license request. Check account permission separately.
Rebuild the playback integration
A working integration coordinates entitlement, manifests, platform DRM requests and the app's authentication or signing. The delivered client keeps required platform components connected to those calls, with setup instructions and tests for the complete workflow.
The MediaDrm API defines session, provisioning and key-response methods. Continue with the session lifecycle guide and Android DRM integration service.
Reviewed 19 October 2026 · SReverse research desk