Add a utility class to install APK files
Previously we were using TradeFed test app installer preparer to install apks, which has a few drawbacks:
1) When the test module is being retried, the setup method is invoked on the same preparer object repeatedly, which is error-prone
2) Hard to set timeout
3) Does not grant app permissions under some circumstances
4) The installation part is separated from the test script which adds complexity to configuration.
5) Similar to 3), the test script has no access to the apks being installed.
This CL adds a utility to solve these issues.
Test: atest csuite-harness-tests
Change-Id: Idb4e593b5ff999048b2950f57e4de0a23a612c33
3 files changed