Cannot install an add-on a from local file on Android < 10
Categories
(Fenix :: WebExtensions, defect)
Tracking
(firefox120 disabled, firefox121 disabled, firefox122 verified)
People
(Reporter: mlobontiuroman, Assigned: amejia)
References
Details
(Whiteboard: [addons-jira])
Attachments
(2 files)
Prerequisites
Have an .xpi file add-on downloaded (i.e. uBlock origin)
Steps to reproduce
- Go to Settings --> About Firefox.
- Tap 10 times on the Fenix logo.
- Go back to Settings - Advanced - "Install add-on from file"
- Select an .XPI file for your downloads.
Expected behavior
The add-on is successfully installed and enabled.
Actual behavior
The file cannot be selected - please see the attached video.
Device information
- Firefox version: 122.0a1 from 12/7
- Android devices:
** Samsung Galaxy Note 8 (Android 9),
** Sony Xperia Z5 Premium (Android 7.1.1),
** Lenovo tab M10 (Android 10)
Any additional information?
- NOT reproducible on Oppo Find X5 Lite (Android 11), Oppo Find N2 Flip (Android 13), Samsung Galaxy Tab S8 Ultra (Android 12)
Comment 1•7 months ago
|
||
Arturo, could you please take a look? Thanks!
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Comment 3•6 months ago
|
||
:miralobontiu, could you please try with a recent Fenix build and an XPI file renamed to .zip
(instead of .xpi
) please? I am mainly interested in knowing whether the file picker would allow ZIP files to be selected. Thanks!
My current theory is that old-ish Android versions don't support the mime type for XPI files.
Reporter | ||
Comment 4•6 months ago
|
||
Hi William!
I renamed the .xpi files to .zip files, and now I can install the addon on the devices mentioned above (Samsung Galaxy Note 8 (Android 9), Lenovo tab M10 (Android 10)) on the latest Fenix Nightly 122.0a1 from 12/12.
If the files have the .xpi extension, then the add-on cannot be selected, the issue is still reproducible.
Comment 5•6 months ago
•
|
||
OK so I strongly suspect a lack of mime type support in Android < 10.
@Arturo and @Luca, what do you think about disabling the "install from file" feature on Android < 10. It looks like Android 9 isn't supported at all according to https://en.wikipedia.org/wiki/Android_version_history
Comment 6•6 months ago
|
||
(In reply to William Durand [:willdurand] from comment #5)
OK so I strongly suspect a lack of mime type support in Android < 10.
@Arturo and @Luca, what do you think about disabling the "install from file" feature on Android < 10. It looks like Android 9 isn't supported at all according to https://en.wikipedia.org/wiki/Android_version_history
+1 on my side
Have we created a SUMO page (or plan to create one) to provide users guidance about this install flow?
If that is the case, it may be good to explicitly mention on which Android versions the local xpi install flow is expected to be supported.
Comment 7•6 months ago
|
||
Assignee | ||
Comment 8•6 months ago
|
||
Will as expected the issue is web extension mime type is not available on that versionS, instead of removing completely the functionality, maybe we could just remove the mime type validation when is not available. I guess this will be a more generic solution as, it could the case that other manufacture don't bundle that mime type . I added a patch with this possible a path.
Comment 9•6 months ago
|
||
Authored by https://github.com/Amejia481
https://github.com/mozilla-mobile/firefox-android/commit/83bb99c7cab5abd67aa16d3d410998f1956e6fd3
[main] Bug 1868940 - Cannot install an add-on a from local file on Android <10.
Reporter | ||
Comment 10•6 months ago
|
||
Verified on the Fenix Nightly 122.0a1 from 12/13 with Sony Xperia Z5 Premium (Android 7.1.1), and Samsung Galaxy Note 8 (Android 9).
Verified that the "Install add-on from file" option enabled via tapping on the logo 5 times, is not displayed on the devices with Android < 10.
Confirming that the option is still available and functionable on Android 10 or higher devices.
Updated•6 months ago
|
Assignee | ||
Comment 11•6 months ago
|
||
Thanks for verifying!
Description
•