Android proxy wifi vs mobile

I know this is a mess when it comes to proxy support in Android and a lot of disappointments. I read most posts about SO and I'm still confused.

I would like to support both the Wifi proxy server and the mobile proxy server, and I know that there have been some changes in the proxy support to cellular and pole cells. I also read that you need to be a system application to install a proxy server, even if you have android.permission.WRITE_SECURE_SETTINGS permission.

So can I install the system proxy for Wi-Fi and mobile network from my application? Any difference before the hundredth and after the honeycombs?

What is the preferred way to get proxy settings for Wi-Fi and mobile network? Any difference before and after the hundredth? If I want to use it in my application, is it easy to set the proxy parameter to the httpClient object? Anything else I need to do? Or should I use a system property?

Please consider the case where Wifi and mobile proxy may be different.

Any pointer to a good document about this (updated to reflect cell changes) will be very helpful. I did not find the good ones.

0
source share
3 answers

With reflection, you can get proxy settings for each Wi-Fi access point. This is what this library does. You can use it for easy access to proxy settings for the current configuration.

+1
source

So, can I install the system proxy for Wi-Fi and mobile network from my application?

Not if your application is not part of the firmware.

Any difference before the hundredth and after the honeycombs?

Regarding whether you can install them.

What is the preferred way to get proxy settings for Wi-Fi and mobile network?

AFAIK, there is only one proxy setting available, Settings.Secure.HTTP_PROXY , which you get through the getString() call on Settings.Secure .

The difference before the hundredth and after?

Not that I knew.

+1
source

Working with proxies in the Android system is not difficult for both mobile data and Wi-Fi. To access the proxy, I use the service https://infatica.io, which deals with mobile phones. Honestly, I'm not so well worried about other options, but still I think this option is reliable.

0
source

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


All Articles