Fix expected system links when there are extended public libraries on
the device.

This fix accounts for this code path:
https://cs.android.com/android/platform/superproject/+/master:art/libnativeloader/library_namespaces.cpp;l=278;drc=cab0d313ba4c938e2f19cd9d1daf361dc5a99dca
It only fails on devices that specify libraries in
public.libraries-<companyname>.txt files.

Test: On an ordinary device that doesn't already have such a file:
  adb root && adb remount && adb reboot && \
    adb wait-for-device && adb remount
  adb shell \
    "echo libx.google.so > system_ext/etc/public.libraries-google.txt"
  atest libnativeloader_test
  adb shell rm system_ext/etc/public.libraries-google.txt
  atest libnativeloader_test
Bug: 225768865
Change-Id: Ifb0a9cc5f044107a4baf2136a11feff6c34cd596
1 file changed