DivestOS/Patches/OLD/bacon/Device-CM-12.1/1.patch
2016-12-21 19:30:02 -05:00

211 lines
6.8 KiB
Diff

From 7a1726f94f5f65d5967e3480ef7668f7cfa90685 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Wed, 28 Oct 2015 09:39:52 -0400
Subject: [PATCH] Basic Changes
---
bacon.mk | 4 +-
phone-xxhdpi-3072-dalvik-heap.mk | 25 ++++++++++
phone-xxhdpi-3072-hwui-memory.mk | 30 +++++++++++
system.prop | 104 +++++++++++++++++++++++++++++++++++++++
4 files changed, 161 insertions(+), 2 deletions(-)
create mode 100644 phone-xxhdpi-3072-dalvik-heap.mk
create mode 100644 phone-xxhdpi-3072-hwui-memory.mk
diff --git a/bacon.mk b/bacon.mk
index 8297699..0e9227a 100644
--- a/bacon.mk
+++ b/bacon.mk
@@ -106,8 +106,8 @@ PRODUCT_PACKAGES += \
charger_res_images
# Dalvik/HWUI
-$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
-$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
+$(call inherit-product-if-exists, device/oneplus/bacon/phone-xxhdpi-3072-dalvik-heap.mk)
+$(call inherit-product-if-exists, device/oneplus/bacon/phone-xxhdpi-3072-hwui-memory.mk)
# Display
PRODUCT_AAPT_CONFIG := normal
diff --git a/phone-xxhdpi-3072-dalvik-heap.mk b/phone-xxhdpi-3072-dalvik-heap.mk
new file mode 100644
index 0000000..a585268
--- /dev/null
+++ b/phone-xxhdpi-3072-dalvik-heap.mk
@@ -0,0 +1,25 @@
+#
+# Copyright (C) 2014 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Provides overrides to configure the Dalvik heap for a 3G phone
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ dalvik.vm.heapstartsize=24m \
+ dalvik.vm.heapgrowthlimit=320m \
+ dalvik.vm.heapsize=768m \
+ dalvik.vm.heaptargetutilization=0.75 \
+ dalvik.vm.heapminfree=2m \
+ dalvik.vm.heapmaxfree=8m
\ No newline at end of file
diff --git a/phone-xxhdpi-3072-hwui-memory.mk b/phone-xxhdpi-3072-hwui-memory.mk
new file mode 100644
index 0000000..9eff929
--- /dev/null
+++ b/phone-xxhdpi-3072-hwui-memory.mk
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2014 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Provides overrides to configure the HWUI memory limits
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.hwui.texture_cache_size=96 \
+ ro.hwui.layer_cache_size=64 \
+ ro.hwui.r_buffer_cache_size=12 \
+ ro.hwui.path_cache_size=39 \
+ ro.hwui.gradient_cache_size=1 \
+ ro.hwui.drop_shadow_cache_size=7 \
+ ro.hwui.texture_cache_flushrate=0.4 \
+ ro.hwui.text_small_cache_width=2048 \
+ ro.hwui.text_small_cache_height=2048 \
+ ro.hwui.text_large_cache_width=3072 \
+ ro.hwui.text_large_cache_height=2048
\ No newline at end of file
diff --git a/system.prop b/system.prop
index 8e0027b..110521f 100644
--- a/system.prop
+++ b/system.prop
@@ -23,3 +23,107 @@ ro.gps.agps_provider=1
# cabl is handled by the panel
ro.qualcomm.cabl=0
+
+# enable lazy dexopt
+persist.sys.lazy.dexopt=true
+
+# performance/battery tweaks
+windowsmgr.max_events_per_sec=90
+ro.max.fling_velocity=15000
+ro.min.fling_velocity=8000
+ro.min_pointer_dur=8
+touch.pressure.scale=0.01
+debugtool.anrhistory=0
+profiler.debugmonitor=false
+profiler.launch=false
+profiler.hung.dumpdobugreport=false
+ro.config.htc.nocheckin=1
+ro.config.nocheckin=1
+ro.kernel.android.checkjni=0
+ro.kernel.checkjni=0
+ro.telephony.call_ring.delay=0
+ring.delay=0
+ro.config.combined_signal=true
+net.ipv4.ip_no_pmtu_disc=0
+net.ipv4.route.flush=1
+net.ipv4.tcp_ecn=0
+net.ipv4.tcp_fack=1
+net.ipv4.tcp_mem=187000 187000 187000
+net.ipv4.tcp_moderate_rcvbuf=1
+net.ipv4.tcp_no_metrics_save=1
+net.ipv4.tcp_rfc1337=1
+net.ipv4.tcp_rmem=4096 39000 187000
+net.ipv4.tcp_sack=1
+net.ipv4.tcp_timestamps=1
+net.ipv4.tcp_wmem=4096 39000 18700
+wifi.supplicant_scan_interval=300
+net.ipv4.tcp_window_scaling=1
+ro.ril.hsxpa=3
+ro.ril.gprsclass=10
+ro.ril.hep=1
+ro.ril.hsdpa.category=12
+ro.ril.enable.3g.prefix=1
+ro.ril.htcmaskw1.bitmask=4294967295
+ro.ril.htcmaskw1=14449
+ro.ril.hsupa.category=7
+ro.ril.hsdpa.category=10
+ro.ril.set.mtu1472=1
+persist.cust.tel.eons=1
+persist.data_netmgrd_mtu=1482
+persist.data_netmgrd_nint=8
+ro.use_data_netmgrd=true
+ro.ril.enable.dtm=1
+ro.ril.def.agps.mode=2
+ro.ril.def.agps.feature=1
+ro.ril.enable.gea3=1
+ro.ril.enable.fd.plmn.prefix=23402,23410,23411
+net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
+net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
+net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
+net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
+net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960
+net.tcp.buffersize.hspa=6144,87380,524288,6144,163 84,262144
+net.tcp.buffersize.lte=524288,1048576,2097152,5242 88,1048576,2097152
+net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,8 7380,1048576
+net.tcp.buffersize.evdo_b=6144,87380,1048576,6144, 87380,1048576
+ro.ril.enable.amr.wideband=1
+profiler.force_disable_err_rpt=1
+profiler.force_disable_ulog=1
+debug.composition.type=gpu
+debug.egl.hw=1
+debug.enabletr=true
+debug.overlayui.enable=1
+debug.performance.tuning=1
+debug.sf.hw=1
+dev.pm.dyn_samplingrate=1
+hw3d.force=1
+ro.config.disable.hw_accel=false
+ro.fb.mode=1
+ro.sf.compbypass.enable=0
+ro.vold.umsdirtyratio=20
+persist.sys.composition.type=c2d
+persist.sys.ui.hw=1
+video.accelerate.hw=1
+persist.sys.use_16bpp_alpha=1
+debug.gr.swapinterval=0
+com.qc.hardware=1
+debug.qc.hardware=true
+debug.qctwa.preservebuf=1
+debug.qctwa.statusbar=1
+pm.sleep_mode=1
+ro.ril.disable.power.collapse=0
+profiler.force_disable_err_rpt=1
+profiler.force_disable_ulog=1
+dalvik.vm.checkjni=false
+dalvik.vm.execution-mode=int:jit
+ro.ril.power_collapse=1
+power_supply.wakeup=enable
+ro.mot.eri.losalert.delay=1000
+ro.config.hw_fast_dormancy=1
+ro.config.hw_power_saving=1
+ro.camcorder.videoModes=true
+ime_extend_row_keyboard=true
+ime_onehand_keyboard=true
+ime_split_keyboard=true
+ime_vibration_pattern=0:60
+dalvik.vm.verify-bytecode=false