diff options
author | Alex Klyubin <klyubin@google.com> | 2015-02-12 11:43:09 -0800 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-03-19 10:27:48 -0700 |
commit | f9034cc4ae5a7d0ee67d505f46208384f9babf1c (patch) | |
tree | a3b62d4ce9d600c60149b480c097d3d6c9c4f7e2 /rs/java/android/renderscript/RenderScript.java | |
parent | 4177b8cbbfa239d68a9283124638d9399a5dd0de (diff) |
Add android.security.NetworkSecurityPolicy.
The initial purpose of the NetworkSecurityPolicy class is to provide a
way for network libraries to check whether cleartext network traffic
(e.g., HTTP, WebSockets, XMPP, IMAP, SMTP) should be blocked from this
process.
The policy is set declaratively by the app developer in the app's
manifest and can be queried from ApplicationInfo.flags. Unfortunately,
several network stacks (bundled and unbundled) do not have a reference
to ApplicationInfo or Context.
Alternatives:
* Keep this API hidden (and thus potentially move it from framework to
libcore), thus precluding unbundled HTTP stacks from using the API.
* Introduce a new java.lang.System property instead of this API.
However, such properties are a mess and not as powerful/extensible
as a public class.
Bug: 19215516
Change-Id: If22056a74d257bf1d805ebb4fc284240b3d338f1
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions