Running Firefox Add-on on Android using jpm-mobile

anton.mo

I am trying to run simple Firefox Add-on (works well on PC) on Android tablet. I have performed all actions described here to set up environment and trying to run

jpm-mobile run --adb "C:\Program Files\Android\android-sdk\platform-tools\adb.exe"

The output is

Running Firefox instance ...
Starting Firefox with /mnt/sdcard/jetpack-profile
--------- beginning of /dev/log/main
Starting: Intent { act=android.activity.MAIN cmp=/mnt/sdcard/jetpack-profile (has extras) }
Error type 3
Error: Activity class {/mnt/sdcard/jetpack-profile} does not exist.

As I understand the cmp= should be org.mozilla.fennec/.App Trying to fix this I found this code in ...\AppData\Roaming\npm\node_modules\jpm-mobile\lib

function amStart(options) {

console.log("Starting Firefox with " + options.profile);

var p = cp.spawn(options.adb, [
          "shell",
          "am start",
          "-a",
          "android.activity.MAIN",
          "-n",
          options.intent + "/.App",
          "--es",
          "args",
          "-profile " + options.profile
      ], makeOptions(options));

When this lines are removed

      "--es",
      "args",
      "-profile " + options.profile

Firefox Nightly is started but my add-on is not installed.

I also tried to run this

am start -a android.activity.MAIN -n org.mozilla.fennec/.App --es args -profile /mnt/sdcard/jetpack-profile

from adb shell. As the result Firefox is started but add-on is not installed.

The tablet's Android version is 4.2.1

What should I do to get my add-on installed?

anton.mo

This string

"-profile " + options.profile

in C:\Users\UserName\AppData\Roaming\npm\node_modules\jpm-mobile\lib\adb.js on line 74 should be changed to this

"'-profile " + options.profile + "'"

From am command manual:

<INTENT> specifications include these flags and arguments:
    ...
    [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]

As I understand -profile /mnt/sdcard/jetpack-profile is not recognized as <EXTRA_STRING_VALUE> because of space character.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Firefox Add-on does not install when running jpm with --profile argument set

From Dev

How to run Firefox extension using Firefox Developer Edition and jpm?

From Dev

Bootstrapped extension with new jpm Firefox

From Dev

Do I have to use `jpm run` every time I change the Firefox add-on I'm developing?

From Dev

jpm-mobile fails with ReferenceError: cmd is not defined

From Dev

Android Service is not running in ASUS Mobile

From Dev

How do I use `jpm` with webextension in Firefox?

From Dev

Default Firefox path for jpm doesn't work

From Dev

jpm run does NOT work with Firefox 48, or later

From Dev

Can jpm create a plugin for for Firefox 37.0 or older?

From Dev

Default Firefox path for jpm doesn't work

From Dev

Running JavaScript on current page once loaded from a Firefox for Android add-on

From Dev

Firefox add-ons: 1) Linking Python script to add-on main code | 2) win32 api in JPM / NPM | 3) set file attributes in Windows with OS.file

From Dev

Running first android application on mobile device

From Dev

Running Meteor mobile app on physical Android device

From Dev

Error running application in mobile first android simulator

From Dev

Cast Sender running on Android Chrome or Firefox

From Dev

Cast Sender running on Android Chrome or Firefox

From Dev

firefox jpm - emit to tab from outside the tab-call

From Dev

Running protractor using firefox 44 error

From Dev

Running firefox with extension enabled using selenium

From Dev

Mobile Application Development using Android

From Dev

Mobile Application Development using Android

From Dev

JQuery Mobile add <div> using .append

From Dev

jQuery mobile not scrolling on chrome but scrolling on firefox (android and vice versa on desktop)

From Dev

Accessing the DOM in a Firefox for Android add-on

From Dev

Accessing the DOM from a Firefox for Android add-on

From Dev

Firefox Android add-on does not allow Button?

From Dev

firefox sdk add-on using angularJs routing

Related Related

  1. 1

    Firefox Add-on does not install when running jpm with --profile argument set

  2. 2

    How to run Firefox extension using Firefox Developer Edition and jpm?

  3. 3

    Bootstrapped extension with new jpm Firefox

  4. 4

    Do I have to use `jpm run` every time I change the Firefox add-on I'm developing?

  5. 5

    jpm-mobile fails with ReferenceError: cmd is not defined

  6. 6

    Android Service is not running in ASUS Mobile

  7. 7

    How do I use `jpm` with webextension in Firefox?

  8. 8

    Default Firefox path for jpm doesn't work

  9. 9

    jpm run does NOT work with Firefox 48, or later

  10. 10

    Can jpm create a plugin for for Firefox 37.0 or older?

  11. 11

    Default Firefox path for jpm doesn't work

  12. 12

    Running JavaScript on current page once loaded from a Firefox for Android add-on

  13. 13

    Firefox add-ons: 1) Linking Python script to add-on main code | 2) win32 api in JPM / NPM | 3) set file attributes in Windows with OS.file

  14. 14

    Running first android application on mobile device

  15. 15

    Running Meteor mobile app on physical Android device

  16. 16

    Error running application in mobile first android simulator

  17. 17

    Cast Sender running on Android Chrome or Firefox

  18. 18

    Cast Sender running on Android Chrome or Firefox

  19. 19

    firefox jpm - emit to tab from outside the tab-call

  20. 20

    Running protractor using firefox 44 error

  21. 21

    Running firefox with extension enabled using selenium

  22. 22

    Mobile Application Development using Android

  23. 23

    Mobile Application Development using Android

  24. 24

    JQuery Mobile add <div> using .append

  25. 25

    jQuery mobile not scrolling on chrome but scrolling on firefox (android and vice versa on desktop)

  26. 26

    Accessing the DOM in a Firefox for Android add-on

  27. 27

    Accessing the DOM from a Firefox for Android add-on

  28. 28

    Firefox Android add-on does not allow Button?

  29. 29

    firefox sdk add-on using angularJs routing

HotTag

Archive