diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2021-02-03 10:18:20 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2021-02-03 10:19:25 +0900 |
commit | a26ffd97ee40e1561d62d4dae79a3ed97bbd5e79 (patch) | |
tree | 544709f72dbf9bbac37e88f25960d54fd0114e56 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 9154c8febec6ef387d8d605e4f41729a8c02ff8b (diff) |
Use formal API for ActivityThread to set proxy
Add getProxyForNetwork to the public API, and use ConnectivityManager
APIs from ActivityThread (instead of hidden APIs) to get/set the proxy
for an app process.
getProxyForNetwork allows clients to find which proxy applies, which can
be a global proxy setting or a per-network proxy.
The default proxy is now initialized with getDefaultProxy instead of
getProxyForNetwork(null); this should not make a difference, as nothing
should have called bindProcessToNetwork at that point yet.
Bug: 174436414
Test: m; device boots
Change-Id: Ifb516194ecde1567cea4b6806946091cdcf2f015
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions