Fix test failures on sargo.

https://r.android.com/2962585 added new tests, but some of them fail on
S on sargo since the product partition comes from R and doesn't have
its own linker namespace.

Also switch version checks to use com.android.modules.utils.build.SdkLevel
to correctly handle pre-release codenames.

Test: libnativeloader_e2e_tests on AOSP with temporary code to verify
      that TestUtils.productAppsAreShared() returns false
Test: libnativeloader_e2e_tests on sargo in heavy presubmit
Test: libnativeloader_e2e_tests on Cuttlefish S image in heavy presubmit
Bug: 325619263
Bug: 237577392
Change-Id: I7cc7d0a6288b10b5f70c6c674f88287b2489be75
4 files changed