commit | 44ea70184a88b768bce8285e493bceb3c3863aca | [log] [tgz] |
---|---|---|
author | Zach Johnson <zachoverflow@google.com> | Tue Nov 05 17:24:00 2019 -0800 |
committer | Zach Johnson <zachoverflow@google.com> | Tue Nov 05 19:16:15 2019 -0800 |
tree | 87f95e2e18e41cb22953d7666c59676f49827994 | |
parent | 0a870493d8b38c8d8ca15196345759b2d34eff24 [diff] |
Remove need to call into android_runtime Save the VM ahead of time, and use that instead of fetching from AndroidRuntime. Check the underlying pthreads to verify we're on the correct thread to make callbacks. This will ensure we can use the ndk version of libnativehelper instead. Bug: 143971120 Test: compile, boot, and check things that invoke callbacks (like discovery) still work Change-Id: I37b249e40fa7da50b32ecf5dea9974b22a04fd47