如何在Firefox Android上安装我的.xpi [英] How to install my .xpi on firefox android

查看:243
本文介绍了如何在Firefox Android上安装我的.xpi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用JPM开发firefox插件.

I work on a firefox addon using JPM.

我想将其安装在我的android手机上,我已经运行"jpm xpi"并在我的sdcard上复制了xpi.当我在android firefox中浏览到file://path/to/my/xpi时,没有任何反应.如果我在服务器上上传xpi并浏览到url,也会出现同样的问题.

I want to install it on my android phone, i've run "jpm xpi" and copy xpi on my sdcard. When i browse to file://path/to/my/xpi in android firefox nothing happen. Same issue if i upload xpi on my server and browse to url.

我已经使用google play firefox测试了最新版本和nighty.

i've tested with google play firefox up to date version and nighty.

我的错误在哪里?

推荐答案

ES File Explorer和X-plore都不适合我(根据Trasd的评论).我看到了三个Firefox,但是没有一个触发安装XPI.

Neither ES File Explorer nor X-plore worked for me (as per Trasd's comment). I saw the three Firefox's, but none of them triggered to install the XPI.

对我来说,解决方案是在与 .xpi 文件相同的目录中创建安装程序HTML文件,如下所示.

The solution for me was creating an installer HTML file in the same directory as the .xpi files, like the following.

install.html :

<html><body>
<a href="adblockplus.xpi">ABP</a>
<a href="flashvideodownloader.xpi">FVD</a>
<!-- replace the above with the names of your add-ons in the same directory -->
</body></html>

然后,您可以:

  1. 直接在Firefox中输入此安装文件的路径,例如 file:///storage/sdcard0/MyXPIFiles/install.html
  2. 或者,在文件管理器中导航至该文件,并在出现提示时在Firefox中打开它.

在Firefox中,查看您创建的 install.html 文件,单击页面上的每个链接,您将看到提示,"Firefox阻止了该附件在您的设备上安装".只需单击允许",它便会安装.

In Firefox viewing the install.html file you created, click on each link on the page, and you should see a prompt, "Firefox prevented this add-on from installing on your device." Just click "Allow", and it should install.

编辑:很抱歉,我看到您说导航到URL对您不起作用.但是,如果没有人介意,我将把答案留在这里,因为它是唯一为我服务的人,也许还有其他人.

Apologies, I see you said that navigating to a URL did not work for you. But if no one minds, I'll leave my answer here, cause it's the only one that worked for me, and maybe others too.

这篇关于如何在Firefox Android上安装我的.xpi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆