# Test and debug extension on Android

**URL:** <https://discourse.mozilla.org/t/test-and-debug-extension-on-android/142489>\
**Category:** Development\
**Created:** [April 19, 2025, 3:17pm UTC](https://discourse.mozilla.org/t/test-and-debug-extension-on-android/142489 "2025-04-19T15:17:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b1n4ry](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/b1n4ry/32/72895_2.png) [@b1n4ry](https://discourse.mozilla.org/u/b1n4ry)\
**Post date:** [April 19, 2025, 3:17pm UTC](https://discourse.mozilla.org/t/test-and-debug-extension-on-android/142489/1 "2025-04-19T15:17:51Z")

</div>

Hello,

I used the usb connection to transfer my extension to my Android smartphone (for testing and debugging) and install it directly using the file installation method. However, at some point - I’m not exactly sure when - this method stopped working. Now, when I try to install the extension, I receive a message stating that the extension may be corrupted.

Interestingly, if I sign the extension and install it afterward, everything works fine.

I’m using the Nightly version of Firefox and Android 14. USB debugging and all related settings are enabled. The connection between my phone and PC (Firefox Developer Edition) works as expected. On my Android device, the `xpinstall.signatures.required` preference is set to `false`.

Has anyone else experienced this issue or found a workaround? I’d like to continue testing without having to sign the extension every time I make a small change.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![juraj.masiar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/juraj.masiar/32/30587_2.png) [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Post date:** [April 21, 2025, 7:20am UTC](https://discourse.mozilla.org/t/test-and-debug-extension-on-android/142489/2 "2025-04-21T07:20:05Z")

</div>

I can’t tell why it wouldn’t work, but I can tell you what works for me.  
I’ve followed these steps:

> **[Getting started with web-ext](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/#testing-in-firefox-for-android)**
>
> Get help creating & publishing Firefox extensions.

Although it was long ago, but it still works.

But I’m using Android Studio where I’ve created blank new project and started the virtual Android device where I have Firefox installed with USB debugging enabled.

Then in my project folder, I simply execute one of these to start Nightly/Beta/Release:

```auto
web-ext run --target=firefox-android --android-device=emulator-5554 --firefox-apk=org.mozilla.fenix --adb-remove-old-artifacts
web-ext run --target=firefox-android --android-device=emulator-5554 --firefox-apk=org.mozilla.firefox_beta --adb-remove-old-artifacts
web-ext run --target=firefox-android --android-device=emulator-5554 --firefox-apk=org.mozilla.firefox --adb-remove-old-artifacts

```

(although I think [Firefox Nightly is currently broken](https://github.com/mozilla/web-ext/issues/2206))
