diff options
| -rw-r--r-- | core/java/android/app/ActivityManager.java | 2 | ||||
| -rw-r--r-- | core/res/res/values/config.xml | 6 | ||||
| -rwxr-xr-x | core/res/res/values/symbols.xml | 1 |
3 files changed, 2 insertions, 7 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index c65f17e3251e..6ac2e80dce47 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -438,7 +438,7 @@ public class ActivityManager { /** @hide */ public static boolean isLowRamDeviceStatic() { - return Resources.getSystem().getBoolean(com.android.internal.R.bool.config_lowRamDevice); + return "true".equals(SystemProperties.get("ro.config.low_ram", "false")); } /** diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 400e89284444..4116998d1ffa 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -123,12 +123,8 @@ of them. This should not normally be modified. --> <bool name="config_closeDialogWhenTouchOutside">true</bool> - <!-- Device configuration indicating this is a device with limited RAM, so heavier-weight - features should be turned off. --> - <bool name="config_lowRamDevice">false</bool> - <!-- Device configuration indicating whether we should avoid using accelerated graphics - in certain places to reduce RAM footprint. This is ignored if config_lowRamDevice + in certain places to reduce RAM footprint. This is ignored if ro.config.low_ram is true (in that case this is assumed true as well). It can allow you to tune down your device's memory use without going to the point of causing applications to turn off features. --> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index ca93d1c67a98..076922faaa70 100755 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -252,7 +252,6 @@ <java-symbol type="bool" name="config_duplicate_port_omadm_wappush" /> <java-symbol type="bool" name="config_enable_emergency_call_while_sim_locked" /> <java-symbol type="bool" name="config_enable_puk_unlock_screen" /> - <java-symbol type="bool" name="config_lowRamDevice" /> <java-symbol type="bool" name="config_mms_content_disposition_support" /> <java-symbol type="bool" name="config_showMenuShortcutsWhenKeyboardPresent" /> <java-symbol type="bool" name="config_sip_wifi_only" /> |