Add Binder support for Parcelable exceptions.
If an Exception thrown by a Binder call implements the Parcelable interface, then parcel it and rethrow back at the caller. There is strict requirement that these Parcelable exceptions must be defined by the system (as determined by checking the ClassLoader). We prefix the Parcelable contents with a length so that native code can skip over the blobs. Define a new ParcelableException class that can be used to transport exceptions that cannot be modified to add Parcelable behavior, and switch ExceptionUtils to use this new class for sending IOExceptions. Test: builds, boots, wrapped exceptions work Bug: 33749182 Change-Id: I1352ea1566ddf01120d9d0e819ba6f70fc407e11
Loading
Please register or sign in to comment