summaryrefslogtreecommitdiffstats
path: root/packages/CaptivePortalLogin/src
Commit message (Collapse)AuthorAgeFilesLines
* Make CaptivePortalLoginActivity compatible with setupwizard.Ramswaroop Ghanshyam Somani2016-02-291-1/+5
| | | | | | | | Cyanogenmod setupwizard sends a token to validate when the result is sent. Handle this token. Issue-id: CYNGNOS-2048 Change-Id: I7b76e0df32288bf2efd60c495d6e726065353435
* CaptivePortalLogin: Allow overriding of progress colorcretin452015-10-261-0/+10
| | | | Change-Id: I6246b8b354c124dc672efb1f18492c133208660d
* CaptivePortalLogin: Add functionality for SetupWizardcretin452015-10-261-0/+27
| | | | Change-Id: I9ccb7ee5e8882acfaa6afc5cd9efa9211058ed60
* Change to connectivitycheck.gstatic.comErik Kline2015-07-201-1/+1
| | | | | | Bug: 18869302 Bug: 22368233 Change-Id: Iaecb59e4ef13a0fa82a0a4a920689804d24044c8
* Add android.net.CaptivePortal class for captive-portal-handling-app callbacksPaul Jensen2015-07-091-5/+6
| | | | | | | | This new class replaces the awkward string token and ConnectivityManager APIs used by apps handling captive portals. Bug:21343774 Change-Id: I1a2c69edb17322715bf8422bb4216b0ea60bfd59
* Log SslErrors from captive portal sign in app.Paul Jensen2015-06-091-1/+4
| | | | | Bug:21604873 Change-Id: I0361da37039bb4f0f9d2e0dabbae4ab2ddbb05e3
* Add support for tel: links in captive portal app.Paul Jensen2015-06-091-0/+9
| | | | | Bug:21447011 Change-Id: I72ec4fd780ddb89cecfa584aa285f3822f326810
* Disallow going back to initial empty page in captive portal appPaul Jensen2015-06-031-12/+25
| | | | | | | | | This is a little tricky because WebView history can only be cleared after the next page load and we don't want to allow hitting back during the first page load. Bug:21147832 Change-Id: I639dfd27d4dc3af618282256ca02b9947e64a7b9
* Update captive portal sign-in app SSL error page UI.Paul Jensen2015-06-031-10/+67
| | | | | | | | | | Add text and update image as per UX team recommendations. Add "Use as is and open browser" link. Bug:18791346 Bug:20038019 Bug:20486308 Change-Id: Ibf6d1493f5332e7905154cc7306645ac4c1a6283
* Don't leak NetworkListens in captive portal app.Paul Jensen2015-05-181-0/+11
| | | | | Bug:21146632 Change-Id: I934044a2eec89a47185add881a74de5669cd0f89
* Add URL bar to captive portal login app.Paul Jensen2015-05-061-5/+10
| | | | | | | | | Keeps the user informed whether site is using SSL and what URL is being displayed in an attempt to avoid phishing. The progress bar is now always visible as it provides a border between the URL bar and WebView. Bug:20322548 Change-Id: I001a4501a02cc79080b0f37f0a304c609bbd7664
* Merge commit '25a217c' into merge2Etan Cohen2015-04-241-38/+29
|\ | | | | | | Change-Id: I116a9dbf19e95651a7c50393e4dcd7fb59ca3f3f
| * Add captive portal API.Paul Jensen2015-04-161-38/+29
| | | | | | | | | | | | | | | | This API allows apps other than the system's CaptivePortalLogin to handle signing in to captive portals. bug:19416463 Change-Id: I27fce5856b635233e6ff66396d50ccabedd76cf5
* | Merge commit 'e593d0a' into merge_workPrerepa Viswanadham2015-04-101-1/+1
|\ \ | |/ | | | | Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
| * Deprecate static ConnectivityManager.get/setProcessDefaultNetwork() functions.Paul Jensen2015-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | These functions risk hitting an unchecked Exception due to ConnectivityManager not being instantiated yet. Also, change Network.openConnection() to throw a checked Exception rather than an unchecked Exception when ConnectivityManager is not yet instantiated. bug:19416463 Change-Id: Ie1e2b3238aec0343d267c76b64927073f2f05f85
* | Remove unused imports in frameworks/base.John Spurlock2015-02-281-2/+0
|/ | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Switch the connectivity check to its own hostname.Lorenzo Colitti2015-01-141-1/+1
| | | | | | | Bug: 18467482 Bug: 18869302 Bug: 18924197 Change-Id: I1de478e9c8a165faf6f1bf81e042d1de9e03c3d5
* Merge "Show broken lock image when SSL errors are encountered in ↵Paul Jensen2014-12-171-0/+15
|\ | | | | | | CaptivePortalLogin." into lmp-mr1-dev
| * Show broken lock image when SSL errors are encountered in CaptivePortalLogin.Paul Jensen2014-12-101-0/+15
| | | | | | | | | | | | | | | | | | The WebView cancels the page load by default, so showing an indicative image at least informs users that there is a security problem. bug:18505835 bug:18570703 Change-Id: Ie6dd9294eec9ca25d27e95a1cd2c95e3065de469
* | Fix several HTTP proxy issues with multinetworking.Paul Jensen2014-12-101-24/+5
|/ | | | | | | | | | | | | | | | | 1. Send PROXY_CHANGE_ACTION broadcast when any network's proxy changes, not just the default network. 2. When a process is bound to a particular Network, update the proxy system properties to those for the bound Network, and keep them updated when PROXY_CHANGE_ACTION broadcasts are received. 3. Make Network.openConnection() use the proxy for the Network. bug:17905627 bug:17420465 bug:18144582 (cherry-pick of https://android-review.googlesource.com/#/c/115170) Change-Id: Ia2819985e6108a8c121e74c683a5646becfd0a97
* Don't let NetworkMonitor state stop user-initiated transitions.Paul Jensen2014-11-241-12/+27
| | | | | | | | | | | | GCM can call reportInetCondition() at any time which can cause the NetworkMonitor to transition states to reevaluate at any time. Previously we were only listening for users clicking the sign-in notificaiton or completing sign-in when in the appropriate state. With this change NetworkMonitor's state does not stop us from listening for the user's actions. bug:17917929 Change-Id: Ic1da31d90f7090e5fc111874cb7c37d505aaf590
* Use network-specific HTTP proxy settings in captive portal login app.Paul Jensen2014-10-031-6/+76
| | | | | | | | | | | | | | | | | | The HTTP proxy system properties are set based on the proxy configured for the network the captive portal login app is operating on. These system properties are subsequently read by the WebView used to perform the sign-in. This is a short-term fix using reflection. This allows users with cellular providers that use proxies to sign into WiFi captive portals. The long-term fix could involve: 1. Sending out a network-specific proxy config changed broadcast, and 2. Modifying the ActivityThread to set proxy system properties for Networks selected with setProcessDefaultNetwork(), and 3. Modifying WebView to read from the proxy system properties when PROXY_CHANGE_ACTION broadcasts are received. bug:17679789 Change-Id: I3ada0470ad085df1a4452b4a655ac35f310d2241
* Make CaptivePortalLogin app exit if underlying Network disconnects.Paul Jensen2014-09-301-1/+26
| | | | | | | | The app is no longer useful if the underlying Network has disconnected and could get in the way of another signing into another Network. bug:17672087 Change-Id: I26e820444640975e7fd4dd73244f4d4f4b40cb5e
* Switch CaptivePortalLogin app to use theme like Settings UI.Paul Jensen2014-08-071-2/+5
| | | | | | | | | | | The theme is switched to Theme.Material.Settings. The progress bar window feature is not supported in Material (b/16652978) so I added a progress bar to the layout. The Theme.Material.Setting's accent color is set such that ProgressBars are indistinguishable, so accent color is reset back to the parent's setting. bug:15409354 Change-Id: Ic2862b8439be8591ec426f3d4dffad72179b2539
* Make back button work in CaptivePortalLogin app like a web browser.Paul Jensen2014-07-181-0/+10
| | | | | | | | | Users will be using the app to navigate web pages like they are used to in web browsers, so the back button should act similarly. There also isn't an in-app back button so this adds essentially necessary functionality. bug:16397616 Change-Id: Idd73d4a048d79e56bf981a8f477336f00eaafc3b
* Enable network validations and add app to handle captive portal login.Paul Jensen2014-07-101-0/+160
Network validation prevents networks claiming to provide internet connectivity from becoming the default network in cases where internet connectivity is not found to actually exist. If a captive portal is encountered the appropriate broadcasts and notifications are surfaced to allow apps to handle signing in. If no app handles signing in, my system app will handle it. Bug:15409233 Bug:15409354 Change-Id: Ie240d7eac4bdbab8cc7578782bd72d8b26de7951