Pass TestInformation directly to DeviceContext and fix setenforce
problem.
TestInformation can be retrieved with getTestInformation in individual
tests.
Also remove a leftover setenforce call that was missed in
https://r.android.com/2239933. This uncovered a problem where
remountSystemWritable() could reboot the device back to enforcing state
after DisableSELinuxTargetPreparer, so move the remount too to a
preparer.
Test: atest libnativeloader_e2e_tests
Bug: 137356719
Change-Id: I2ac05e162230717fb1d2f75efaf9e22f2c23f863
2 files changed