Closed Bug 967748 Opened 10 years ago Closed 10 years ago

reinstalling packaged app causes it to get uninstalled

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 30

People

(Reporter: myk, Assigned: myk)

References

Details

When I reinstall the packaged app Cut The Rope, it disappears from about:apps.  Logs show an error:

> …
> GeckoConsole  E  [JavaScript Error: "Error installing packaged app from: http://dl.dropboxusercontent.com: REINSTALL_FORBIDDEN" {file: "resource://gre/modules/Webapps.jsm" line: 1966}]
> GeckoConsole  E  * * WebappManager.jsm: attempting to uninstall CutTheRope
> Gecko  I  -*- Webapps.jsm : uninstall https://marketplace.firefox.com/app/a22e0277-35bc-434d-9371-1568c75fc726/manifest.webapp
> Gecko  I  -*- Webapps.jsm : cancelDownload https://marketplace.firefox.com/app/a22e0277-35bc-434d-9371-1568c75fc726/manifest.webapp
> Gecko  I  -*- Webapps.jsm : Could not find a download for https://marketplace.firefox.com/app/a22e0277-35bc-434d-9371-1568c75fc726/manifest.webapp
> …
> Gecko  I  -*- Webapps.jsm : Saving /data/data/org.mozilla.fennec_myk/files/mozilla/webapps/webapps.json
> GeckoConsole  E  * * WebappManager.jsm: success uninstalling CutTheRope

So it looks like AutoInstall tries to reinstall the app, which fails because the app is already installed, and somehow that triggers an uninstall.

It's possible this will be fixed by bug 934760, which implements an update flow when an APK is updated, as in this case.
Bug 934760 did indeed fix this problem!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → myk
Target Milestone: --- → Firefox 30
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.