OSDN Git Service

Adds handle to NanoAppInstanceInfo Parcel
authorArthur Ishiguro <arthuri@google.com>
Mon, 18 Sep 2017 19:07:44 +0000 (12:07 -0700)
committerArthur Ishiguro <arthuri@google.com>
Tue, 19 Sep 2017 17:52:12 +0000 (10:52 -0700)
commit9acb5402d0c25945a554c9f628f9df686bdde5a5
treed154965219a4a20aee1d0ff4ea968d0982bbac1e
parent4f65a3571345f38c199dcd50ab5369e070877c96
Adds handle to NanoAppInstanceInfo Parcel

- Since mHandle (UID) was not recorded in writeToParcel, it always
returned 0 as the UID. This resulted in error messages claiming
mismatches between the reported and actual UID of nanoapps when called
from an external process.
- Also fixes the Parcel constructor to actually read the mContexthubId
field.

Bug: 37785458
Test: Compile and load, verify error message doesn't appear
Change-Id: I2ff75f510aae549c741786f5746862256ea5a877
core/java/android/hardware/location/NanoAppInstanceInfo.java