android: set native libary dir based on current architecture

Set the native library search path to first search a directory named
for the current ABI, adjacent to the chrome package nativeLibraryDir,
which will be the 32-bit ABI directory. The package's nativeLibraryDir
is moved to the end of the path list because if a wrong bitness library
is found first, the loader won't continue the search.

Bug: crashpad:276
Change-Id: I5f0c13112b7423576f9e353cb3afef4e919e586c
Reviewed-on: https://chromium-review.googlesource.com/c/1449005
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628186}
1 file changed