diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2017-09-26 08:07:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-09-26 08:07:54 +0000 |
commit | ec9678e07c183c62e11610df75132ea80827f602 (patch) | |
tree | 881c5b1265fc0af123ccb9f3e5055102fe7d444c | |
parent | 52d7517e1c6a328b9e3cbcd62e11501722081eee (diff) | |
parent | 3400daf04599b30d97fc2e2ee7c330f6f201751f (diff) | |
download | libcore-ec9678e07c183c62e11610df75132ea80827f602.tar.gz |
Merge "Expand SecurityManager javadoc with info about its support." into oc-dev
-rw-r--r-- | ojluni/src/main/java/java/lang/SecurityManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ojluni/src/main/java/java/lang/SecurityManager.java b/ojluni/src/main/java/java/lang/SecurityManager.java index 64f2d5337c6..0cf702e517b 100644 --- a/ojluni/src/main/java/java/lang/SecurityManager.java +++ b/ojluni/src/main/java/java/lang/SecurityManager.java @@ -32,6 +32,12 @@ import java.net.InetAddress; /** * Legacy security code; do not use. + * + * <p>Security managers do <i>not</i> provide a secure environment for + * executing untrusted code and are unsupported on Android. Untrusted code + * cannot be safely isolated within a single VM on Android. Application + * developers can assume that there's no SecurityManager installed, + * i.e. {@link java.lang.System#getSecurityManager()} will return null. */ public class SecurityManager { |