How to install my .xpi on firefox android

前端 未结 5 1121
自闭症患者
自闭症患者 2021-02-14 10:53

I work on a firefox addon using JPM.

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

5条回答
  •  长情又很酷
    2021-02-14 11:39

    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.

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

    install.html:

    
    ABP
    FVD
    
    
    

    Then, you can either:

    1. Enter the path to this install file directly in Firefox, e.g. file:///storage/sdcard0/MyXPIFiles/install.html
    2. Or, navigate to the file in your File Manager and open it in Firefox when prompted.

    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.

    EDIT: 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.

提交回复
热议问题