mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
b6575a362e
Signed-off-by: Tad <tad@spotco.us>
93 lines
3.0 KiB
Diff
93 lines
3.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Wed, 11 Jul 2018 13:54:10 -0400
|
|
Subject: [PATCH] Performance tweaks from @AndDiSa
|
|
|
|
Change-Id: I87e7b700b3caf713e98bcfdc74613da23139db70
|
|
---
|
|
BoardConfigCommon.mk | 3 +++
|
|
device.mk | 3 ++-
|
|
.../base/core/res/res/values/config.xml | 7 +++++
|
|
system.prop | 27 ++++++++++++++++---
|
|
4 files changed, 36 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
|
|
index f402c86..c84be43 100644
|
|
--- a/BoardConfigCommon.mk
|
|
+++ b/BoardConfigCommon.mk
|
|
@@ -20,6 +20,9 @@ TARGET_ARCH := arm
|
|
TARGET_ARCH_VARIANT := armv7-a-neon
|
|
TARGET_CPU_VARIANT := cortex-a9
|
|
|
|
+BOARD_EGL_WORKAROUND_BUG_10194508 := true
|
|
+NEED_WORKAROUND_CORTEX_A9_745320 := true
|
|
+
|
|
TARGET_BOOTLOADER_BOARD_NAME := grouper
|
|
|
|
# Filesystem
|
|
diff --git a/device.mk b/device.mk
|
|
index 33c1fc9..8d8c65a 100644
|
|
--- a/device.mk
|
|
+++ b/device.mk
|
|
@@ -24,7 +24,8 @@ PRODUCT_COPY_FILES += \
|
|
device/asus/grouper/rootdir/init.grouper.sensors.rc:root/init.grouper.sensors.rc
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
- ro.carrier=wifi-only
|
|
+ ro.carrier=wifi-only \
|
|
+ ro.radio.noril=true
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
device/asus/grouper/overlay
|
|
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
|
|
index d28e4fb..c9ec73a 100644
|
|
--- a/overlay/frameworks/base/core/res/res/values/config.xml
|
|
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
|
|
@@ -219,4 +219,11 @@
|
|
<!-- Enable doze powersaving -->
|
|
<bool name="config_enableAutoPowerModes">true</bool>
|
|
|
|
+ <!-- Set lowmemorykiller threshold -->
|
|
+ <integer name="config_lowMemoryKillerMinFreeKbytesAbsolute">-1</integer>
|
|
+ <integer name="config_lowMemoryKillerMinFreeKbytesAdjust">0</integer>
|
|
+
|
|
+ <!-- Whether to enable HumanInteractionController by default -->
|
|
+ <bool name="config_HICEnabledDefault">false</bool>
|
|
+
|
|
</resources>
|
|
diff --git a/system.prop b/system.prop
|
|
index b1d9807..1b1daa5 100644
|
|
--- a/system.prop
|
|
+++ b/system.prop
|
|
@@ -12,6 +12,27 @@ ro.sf.lcd_density=213
|
|
# Wi-Fi
|
|
wifi.interface=wlan0
|
|
|
|
-# Configure PRISM, but disable it by default
|
|
-persist.tegra.didim.video=5
|
|
-persist.tegra.didim.enable=0
|
|
+# configure PRISM
|
|
+persist.tegra.didim.video = 5
|
|
+persist.tegra.didim.enable = 1
|
|
+persist.tegra.didim.normal = 3
|
|
+
|
|
+# don't preload OpenGL in Zygote, the Tegra drivers do not like it
|
|
+ro.zygote.disable_gl_preload=true
|
|
+
|
|
+#perf tweaks
|
|
+dalvik.vm.dex2oat-flags=--no-watch-dog
|
|
+dalvik.vm.dex2oat-swap=true
|
|
+debug.hwui.render_dirty_regions=false
|
|
+persist.sys.scrollingcache=1
|
|
+persist.sys.use_16bpp_alpha=1
|
|
+pm.sleep_mode=1
|
|
+ro.config.hw_power_saving=true
|
|
+ro.config.max_starting_bg=8
|
|
+ro.ril.disable.power.collapse=0
|
|
+ro.sys.fw.bg_apps_limit=12
|
|
+ro.sys.fw.dex2oat_thread_count=4
|
|
+ro.sys.fw.trim_cache_percent=70
|
|
+ro.sys.fw.trim_empty_percent=70
|
|
+ro.sys.fw.use_trim_settings=true
|
|
+dalvik.vm.madvise-random=true
|