Don't initialize ProcessState unless we need to.
Initializing ProcessState opens the binder driver; there are cases where we want to be able to create simple Parcel objects (Parcels without binder objects or file descriptors) without initializing the binder driver -- eg the isolated app zygote, which will receive a serialized ApplicationInfo Parcel over a socket, and can't open the binder driver. Delay opening ProcessState until we actually need it. Bug: 111434506 Test: builds, ProcessState not opened for "data" Parcels. Change-Id: I25e2b40c253e5cf3eb8701f76715985d37012947
Loading
Please register or sign in to comment