Closed Bug 852246 Opened 12 years ago Closed 12 years ago

INSTALL_FAILED_VERSION_DOWNGRADE when installing same version of app via agent on Android 4.2

Categories

(Testing Graveyard :: SUTAgent, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla22

People

(Reporter: wlach, Assigned: wlach)

Details

Attachments

(1 file)

Google "helpfully" added a "feature" in Android 4.2, which disallows installing an app which is not of a greater version than the one currently installed. In many/most testing scenarios that we care about, this will not be the case. It turns out that we can disable this new behaviour by passing another argument to pm: http://stackoverflow.com/a/13772620/295132 Let's do that.
Comment on attachment 726280 [details] [diff] [review] Allow installing over an app with >= version in Android 4.2 via the agent Review of attachment 726280 [details] [diff] [review]: ----------------------------------------------------------------- nice!
Attachment #726280 - Flags: review?(jmaher) → review+
(In reply to Ryan VanderMeulen [:RyanVM] from comment #4) > Backed out for build bustage. > https://hg.mozilla.org/integration/mozilla-inbound/rev/7c8f36acc3a3 The current patch doesn't work because it depends on a symbol that's only available in the newest SDK (Android 4.2). Going to need a new plan for detecting 4.2 until we upgrade that...
Let's try that again: https://hg.mozilla.org/integration/mozilla-inbound/rev/6cae06155037 (using a number instead of a symbol per the suggestion of :mbrubeck and :gbrown on irc... works for me locally)
Try run for abe0f1cf5866 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=abe0f1cf5866 Results (out of 1 total builds): failure: 1 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/wlachance@mozilla.com-abe0f1cf5866
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: