We want to be able to upgrade our apk on our Android device when we start appium.
Doing this manually, I would use "adb install -r ". I notice Lookout uses adb pm install -r . There appears to be some behavior differences for these two commands – notice this output:
wosser$ adb shell pm install -r ~/builds/my.apk
pkg: /Users/wosser/builds/my.apk
Failure [INSTALL_FAILED_INVALID_URI]
wosser$ adb install -r !$
adb install -r ~/builds/my.apk
2917 KB/s (8173856 bytes in 2.736s)
pkg: /data/local/tmp/my.apk
Success
I’ve seen some oddness in the past with Android, for example, “adb logcat” and “adb shell logcat” do not behave the same on all devices. I wonder if anyone knows anything about this behavior for Android. I also wonder if there is any reason “shell pm install -r” was chosen instead of “install -r”.