Fix BundleUtils finding the wrong native lib
In some cases, a library with the name we want will be present in a system directory such as /system/product/lib. The isolated split class loader will then "find" the lib there and return it. To get around this, first we check for libs with the base class loader, then fallback to ContextUtils.getApplicationContext() class loader if it's not found. Bug: 1126301 Change-Id: I551b6a59c75711bdf6cccae0dde8d7c658eff0db Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521293 Commit-Queue: Clark DuVall <cduvall@chromium.org> Reviewed-by:Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#824573}
Showing
Please register or sign in to comment