# JPM and Android devices

**URL:** <https://discourse.mozilla.org/t/jpm-and-android-devices/7454>\
**Category:** Development\
**Created:** [March 6, 2016, 1:44pm UTC](https://discourse.mozilla.org/t/jpm-and-android-devices/7454 "2016-03-06T13:44:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hawk\_lord](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hawk\_lord](https://discourse.mozilla.org/u/hawk_lord)\
**Post date:** [March 6, 2016, 1:44pm UTC](https://discourse.mozilla.org/t/jpm-and-android-devices/7454/1 "2016-03-06T13:44:08Z")

</div>

Hello.

My add-on was rejected since it was built with CFX and not JPM. However, jpm-mobile 0.0.6 always fails when I try to use it, no matter what options I use.  
`jpm-mobile run /usr/local/lib/node_modules/jpm-mobile/bin/jpm-mobile:50 if (cmd.isEmptyCommand(program)) { ^ ReferenceError: cmd is not defined at Object.<anonymous> (/usr/local/lib/node_modules/jpm-mobile/bin/jpm-mobile:50:5) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Function.Module.runMain (module.js:447:10) at startup (node.js:141:18) at node.js:933:3`

So what I have to do is to test the add-on with CFX like this:  
`cfx run --app=fennec-on-device --binary=/Users/per/Library/Android/sdk/platform-tools/adb --force-mobile`  
And then repackage it like this and submit to AMO (no special options for Android?):  
`jpm xpi`

Since it is already listed I can’t have the XPI signed and test the XPI on my device before submitting it, right?

Have I understood the process correctly?

---

<div class="post-metadata">

**Author:** ![hawk\_lord](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hawk\_lord](https://discourse.mozilla.org/u/hawk_lord)\
**Post date:** [March 8, 2016, 8:08pm UTC](https://discourse.mozilla.org/t/jpm-and-android-devices/7454/2 "2016-03-08T20:08:39Z")

</div>

Turned out that it is possible to run jpm-mobile with three fixes in its source code.  
However, Firefox refuses to install the XPI since it can’t be verified…

---

<div class="post-metadata">

**Author:** ![jorgev](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jorgev](https://discourse.mozilla.org/u/jorgev)\
**Post date:** [March 9, 2016, 11:37pm UTC](https://discourse.mozilla.org/t/jpm-and-android-devices/7454/3 "2016-03-09T23:37:13Z")

</div>

You can flip the preference to disable signing enforcement. See [Extension Signing](https://wiki.mozilla.org/Add-ons/Extension_Signing).

---

<div class="post-metadata">

**Author:** ![hawk\_lord](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hawk\_lord](https://discourse.mozilla.org/u/hawk_lord)\
**Post date:** [March 10, 2016, 5:01pm UTC](https://discourse.mozilla.org/t/jpm-and-android-devices/7454/4 "2016-03-10T17:01:30Z")

</div>

Thanks.  
Anyway, I could install with jpm-mobile by adding “fennec” to “engines” in package.json.
