To specify the profile path for Fennec (Firefox for Android), you use the -profile command-line argument, but since Fennec is an Android app, you must pass it via adb:
adb shell am start -n org.mozilla.fennec/org.mozilla.gecko.BrowserApp --es args "-profile /path/to/profile"
Key Details:
- Default profile location:
/data/data/org.mozilla.firefox/files/mozilla/XXXXXXXX.default/ (where XXXXXXXX is a random string)
- For custom builds: The argument is passed as a string extra (
--es args) to the Fennec activity
- Note: This works primarily for debug builds and testing scenarios. Standard releases may not respect custom profile paths due to Android sandboxing.
For desktop Firefox, use: firefox --profile /path/to/profile. For Fennec, the adb method above is the equivalent.