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-19 13:53:56 +0900 |
commit | 72887073f2d838b7130bb348d37514f9d40267c8 (patch) | |
tree | 5fa76ec64377884817830f5e1553f9401d4b869d /core/api/module-lib-current.txt | |
parent | 0ae1b444ca220af7b01fc17c60cc86cab23dcfc5 (diff) |
Use formal API for ActivityThread to set proxy
Add setHttpProxyConfiguration to the public API, and use
ConnectivityManager APIs from ActivityThread (instead of hidden APIs) to
get/set the proxy for an app process.
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
Merged-In: Ifb516194ecde1567cea4b6806946091cdcf2f015
Change-Id: I06b797eeae54609aecdc0afe1df4e6c602a17a69
Diffstat (limited to 'core/api/module-lib-current.txt')
-rw-r--r-- | core/api/module-lib-current.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 1fb5de3170db..511daf7b2685 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -36,6 +36,10 @@ package android.net { field public static final int TRANSPORT_TEST = 7; // 0x7 } + public final class Proxy { + method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); + } + public final class TcpRepairWindow { ctor public TcpRepairWindow(int, int, int, int, int, int); field public final int maxWindow; |