install.py continues if adb uninstall fails
authorKalle Raita <kraita@google.com>
Fri, 16 Dec 2016 17:45:41 +0000 (09:45 -0800)
committerKalle Raita <kraita@google.com>
Thu, 29 Dec 2016 22:19:18 +0000 (22:19 +0000)
commita8253801a60532d892e7c320b37e09960b87c609
tree7fcefdd43f9b6b4cab0e765c394d83772a99887d
parent736369667b87fd1b861c76abba375b5f1898c7f5
install.py continues if adb uninstall fails

ADB uninstall fails with non-zero return code if the package to be
uninstalled does not exist. To allow the installation proceed when
there's no previous package, the non-zero return value should be ignored
for the uninstall step.

There are historical reasons for not relying on -r -d for
install (replace, allow downgrade), which I can't recall right now.

Test: Installed succesfully on device without deqp package.
Bug: 33961937
Change-Id: I401f3861f8d68f352747c041bd60cd372b48134b
android/scripts/common.py
android/scripts/install.py