OSDN Git Service

ContextHubService: Don't change app handle on load
authorGreg Kaiser <gkaiser@google.com>
Wed, 7 Sep 2016 05:55:53 +0000 (22:55 -0700)
committerGreg Kaiser <gkaiser@google.com>
Wed, 7 Sep 2016 17:01:43 +0000 (10:01 -0700)
commitb0604ecc914ade4ac9bf0ab7bcbb3b8d43de297e
tree34477f428346b07b38c128e5ee7faec95c50874a
parent57e29b4b9e576dd60b7b5fe166186105cb003a9d
ContextHubService: Don't change app handle on load

Due to the way this logic was set up, every time we would load
a new nanoapp, add_app_instance() would change the nanoapp's
handle/"id" in manner that was invisible to closeTxnLoad(),
so our JNI cache would use a different handle than what we
passed to the Java callback.

We remove this unnecessary changing of the handle/"id".

Bug:31325144
Change-Id: I8678729f38fb804bc6a128ce9722fd35551fa1c1
core/jni/android_hardware_location_ContextHubService.cpp