tree: 10f1e73c07c63bf1a70f96e2d852d8110f969788 [path history] [tgz]
  1. common/
  2. drmserver/
  3. libdrmframework/
  4. libmediadrm/
  5. libmediadrmrkp/
  6. mediacas/
  7. mediadrm/
  8. OWNERS
  9. README.md
  10. TEST_MAPPING
drm/README.md

AIDL error handling

Starting in Android U (14), libmediadrm (app-side) understands extra error details from AIDL DRM HALs passed through the binder exception message as a json string. The supported fields are:

  • cdmError (int)
  • oemError (int)
  • context (int)
  • errorMessage (str)

The errors details will be reported to apps through the java interface android.media.MediaDrmThrowable. Please see the javadoc of MediaDrmThrowable for detailed definitions of each field above.