diff options
author | Greg Kaiser <gkaiser@google.com> | 2016-08-18 15:55:10 -0700 |
---|---|---|
committer | Greg Kaiser <gkaiser@google.com> | 2016-08-19 09:13:52 -0700 |
commit | 0d052c95088190b37011f045a8443aaea28cd23b (patch) | |
tree | ba7790b18e793d35d08eaf5bf38b81f136f47d0b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 4ecc9d2db400225b6f5e0d76d17b8f94354996a6 (diff) |
ContextHubService: Update caches on nanoapp unload
When we unloaded a nanoapp, we weren't updating the cache of
nanoapp information at the ContextHubServer java layer. Also,
we were leaking the handle.
We fix both of these by invoking the shared delete_app_instance()
function which properly handles all of this.
Furthermore, we allow delete_app_instance() to accept a nullptr
for the JNIEnv, and fix invalidateNanoApps() so that it won't
crash if it's unable to connect to the JVM.
Note that our Java communication in general here should be
cleaned up, but we're too late in the release cycle for
that, and leave that for b/30961119.
Bug: 30951974, 30968860
Change-Id: Ibb07666a8d54618bddaa3eaf36f9578926eb2b0f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions