Files
android_frameworks_av/drm/README.md
Robert Shih 430938bb85 libmediadrm error reporting doc (U)
Bug: 249941041
Change-Id: I22d6edc91cf98e7c8bc4fb00f115f09d57618e13
Test: TH
2023-01-23 15:14:36 +00:00

510 B

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.