mozilla / web-ext

A command line tool to help build, run, and test web extensions
Mozilla Public License 2.0
2.72k stars 339 forks source link

Issue loading temporary extension on mobile. #3301

Open splat15 opened 4 days ago

splat15 commented 4 days ago

Is this a feature request or a bug?

It is a bug

What is the current behavior?

I am trying to debug a Firefox extension on Firefox nightly android. Instead of installing the extension on my phone, I get an error. I have previously done this successfully with the same command.

To reproduce: Connect to mobile device using ADB (USB or wireless), open Firefox nightly on mobile device Run the following command on the host computer: web-ext run -t firefox-android -v --adb-device R3CR50546NT --firefox-apk org.mozilla.fenix The Firefox nightly application on the mobile device closes, possibly crashing, no error notification. Console returns an error, log:

[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][info] Version:
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Discovering config files. Set --no-config-discovery to disable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.mjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.cjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.js" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.mjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.cjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.js" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.mjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.cjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.js" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Applying config file: .\package.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Loading JS config file: "C:\Users\user\Documents\Extensions\extension\package.json" (resolved to "C:\Users\user\Documents\Extensions\extension\package.json")
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Looking for webExt key inside package.json file
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Config file C:\Users\user\Documents\Extensions\extension\package.json did not define any options. Did you set module.exports = {...}?
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\run.js][info] Running web extension from C:\Users\user\Documents\Extensions\extension
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\manifest.js][debug] Validating manifest at C:\Users\user\Documents\Extensions\extension\manifest.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Listing android devices
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Listing android devices
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Selected ADB device: R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Retrieving  current user on R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["am","get-current-user"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Listing installed Firefox APKs on R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["pm","list","packages","--user","0"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Selected Firefox for Android APK: org.mozilla.fenix
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Stopping existing instances of org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["am","force-stop","org.mozilla.fenix"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Preparing a temporary profile for org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Checking adb device for existing web-ext artifacts dirs
(node:51204) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Removing artifacts directory /data/local/tmp/web-ext-artifacts-1731879030075 from device R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["rm","-rf","/data/local/tmp/web-ext-artifacts-1731879030075"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Old web-ext artifacts have been found and removed from R3CR50546NT device
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: "test -d /data/local/tmp/web-ext-artifacts-1731879295105 ; echo $?"
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["mkdir","-p","/data/local/tmp/web-ext-artifacts-1731879295105"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["mkdir","-p","/data/local/tmp/web-ext-artifacts-1731879295105/profile"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Pushing C:\Users\user\AppData\Local\Temp\firefox-profilehGlgV8\user.js to /data/local/tmp/web-ext-artifacts-1731879295105/profile/user.js on R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Created temporary profile at /data/local/tmp/web-ext-artifacts-1731879295105/profile.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Starting org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Using profile /data/local/tmp/web-ext-artifacts-1731879295105/profile (ignored by Fenix)
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Starting org.mozilla.fenix on R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][info] Waiting for org.mozilla.fenix Remote Debugging Server...
Make sure to enable "Remote Debugging via USB" from Settings -> Developer Tools if it is not yet enabled.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["cat","/proc/net/unix"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\temp-dir.js][debug] Created temporary directory: C:\Users\user\AppData\Local\Temp\tmp-web-ext--51204-y1Ky9vL4ftSz
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.xpi with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.xpi
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.*/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\build.js][info] Building web extension from C:\Users\user\Documents\Extensions\extension
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\manifest.js][debug] Validating manifest at C:\Users\user\Documents\Extensions\extension\manifest.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.gitattributes with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.gitattributes
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.gitattributes
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.gitignore with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.gitignore
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.gitignore
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.git with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.git
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.git
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.venv with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.venv
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.venv
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\dist with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\dist
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.vscode with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.vscode
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.vscode
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\Downloader.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\Downloader.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\LICENSE with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\LICENSE
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\manifest.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\manifest.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\extension.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\extension.js        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\package-lock.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\package-lock.json        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\options-style.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\options-style.css        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\package.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\package.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\options.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\options.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\Popup.html with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\Popup.html
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.html with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.html
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\README.md with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\README.md
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.css
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\style.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\style.css
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\webpack.config.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\webpack.config.js        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Done.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Done.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Cancel.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Cancel.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\dist\extension.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\dist\extension.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Failed.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Failed.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\favicon.png with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\favicon.png        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Loading.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Loading.svg        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Uploading extension on the android device
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Pushing C:\Users\user\AppData\Local\Temp\tmp-web-ext--51204-y1Ky9vL4ftSz\extension.zip to /data/local/tmp/web-ext-artifacts-1731879295105/extension.xpi on R3CR50546NT
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Upload completed: /data/local/tmp/web-ext-artifacts-1731879295105/extension.xpi
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\temp-dir.js][debug] Removing temporary directory: C:\Users\user\AppData\Local\Temp\tmp-web-ext--51204-y1Ky9vL4ftSz
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][error] 
Error: Activity class {org.mozilla.fenix/org.mozilla.fenix.App} does not exist.
    at C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\@devicefarmer\adbkit\dist\src\adb\command\host-transport\startactivity.js:44:31
    at tryCatcher (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:102:5)
    at Async.drainQueues (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:15:14)
    at process.processImmediate (node:internal/timers:483:21)

[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Command executed: run

What is the expected or desired behavior?

The extension should be temporarily installed on the mobile device.

Version information (for bug reports)

node --version && npm --version && web-ext --version

v22.6.0 10.8.2 8.3.0

ambiso commented 3 days ago

I believe I have the same issue. As a workaround I was able to add the flag --firefox-apk-component HomeActivity.

The full command-line I used, run from the directory containing the manifest.json looks like:

web-ext run -t firefox-android --adb-device $ADB_DEVICE_ID --firefox-apk org.mozilla.fenix --adb-remove-old-artifacts --firefox-apk-component HomeActivity
splat15 commented 3 days ago

Thanks for the feedback. I will try that later.

splat15 commented 3 days ago

Sadly, this doesn't seem to work. Firefox mobile now correctly restarts and installs the extension, but after a second or so it crashes without an error notification and the desktop terminal ends the process because it can't find Firefox mobile. Stopping the web-ext process before the crash only makes Firefox mobile send a crash notification when it crashes.

Here is the command output:

*  Executing task in folder extension: web-ext run -t firefox-android -v --adb-device *device* --firefox-apk org.mozilla.fenix --adb-remove-old-artifacts --firefox-apk-component HomeActivity 

[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][info] Version:
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Discovering config files. Set --no-config-discovery to disable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.mjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.cjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.js" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.mjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.cjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.mjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.js" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.cjs" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.js" does not exist or is not readable
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Applying config file: .\package.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Loading JS config file: "C:\Users\user\Documents\Extensions\extension\package.json" (resolved to "C:\Users\user\Documents\Extensions\extension\package.json")
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Looking for webExt key inside package.json file
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Config file C:\Users\user\Documents\Extensions\extension\package.json did not define any options. Did you set module.exports = {...}?
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\run.js][info] Running web extension from C:\Users\user\Documents\Extensions\extension
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\manifest.js][debug] Validating manifest at C:\Users\user\Documents\Extensions\extension\manifest.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Listing android devices
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Listing android devices
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Selected ADB device: adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Retrieving  current user on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["am","get-current-user"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Listing installed Firefox APKs on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["pm","list","packages","--user","0"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Selected Firefox for Android APK: org.mozilla.fenix
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Stopping existing instances of org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["am","force-stop","org.mozilla.fenix"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Preparing a temporary profile for org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Checking adb device for existing web-ext artifacts dirs
(node:18148) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: "test -d /data/local/tmp/web-ext-artifacts-1731951511049 ; echo $?"
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["mkdir","-p","/data/local/tmp/web-ext-artifacts-1731951511049"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["mkdir","-p","/data/local/tmp/web-ext-artifacts-1731951511049/profile"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Pushing C:\Users\user\AppData\Local\Temp\firefox-profileVh6QIq\user.js to /data/local/tmp/web-ext-artifacts-1731951511049/profile/user.js on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Created temporary profile at /data/local/tmp/web-ext-artifacts-1731951511049/profile.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Starting org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Using profile /data/local/tmp/web-ext-artifacts-1731951511049/profile (ignored by Fenix)
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Starting org.mozilla.fenix on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][info] Waiting for org.mozilla.fenix Remote Debugging Server...
Make sure to enable "Remote Debugging via USB" from Settings -> Developer Tools if it is not yet enabled.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["cat","/proc/net/unix"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\temp-dir.js][debug] Created temporary directory: C:\Users\user\AppData\Local\Temp\tmp-web-ext--18148-x9G7cR9xzUK7
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.xpi with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.xpi
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.*/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\build.js][info] Building web extension from C:\Users\user\Documents\Extensions\extension
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\manifest.js][debug] Validating manifest at C:\Users\user\Documents\Extensions\extension\manifest.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.git with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.git
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.git
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.gitattributes with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.gitattributes
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.gitattributes
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.gitignore with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.gitignore
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.gitignore
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.venv with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.venv
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.venv
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\dist with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\dist
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.vscode with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.vscode
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.vscode
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\LICENSE with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\LICENSE
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\Downloader.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\Downloader.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\manifest.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\manifest.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\package-lock.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\package-lock.json        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\extension.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\extension.js        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\package.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\package.json
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\Popup.html with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\Popup.html
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\options.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\options.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.html with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.html
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\options-style.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\options-style.css        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\README.md with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\README.md
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.css
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\webpack.config.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\webpack.config.js        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\style.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\style.css
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Cancel.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Cancel.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\dist\extension.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\dist\extension.js
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Done.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Done.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Failed.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Failed.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\favicon.png with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\favicon.png        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Loading.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Loading.svg        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download.svg
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Uploading extension on the android device
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Pushing C:\Users\user\AppData\Local\Temp\tmp-web-ext--18148-x9G7cR9xzUK7\extension.zip to /data/local/tmp/web-ext-artifacts-1731951511049/extension.xpi on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Upload completed: /data/local/tmp/web-ext-artifacts-1731951511049/extension.xpi
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\temp-dir.js][debug] Removing temporary directory: C:\Users\user\AppData\Local\Temp\tmp-web-ext--18148-x9G7cR9xzUK7
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][info] Waiting for org.mozilla.fenix Remote Debugging Server...
Make sure to enable "Remote Debugging via USB" from Settings -> Developer Tools if it is not yet enabled.
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["cat","/proc/net/unix"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] RDP Socket File selected: @org.mozilla.fenix/firefox-debugger-socket
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] You can connect to this Android device on TCP port 3012
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Configuring ADB forward for adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: localabstract:org.mozilla.fenix/firefox-debugger-socket -> tcp:3012
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\firefox\remote.js][debug] Connecting to the remote Firefox debugger
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\firefox\remote.js][debug] Connecting to Firefox on port 3012
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\firefox\remote.js][debug] Connected to the remote Firefox debugger on port 3012
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\firefox\remote.js][debug] installTemporaryAddon: {"addon":{"id":"10fa2eba1937772aece9dee3ad8c9d48dd265066@temporary-addon","actor":false},"from":"server0.conn0.addonsActor2"}
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\firefox\remote.js][info] Installed /data/local/tmp/web-ext-artifacts-1731951511049/extension.xpi as a temporary add-on
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\run.js][info] The extension will reload if any source file changes
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.xpi with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.xpi
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.zip
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.*/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Ignoring artifacts directory "C:\Users\user\Documents\Extensions\extension\web-ext-artifacts" and all its subdirectories
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts        
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\**\* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\**\*
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\watcher.js][debug] Watching C:\Users\user\Documents\Extensions\extension for changes
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\index.js][info] Press R to reload (and Ctrl-C to quit)
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\firefox\remote.js][debug] Received "end" from Firefox client
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Exiting the device because Firefox for Android disconnected
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Stopping existing instances of org.mozilla.fenix...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["am","force-stop","org.mozilla.fenix"]
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Cleaning up artifacts directory on the Android device...
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Removing /data/local/tmp/web-ext-artifacts-1731951511049 artifacts directory on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp. device
[C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on adb-R3CR50546NT-E6uGkF._adb-tls-connect._tcp.: ["rm","-rf","/data/local/tmp/web-ext-artifacts-1731951511049"]
 *  Press any key to close the terminal. 
Rob--W commented 3 days ago

Does this happen with Nightly only, or also Beta and/or release version of Firefox?

Can you share the crash report? You can find the text and link at about:crashes in your Firefox app on your phone.

splat15 commented 2 days ago

First off: the crash report. During normal operation, the app does not create a crash report or crash notification when trying to install. The crash report only appears when interrupting the connection from the web-ext process to the device. Stopping web-ext before Firefox nightly mobile crashes produces this very descriptive error:

d152bf15-c111-4726-abf6-abf31a835653
<native crash>
 * Socorro: https://crash-stats.mozilla.org/report/index/bp-756dd754-1441-41a0-bfb1-e06c20241119
----
<native crash>

I believe a crash is to be expected and has nothing to do with the issue itself.

Now to the other versions: For this I removed the --firefox-apk-component argument because with Firefox nightly it had no effect and with Firefox it was causing problems

Log

``` [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][info] Version: [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Discovering config files. Set --no-config-discovery to disable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.mjs" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.cjs" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\.web-ext-config.js" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.cjs" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.mjs" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.mjs" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\web-ext-config.js" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.cjs" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Discovered config "C:\Users\user\Documents\Extensions\extension\.web-ext-config.js" does not exist or is not readable [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][debug] Applying config file: .\package.json [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Loading JS config file: "C:\Users\user\Documents\Extensions\extension\package.json" (resolved to "C:\Users\user\Documents\Extensions\extension\package.json") [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Looking for webExt key inside package.json file [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\config.js][debug] Config file C:\Users\user\Documents\Extensions\extension\package.json did not define any options. Did you set module.exports = {...}? [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\run.js][info] Running web extension from C:\Users\user\Documents\Extensions\extension [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\manifest.js][debug] Validating manifest at C:\Users\user\Documents\Extensions\extension\manifest.json [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Listing android devices [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Listing android devices [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Selected ADB device: R3CR50546NT [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Retrieving current user on R3CR50546NT [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["am","get-current-user"] [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Listing installed Firefox APKs on R3CR50546NT [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["pm","list","packages","--user","0"] [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Selected Firefox for Android APK: org.mozilla.firefox [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Stopping existing instances of org.mozilla.firefox... [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["am","force-stop","org.mozilla.firefox"] [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Preparing a temporary profile for org.mozilla.firefox... [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Checking adb device for existing web-ext artifacts dirs (node:28920) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated. (Use `node --trace-deprecation ...` to show where the warning was created) [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][warn] Old artifacts directories have been found on R3CR50546NT device. Use --adb-remove-old-artifacts to remove them automatically. [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: "test -d /data/local/tmp/web-ext-artifacts-1732056324042 ; echo $?" [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["mkdir","-p","/data/local/tmp/web-ext-artifacts-1732056324042"] [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["mkdir","-p","/data/local/tmp/web-ext-artifacts-1732056324042/profile"] [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Pushing C:\Users\user\AppData\Local\Temp\firefox-profile4az7bF\user.js to /data/local/tmp/web-ext-artifacts-1732056324042/profile/user.js on R3CR50546NT [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Created temporary profile at /data/local/tmp/web-ext-artifacts-1732056324042/profile. [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][info] Starting org.mozilla.firefox... [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Using profile /data/local/tmp/web-ext-artifacts-1732056324042/profile (ignored by Fenix) [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Starting org.mozilla.firefox on R3CR50546NT [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][info] Waiting for org.mozilla.firefox Remote Debugging Server... Make sure to enable "Remote Debugging via USB" from Settings -> Developer Tools if it is not yet enabled. [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Run adb shell command on R3CR50546NT: ["cat","/proc/net/unix"] [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\temp-dir.js][debug] Created temporary directory: C:\Users\user\AppData\Local\Temp\tmp-web-ext--28920-k4xPoODoO3J8 [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.xpi with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.xpi [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/*.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\*.zip [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.* [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/.*/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\.*\**\* [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\**\node_modules\**\* [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\cmd\build.js][info] Building web extension from C:\Users\user\Documents\Extensions\extension [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\manifest.js][debug] Validating manifest at C:\Users\user\Documents\Extensions\extension\manifest.json [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.git with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.git [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.git [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.gitignore with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.gitignore [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.gitignore [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.gitattributes with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.gitattributes [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.gitattributes [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.venv with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.venv [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.venv [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\.vscode with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\.vscode [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\.vscode [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\dist with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\dist [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\Downloader.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\Downloader.js [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\LICENSE with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\LICENSE [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\extension.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\extension.js [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\manifest.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\manifest.json [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\node_modules with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\node_modules [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\node_modules [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\package-lock.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\package-lock.json [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\package.json with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\package.json [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\options-style.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\options-style.css [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\options.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\options.js [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\Popup.html with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\Popup.html [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.html with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.html [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\README.md with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\README.md [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.css [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\popupTest.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\popupTest.js [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\style.css with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\style.css [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\test.txt with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\test.txt [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\webpack.config.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\webpack.config.js [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Done.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Done.svg [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Cancel.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Cancel.svg [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\dist\extension.js with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\dist\extension.js [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download Failed.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download Failed.svg [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Loading.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Loading.svg [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\Google Download.svg with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\Google Download.svg [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\icons\favicon.png with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\icons\favicon.png [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] Resolved path C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip with sourceDir C:\Users\user\Documents\Extensions\extension to C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\file-filter.js][debug] FileFilter: ignoring file C:\Users\user\Documents\Extensions\extension\web-ext-artifacts\extension.zip [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Uploading extension on the android device [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\adb.js][debug] Pushing C:\Users\user\AppData\Local\Temp\tmp-web-ext--28920-k4xPoODoO3J8\extension.zip to /data/local/tmp/web-ext-artifacts-1732056324042/extension.xpi on R3CR50546NT [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\extension-runners\firefox-android.js][debug] Upload completed: /data/local/tmp/web-ext-artifacts-1732056324042/extension.xpi [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\util\temp-dir.js][debug] Removing temporary directory: C:\Users\user\AppData\Local\Temp\tmp-web-ext--28920-k4xPoODoO3J8 [C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\lib\program.js][error] Error: Activity class {org.mozilla.firefox/org.mozilla.firefox.HomeActivity} does not exist. at C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\@devicefarmer\adbkit\dist\src\adb\command\host-transport\startactivity.js:44:31 at tryCatcher (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:102:5) at Async.drainQueues (C:\Users\user\AppData\Roaming\npm\node_modules\web-ext\node_modules\bluebird\js\release\async.js:15:14) at process.processImmediate (node:internal/timers:483:21) ```

My command now looks like this: web-ext run -t firefox-android --adb-device R3CR50546NT --firefox-apk package