Do not allow adding custom Parcelable in Bundles
This CL prevents the API users from passing any Bundles with custom Parcelable to following APIs: - MediaSession2.Builder#setExtras() - MediaController2.Builder#setConnectionHints() - MediaSession constructor Bug: 135572812 Test: Passed followings tests atest CtsMediaTestCases:android.media.cts.MediaSessionTest; atest CtsMediaTestCases:android.media.cts.MediaControllerTest; atest CtsMediaTestCases:android.media.cts.MediaBrowserTest; atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest; atest CtsMediaTestCases:android.media.cts.MediaSession2Test; atest CtsMediaTestCases:android.media.cts.MediaController2Test; atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest; Change-Id: I703c9fc0b180fb7bb3bf9bbec677f01a2a128c7a
Loading
Please register or sign in to comment