mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-11-28 19:30:33 -05:00
lowram tweaks
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
b660167e08
commit
d078b24ddb
10 changed files with 77 additions and 14 deletions
|
|
@ -18,15 +18,20 @@
|
|||
|
||||
# Set lowram options
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.security.exec_spawn=false \
|
||||
ro.config.low_ram=true \
|
||||
ro.lmk.critical_upgrade=true \
|
||||
ro.lmk.upgrade_pressure=40 \
|
||||
ro.lmk.downgrade_pressure=60 \
|
||||
ro.lmk.kill_heaviest_task=false \
|
||||
config.disable_atlas=true \
|
||||
dalvik.vm.madvise-random=true
|
||||
# dalvik.vm.heapgrowthlimit=128m \
|
||||
# dalvik.vm.heapsize=256m
|
||||
dalvik.vm.madvise-random=true \
|
||||
ro.statsd.enable=false \
|
||||
persist.traced.enable=0
|
||||
|
||||
# set threshold to filter unused apps
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
pm.dexopt.downgrade_after_inactive_days=10
|
||||
|
||||
# Speed profile services and wifi-service to reduce RAM and storage.
|
||||
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
||||
|
|
@ -35,10 +40,35 @@ PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
|||
# modules.
|
||||
PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true
|
||||
|
||||
# set the compiler filter for shared apks to quicken.
|
||||
# Rationale: speed has a lot of dex code expansion, it uses more ram and space
|
||||
# compared to quicken. Using quicken for shared APKs on Go devices may save RAM.
|
||||
# Note that this is a trade-off: here we trade clean pages for dirty pages,
|
||||
# extra cpu and battery. That's because the quicken files will be jit-ed in all
|
||||
# the processes that load of shared apk and the code cache is not shared.
|
||||
# Some notable apps that will be affected by this are gms and chrome.
|
||||
# b/65591595.
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
pm.dexopt.shared=quicken
|
||||
|
||||
# Default heap sizes. Allow up to 256m for large heaps to make sure a single app
|
||||
# doesn't take all of the RAM.
|
||||
#PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.heapgrowthlimit=128m
|
||||
#PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.heapsize=256m
|
||||
|
||||
# Do not generate libartd.
|
||||
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
|
||||
|
||||
# Do not spin up a separate process for the network stack on go devices, use an in-process APK.
|
||||
#PRODUCT_PACKAGES += InProcessNetworkStack
|
||||
#PRODUCT_PACKAGES += CellBroadcastAppPlatform
|
||||
#PRODUCT_PACKAGES += CellBroadcastServiceModulePlatform
|
||||
#PRODUCT_PACKAGES += com.android.tethering.inprocess
|
||||
|
||||
# Strip the local variable table and the local variable type table to reduce
|
||||
# the size of the system image. This has no bearing on stack traces, but will
|
||||
# leave less information available via JDWP.
|
||||
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
|
||||
|
||||
# Dedupe VNDK libraries with identical core variants.
|
||||
TARGET_VNDK_USE_CORE_VARIANT := true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue