Closed Bug 610785 Opened 15 years ago Closed 15 years ago

Can't open downloaded .apk file

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(fennec2.0+)

VERIFIED FIXED
Tracking Status
fennec 2.0+ ---

People

(Reporter: madhava, Assigned: mbrubeck)

References

Details

Attachments

(1 file, 1 obsolete file)

steps: - download a .apk file from the web - download completes, shows up in download manager - I press "open" - nothing happens the apk should open and offer to install the app
What .apk file are you downloading where this happens, Madhava?
Brad - can you see if something is not working in the platform?
(In reply to comment #1) > What .apk file are you downloading where this happens, Madhava? It was fennec, but I don't remember where from now -- possibly a custom build to look at some feature under development.
Yeah, I see this when doing the following 1. Go to people.mozilla.com/~blassey/builds 2. Long tap on the "fennec.apk" link and click on Save link" 3. After the download is finished, go to the download manager Actual Results: The "open" button is disabled Expected Results: The "open" button is enabled
Assignee: nobody → mbrubeck
tracking-fennec: --- → ?
Hardware: x86 → All
tracking-fennec: ? → 2.0+
Attached patch patch (obsolete) — Splinter Review
We disable the "Open" button when we can't find a MIME type using getTypeFromFile. This patch fixes this by adding ".apk" to the list of recognized file extensions. (Currently, we do auto-open the file if the server sends the correct MIME type, although the "Open" button is still disabled if you return the download manager later.)
Attachment #494524 - Flags: review?(benjamin)
Comment on attachment 494524 [details] [diff] [review] patch I don't own this code, thank goodness.
Attachment #494524 - Flags: review?(benjamin) → review?(bzbarsky)
Comment on attachment 494524 [details] [diff] [review] patch Yeah, this seems fine.
Attachment #494524 - Flags: review?(bzbarsky) → review+
Attachment #494524 - Attachment is obsolete: true
Attachment #494839 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
verified FIXED on build: Mozilla/5.0 (Android; Linux armv71; rv:2.0b8pre) Gecko/20101203 Namoroka/4.0b8pre Fennec/4.0b3pre
Status: RESOLVED → VERIFIED
Flags: in-litmus?
litmus testcase https://litmus.mozilla.org/show_test.cgi?id=15021 created to regression test this bug.
Flags: in-litmus? → in-litmus+
I've the a similar problem with a HTC Desire Android 2.2 rooted with Leedroid and the final Fennec version I can't open downloaded PDF files - the [Open] button is grayed out (e.g. with the Save as PDF function).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: