45d02c545cc40b4193632ba0aec63d25b750eb26
Bug: b/133427576 Test: Unit tests on Taimen and Crosshatch Merge of http://go/wvgerrit/79804 Currently, the run_all_unit_tests.sh script fails to load in the Level 1 OEMCrypto for some devices that don't have a 64-bit liboemcrypto.so. This is because the liboemcrypto.so tries to load in libQSEEComAPI.so, which some devices contain both a 32-bit and 64-bit version of. Since we set the LD_LIBRARY_PATH to use /vendor/lib64 first, and since we only have a 32-bit liboemcrypto.so, the 32-bit liboemcrypto.so will try to load in the libQSEEComAPI.so in the lib64 path first. Since the liboemcrypto.so is 32-bit, it will fail to open the 64-bit library. The solution to this is to conditionally set the LD_LIBRARY_PATH based on if a 64-bit liboemcrypto.so exists or not. Change-Id: I80a9e778f31f089f66df0544cb022d810e9d3de3
Description
No description provided