Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 573e9490 authored by Robert Shih's avatar Robert Shih Committed by Automerger Merge Worker
Browse files

Merge "libmediadrm error reporting doc (U)" am: aca826f7

parents e43420fc aca826f7
Loading
Loading
Loading
Loading

drm/README.md

0 → 100644
+13 −0
Original line number Diff line number Diff line
## 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.