Issue: For certain installation errors, it is possible for WA to
incorrectly report that an APK was reinstalled while it actually
wasn't, leading to bugs later on in the run.
Fix:
Add the '-r' flag to adb install when reinstalling, to make sure
APK is replaced.
Add '-g' flag for API 23 and higher, to grant all permissions that
would otherwise be requested at runtime (similar to pre-API 23)
Check APK version and ABI when installing
Check the APK's versionName property against the workload's
expected version if specified
If workload specifies check_abi param, try to get APK from
ABI-specific path on the host
Add variant_name param to APK resource-getter for backwards
compatibility of dex2oat and peacekeeper
Properly replace APK during adb install
Issue: For certain installation errors, it is possible for WA to incorrectly report that an APK was reinstalled while it actually wasn't, leading to bugs later on in the run.
Fix:
Check APK version and ABI when installing