if installing a remote apk fails, uninstall/rm and retry (fix #2188)
Merge pull request #2269 from jlipps/master

if installing a remote apk fails, uninstall/rm and retry (fix #2188)