summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2017-03-16 05:40:47 +0000
committer android-build-merger <android-build-merger@google.com> 2017-03-16 05:40:47 +0000
commit40c4210f8f8510ac12fd61530a1ee2f9e84af7f5 (patch)
tree37a48d50599f36d80da469de7434e19866ec7502
parenta98cefc55c7971f6ca16635a3d50c6f25173e1d9 (diff)
parentef9c4254166203099929c96689775970846e3859 (diff)
Merge "Restore SystemProperties.PROP_NAME_MAX to keep Kindle running."
am: ef9c425416 Change-Id: I0ea94267a6d6cfa137e77edde288632d04a71bcd
-rw-r--r--core/java/android/os/SystemProperties.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/os/SystemProperties.java b/core/java/android/os/SystemProperties.java
index 2bf3c2c7b489..c52091779126 100644
--- a/core/java/android/os/SystemProperties.java
+++ b/core/java/android/os/SystemProperties.java
@@ -35,6 +35,12 @@ public class SystemProperties {
private static final String TAG = "SystemProperties";
private static final boolean TRACK_KEY_ACCESS = false;
+ /**
+ * Android O removed the property name length limit, but com.amazon.kindle 7.8.1.5
+ * uses reflection to read this whenever text is selected (http://b/36095274).
+ */
+ public static final int PROP_NAME_MAX = Integer.MAX_VALUE;
+
public static final int PROP_VALUE_MAX = 91;
private static final ArrayList<Runnable> sChangeCallbacks = new ArrayList<Runnable>();