Android's proxy confusing documentation resources

前端 未结 2 1428
南笙
南笙 2020-12-31 18:53

It seems to me that there is a lot of confusing resources regarding the proxy topic on Android.

First of all, it seems that all the methods of the Proxy class are d

相关标签:
2条回答
  • 2020-12-31 19:21

    For getting proxy values, accessing the System properties as you have done should work; it should not be necessary to access secure settings. If you cannot use the System properties to read proxy settings that were made through the normal device UI, then there is a problem. Proxies are per network type, so the APN and WiFi will have separate proxy settings.

    0 讨论(0)
  • 2020-12-31 19:35

    I don't know if it's the "right" way to access the proxy settings but it's the right and only way you should access the system "secure settings".

    Maybe this is also interesting, looks like it makes things easier, especially if there are Wifi proxys (does Android support something like this?). At least it looks like great abstraction for the various android versions.

    0 讨论(0)
提交回复
热议问题