How to install a system proxy server in ICS

For Android 3.x and earlier, you can open the com.android.settings.ProxySelector hidden user interface. It is installed in Settings.Secure.HTTP_PROXY and is used by the mobile network (WiFi network does not always work). However, for ICS, I can still open this hidden user interface, but it does not seem to install a proxy anymore. When I click Finish, I check Settings.Secure.HTTP_PROXY or the system property http.proxyHost, none of them are set.

So, is there a way in ICS that allows me to set up a global proxy server in the same way as what I can do before using the com.android.settings.ProxySelector interface? Thanks!

+3
source share
2 answers

Unfortunately, the hidden activity of "com.android.settings.ProxySelector" is not intended to set proxies for Wi-Fi networks. In fact, you can install the global proxy server using this action, but for standard applications you will not see the changes.

For example, the default browser uses this option only for MOBILE networks and completely ignores it for Wi-Fi networks .

Of course, you can read the settings in your personal application using library , but you cannot expect other applications to be the same: (

Please let me know if everything is clear. In any case, I am trying to highlight the problem here , so you can find more resources on this topic.

+4
source

if the device is rooted. you can edit iptable

+1
source

Source: https://habr.com/ru/post/1382664/


All Articles