Why there's no proxy support in Android browsers?


Question

Android supports both Chromium-based and Firefox-based browsers since long now.



While those browsers have full support for HTTP/SOCKS proxies under all other OSes (Linux, OSX and even Windows), they are lacking it completely under Android. There's no setting at all to configure one.



I can easily configure a SOCKSv5 proxy on my Android device with, say, ssh -D to be used over whatever connections I have (wifi, ethernet, mobile data...), but I cannot use it with my browsers.



There's some system-wide support when you configure wifi, but that's not what I talk about. I mean the good ol' application-level proxy support. I don't want to send all traffic through a proxy, but just that for a specific browser on demand.



For the curious, I am asking this because I need and can compare results on my landline Internet link, but I cannot do the same on my mobile one.



Please, forget about VPNs which are also system-wide solutions like wifi proxies. I need to configure a proxy on a per-browser basis, just like I can do on a PC, and not a VPN.



So, why this lack?


Answer

There's no apparent "technical" reason for that lack. I suspect it'd be something related to the "Android Program Policy" (or whatever else it's called).
In my opinion it looks like an intentional choice as the system-level proxy you can normally configure could be leaking information for some reason or bug.


Anyway, we can configure the SOCKSv5 proxy for Firefox for Android prior to version 68.11, but there seems to be no way to do the same for Chrome/Chromium.


Provided that you already established such a proxy, for example with a suitable SSH client (-D option).



  1. In Firefox address bar type: about:config. A page full of settings will pop up.



  2. In the search box type network.proxy to reduce the settings to those we are interested in.



  3. For a SOCKv5 proxy you can set:



  4. network.proxy.socks to the proxy IP address



  5. network.proxy.socks_port to the proxy TCP port



  6. network.proxy.type to 1 for manual proxy configuration



  7. (optional) network.proxy.no_proxies_on to address that need not to be proxied (or clean it up to reach remote loopback addresses)



  8. For a "regular" HTTP proxy, any other proxy type or even any other setting that's not available in the setting menu, please refer to the above settings page and to the official online documentation.




N.B. Starting with v68.11 Firefox for Android doesn't provide anymore access to settings via the about:config pseudo-page, even if it's listed in about:about pseudo-page. This is not mentioned within the release notes and means that there's no way anymore to use a proxy within a browser.
However Firefox Nightly releases still allow users to access about:config, you can install theses builds to use a proxy.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes