OSDN Git Service

ContextHubService: Hack in Google vendor value
authorGreg Kaiser <gkaiser@google.com>
Fri, 26 Aug 2016 05:06:08 +0000 (22:06 -0700)
committerGreg Kaiser <gkaiser@google.com>
Fri, 26 Aug 2016 06:18:16 +0000 (23:18 -0700)
commit5817ce0c13c4d190845b0cc74a4232cc845c31e3
treeb626dbd4d3e293fe5346a1f7eca0a43410ab34f2
parentf8d61675ac755a5110193e796e35e2e2a364387c
ContextHubService: Hack in Google vendor value

To workaround b/30808791 without changing the NanoApp API,
we make the assumption that if the most significant byte
of our four-byte app ID is a lower-case 'L', then this
is a Google Nanoapp and thus we should use "Googl" for
our vendor ID, and set the most significant four bytes
of our eight byte app ID accordingly.

Bug: 30922112
Change-Id: I155dff58cdda1ef36a68e6d25df1e9059b1252f1
core/java/android/hardware/location/ContextHubService.java