xref: /aosp_15_r20/frameworks/av/drm/README.md (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1*ec779b8eSAndroid Build Coastguard Worker## AIDL error handling
2*ec779b8eSAndroid Build Coastguard Worker
3*ec779b8eSAndroid Build Coastguard WorkerStarting in **Android U (14)**, `libmediadrm` (app-side) understands extra error
4*ec779b8eSAndroid Build Coastguard Workerdetails from **AIDL** DRM HALs passed through the binder exception message
5*ec779b8eSAndroid Build Coastguard Workeras a json string. The supported fields are:
6*ec779b8eSAndroid Build Coastguard Worker* `cdmError` (*int*)
7*ec779b8eSAndroid Build Coastguard Worker* `oemError` (*int*)
8*ec779b8eSAndroid Build Coastguard Worker* `context` (*int*)
9*ec779b8eSAndroid Build Coastguard Worker* `errorMessage` (*str*)
10*ec779b8eSAndroid Build Coastguard Worker
11*ec779b8eSAndroid Build Coastguard WorkerThe errors details will be reported to apps through the java interface
12*ec779b8eSAndroid Build Coastguard Worker`android.media.MediaDrmThrowable`. Please see the javadoc of `MediaDrmThrowable`
13*ec779b8eSAndroid Build Coastguard Workerfor detailed definitions of each field above.
14