Skip to content
Commit 11b41c54 authored by Conrad Chen's avatar Conrad Chen
Browse files

Media API: Using context's classloader in MediaBrowser

When subscribing media updates, we allow users to pass options as
Bundles, in which users may put non-framework-defined parcelables,
which would cause ClassNotFoundException when media browser tries
to compare options to select the specified callback.

Sets any passed options' classloader as context's classloader to
solve the problem.

Test: manually checks if crashed APPs can survive after the fix
Bug: 62648808
Change-Id: I670c8da4ebc7845487db3a0d22c9d2baf727056f
parent a54c89ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment