History log of /frameworks/base/core/java/android/net/PacProxySelector.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
54a62d5febc8771f65221db3dd5c6e08f3288eb8 26-May-2016 Paul Jensen <pauljensen@google.com> Merge "Don\'t pass URL path and username/password to PAC scripts" into klp-dev am: af0b4466ff am: 8940d2b0ff am: bb27626141 am: 6c35cf2434 am: 42a5983364 am: 75095e6f02
am: 7c625e1938

* commit '7c625e1938f28cf2a455fb1f4ab71dca99341b3d':
Don't pass URL path and username/password to PAC scripts

Change-Id: If2e068e47e6efd4b8ad7abc7fb358860b188a380
6c35cf2434ca373196b16620455f8f234b63d594 26-May-2016 Paul Jensen <pauljensen@google.com> Merge "Don\'t pass URL path and username/password to PAC scripts" into klp-dev am: af0b4466ff am: 8940d2b0ff
am: bb27626141

* commit 'bb2762614181a0ee03554a96c070ea1006d7263c':
Don't pass URL path and username/password to PAC scripts

Change-Id: I9e4d3282765dec1554955b9f72484e9d7e2d6594
08ec0e53b8ab0c3c6ab605c237fcc6df4cad2fcd 15-Apr-2016 Paul Jensen <pauljensen@google.com> Don't pass URL path and username/password to PAC scripts

The URL path could contain credentials that apps don't want exposed
to a potentially malicious PAC script.

Bug: 27593919
Change-Id: I4bb0362fc91f70ad47c4c7453d77d6f9a1e8eeed
/frameworks/base/core/java/android/net/PacProxySelector.java
44c02590374bda5928669be0d14110b12c271461 22-Dec-2014 Andrei Kapishnikov <kapishnikov@google.com> Do not throw NullPointerException from PacService

Do not throw NullPointerException from PacService
since the calling client may not expect it and crash.

Fix of Bug 18818567

Change-Id: Ic36e8a1ca13cdaa7f605b6ade9cc6783517cbf40
/frameworks/base/core/java/android/net/PacProxySelector.java
4385af32eff1b99802e6ce233a2b10d002bf4eb1 18-Aug-2014 Jason Monk <jmonk@google.com> Fix SOCKS proxies from being dropped from PAC

It seems that SOCKS isn't being handled explicitly by the
PacProxySelector, which results in them just being dropped
from the return list. This will sometimes end up switching
from SOCKS to DIRECT, which could be bad.

Bug: 17104885
Change-Id: Ic8a28230d3ae18c0abb000811a9100787c10c5e0
/frameworks/base/core/java/android/net/PacProxySelector.java
179d6e8e2067c380d3c1f7a1a26877b81a9240cb 30-Oct-2013 Jason Monk <jmonk@google.com> Change PacProxySelector to return unresolved addr

This was found by a bug in Firefox where it expects the addresses from a
ProxySelector to be unresolved. Since ProxySelectorImpl returns unresolved
addresses the PAC version should as well to avoid breaking apps.

The ProxyServer also needed to be updated to reflect this change as it was
expecting a resolved InetSocketAddress.

Bug: 11443853
Change-Id: I3a4e9e248d22d7808603c147660df708e01cdf82
/frameworks/base/core/java/android/net/PacProxySelector.java
9ced3cd9d6ea414523051ec872fffc68f5fdbf08 12-Aug-2013 Jason Monk <jmonk@google.com> Change PacProcessor to Android Service

This switches the PacProcessor over to an Android Service. The service
is bound and unbound by the PacManager, which also adds it to the
ServiceManager, allowing for Context-Free access by the PacProxySelector
in all DVMs.

bug:10182711
Change-Id: Id1ff7660be56e8976cdcccd76e041feb47a17a61
/frameworks/base/core/java/android/net/PacProxySelector.java
a48ad8bd858d6ffe77838a282dbf71e01967957c 10-Aug-2013 Wink Saville <wink@google.com> PROXY_SERVICE may be missing and its reference null.

Protect ourselves from when PROXY_SERVICE is missing
and mProxyService is null.

Bug: 10267814
Change-Id: Ia329376218e246cdde3d70b578c18466d48a6383
/frameworks/base/core/java/android/net/PacProxySelector.java
602b232a06ede86999aa362a12eb28cbc782dc1d 03-Jul-2013 Jason Monk <jmonk@google.com> Add PAC File support for proxy configuration

PAC (Proxy auto-config) files contain a single javascript function,
FindProxyForURL(url, host). It gets called to determine what proxy should be
used for a specific request.

This adds PAC support to the system. The ProxyProperties has been modified
to hold the PAC file when one is present. The Proxy method
setHttpProxySystemProperty has been modified to insert a PacProxySelector
as the default ProxySelector when it is required. This new ProxySelector
makes calls to the ConnectivityService to parse the PAC file.

The ConnectivityService and the WifiConfigStore have been modified to support
saving the extra PAC file data.

The ConnectivityService now has a class attached (PacProxyNative) that
interfaces to the native calls for PAC files. The parsing of the PAC file
is handled by libpac (which is being added to external/) which utilizes
libv8 to parse the javascript.

As a fallback to applications that don't use the java ProxySelector, the proxy
is setup to point to a local proxy server that will handle the pac parsing.

bug:10182711
Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401
/frameworks/base/core/java/android/net/PacProxySelector.java