Handling apk files on Windows

User Help for Mozilla Firefox
Post Reply
popej
Posts: 2
Joined: September 13th, 2022, 2:35 am

Handling apk files on Windows

Post by popej »

Hi,

quite often I'd like to download apk file for Android on my Windows PC. I can right click on link and select save action, but I have no control on what happens when I directly click at link. I have set default action in settings as "ask", but Firefox always wants to execute apk. There is no apk extension on list in settings and I can't directly define behavior for apk.

Is it apk somehow hardcoded in Firefox, maybe for Android on Windows 11? But I'm on Windows 10, I would prefer apk to behave as any other file. My temporary solution is to set 7-zip file manager as application to execute apk, so I can move file to right place after "executing" it by Firefox. But I don't like this kludge.
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: Handling apk files on Windows

Post by dickvl »

See:
https://searchfox.org/mozilla-release/s ... tation.cpp

You can also check handlers.json in the Firefox profile folder.
popej
Posts: 2
Joined: September 13th, 2022, 2:35 am

Re: Handling apk files on Windows

Post by popej »

This suggest that apk gets some special handling, but I don't know what exactly it is.
dickvl wrote:You can also check handlers.json in the Firefox profile folder.
I can find apk there too:

Code: Select all

"application/force-download":{"action":4,"extensions":["pdf","rar","jpg","apk"],"handlers":[{"name":"i_view64.exe","path":"C:\\Program Files\\IrfanView\\i_view64.exe"}]}
Once again, I don't know what it means, but apk is not handled like other file types enumerated in this part of handlers.json. I have "pdf","rar" and "jpg" listed in settings, and Firefox does what I have set there. No "apk" in settings.
Post Reply