feat: Added --firefox-debugger-socket option#3586
feat: Added --firefox-debugger-socket option#3586yureitzk wants to merge 1 commit intomozilla:masterfrom
Conversation
|
Could you elaborate when this would be needed, and how we can test it? The current logic matches Firefox's logic that is used at |
|
Yes. The problem is that new version of Android don't have an access to The socket usually looks like this |
|
You linked to a restriction for apps in Android 10. I have tested various Android versions on different Pixel devices without issues. Which phone are you using? |
|
I think I figured it out. Some of my phones (running Android 10+) have access to |
|
If you have a root shell you can fix up your permissions yourself. For example, here is a (random) other project where a similar access issue was encountered, and a user shared explicit steps to fix it up temporarily: mpotthoff/vscode-android-webview-debug#4 (comment) |
|
For sure, you can change the permissions, but doing this just to test a web extension is not really handy, especially if you rely on |
|
Allowing users to specify a custom debugging socket is a footgun, because it would result in an attempt to connect to the wrong app. We'd be willing to consider a safe patch that just falls back to trying to detect the presence of the abstract socket by its well-known name if To enable the use of |
|
But shouldn't the option be used by people who know what they're doing? I highly doubt that people who don't know what this option does will attempt to connect to the wrong app. Do you mean that you want this option to be a flag that accepts no arguments, and just constructs the path automatically, based on the provided apk? I simply forward the socket to a host machine using the command below, then added this network location in adb forward tcp:6000 localabstract:org.mozilla.fenix/firefox-debugger-socket |
This allows connecting to Firefox on Android devices without access to
/proc/net/unix, bypassing automatic socket discovery.