summaryrefslogtreecommitdiff
path: root/android/os/SystemProperties.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/os/SystemProperties.java')
-rw-r--r--android/os/SystemProperties.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/os/SystemProperties.java b/android/os/SystemProperties.java
index 84111fbf..560b4b31 100644
--- a/android/os/SystemProperties.java
+++ b/android/os/SystemProperties.java
@@ -84,6 +84,9 @@ public class SystemProperties {
/**
* Get the String value for the given {@code key}.
*
+ * <b>WARNING:</b> Do not use this method if the value may not be a valid UTF string! This
+ * method will crash in native code.
+ *
* @param key the key to lookup
* @return an empty string if the {@code key} isn't found
*/
@@ -96,6 +99,9 @@ public class SystemProperties {
/**
* Get the String value for the given {@code key}.
*
+ * <b>WARNING:</b> Do not use this method if the value may not be a valid UTF string! This
+ * method will crash in native code.
+ *
* @param key the key to lookup
* @param def the default value in case the property is not set or empty
* @return if the {@code key} isn't found, return {@code def} if it isn't null, or an empty