Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk file mimetype is not detected properly #19

Closed
boredval opened this issue Sep 12, 2023 · 4 comments
Closed

apk file mimetype is not detected properly #19

boredval opened this issue Sep 12, 2023 · 4 comments

Comments

@boredval
Copy link

As title says apk is treated as zip ,even tho apk has it own mime type.

@melloware
Copy link
Contributor

Hopefully relate to just updating the new defintions: #18

@adamhooper
Copy link
Member

So annoying! Please follow the instructions at https://github.com/overview/mime-types/blob/main/DEVELOP.md -- ping the shared-mime-info folks.

Alternatively, you can generate a mime.cache file. Edit extra-mime-info.xml and then run rebuild-mime-cache.sh. Unfortunately, the mime.cache is presently built in to this package's .jar file. I'd love to see a patch that adds support for user-supplied mime.cache files. I've outlined what the patch should look like in #5.

Closing this issue: DEVELOP.md describes one path to getting the mime type detected, and #5 shows another. I've learned my lesson already: I won't override the XDG shared-mime-info database in this repo.

@melloware
Copy link
Contributor

@adamhooper that is a good idea. I might put it on my list to try a PR if I can carve out time but no promises. Thanks for all your effort on this project!

@adamhooper
Copy link
Member

I just tested here ... any file with a name like x.apk (i.e., ending in .apk) will be detected as "application/vnd.android.package-archive". This has probably been the case for the entire lifetime of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants