diff options
author | Alex Klyubin <klyubin@google.com> | 2015-04-21 13:44:29 -0700 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-04-21 14:50:39 -0700 |
commit | fbf4599a8edfc31585f207c434d35200a03657b4 (patch) | |
tree | 8967b5bb9c798d075ac5babccc8d3ea10094015f /core/java/android/security | |
parent | 19f1faa376c08edbd2c7e19ad33107e1b9520777 (diff) | |
download | frameworks_base-fbf4599a8edfc31585f207c434d35200a03657b4.zip frameworks_base-fbf4599a8edfc31585f207c434d35200a03657b4.tar.gz frameworks_base-fbf4599a8edfc31585f207c434d35200a03657b4.tar.bz2 |
Document that WebView doesn't honor "uses cleartext traffic" flag.
Bug: 19215516
Change-Id: I5dbbaa03f3cae007c0b9b68fcf8cc8f250c16a62
Diffstat (limited to 'core/java/android/security')
-rw-r--r-- | core/java/android/security/NetworkSecurityPolicy.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/security/NetworkSecurityPolicy.java b/core/java/android/security/NetworkSecurityPolicy.java index 70cd388..7e87717 100644 --- a/core/java/android/security/NetworkSecurityPolicy.java +++ b/core/java/android/security/NetworkSecurityPolicy.java @@ -46,9 +46,9 @@ public class NetworkSecurityPolicy { * without TLS or STARTTLS) is permitted for this process. * * <p>When cleartext network traffic is not permitted, the platform's components (e.g. HTTP and - * FTP stacks, {@link android.webkit.WebView}, {@link android.app.DownloadManager}, - * {@link android.media.MediaPlayer}) will refuse this process's requests to use cleartext - * traffic. Third-party libraries are strongly encouraged to honor this setting as well. + * FTP stacks, {@link android.app.DownloadManager}, {@link android.media.MediaPlayer}) will + * refuse this process's requests to use cleartext traffic. Third-party libraries are strongly + * encouraged to honor this setting as well. * * <p>This flag is honored on a best effort basis because it's impossible to prevent all * cleartext traffic from Android applications given the level of access provided to them. For @@ -56,6 +56,8 @@ public class NetworkSecurityPolicy { * because it cannot determine whether its traffic is in cleartext. However, most network * traffic from applications is handled by higher-level network stacks/components which can * honor this aspect of the policy. + * + * <p>NOTE: {@link android.webkit.WebView} does not honor this flag. */ public boolean isCleartextTrafficPermitted() { return libcore.net.NetworkSecurityPolicy.isCleartextTrafficPermitted(); |