Remove TREBLE_TESTING_OVERRIDE.

We can't safely read this environmental variable with getenv because
some clients may use getService in a multi-threaded environment in
conjunction with other calls to setenv/etc.. which cause UB/crashes.

android::hardware::details::setTrebleTestingOverride should be used
instead.

Fixes: 156668058
Test: HIDL's ./test/run_all_device_tests.sh and others where
  TREBLE_TESTING_OVERRIDE has been switched to setTrebleTestingOverride
Change-Id: I51130f6441b0fbd495fbefd12b3e2d37ff514238
1 file changed