libhardware loads a module from APEX

libhardware loading a module from /vendor/lib/hw is dangerous when it's
used by APEX because libhardware modules don't provide ABI stability.

Now, libhardware, when it's used in APEX, loads a module from the same
APEX, not crossing the APEX/system boundary.

Bug: 300564486
Test: consumerir HAL APEX loading consumerir.default from the same APEX
Test: ConsumerIrTest VtsHalIrTargetTest
Change-Id: I086eec8d1726b9f0c42a7b1a26dfcc93f394106e
2 files changed