-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem_prop.mk
116 lines (100 loc) · 3.46 KB
/
system_prop.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Blurs
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.surface_flinger.supports_background_blur=1
ro.sf.blurs_are_expensive=1 \
persist.sys.sf.disable_blurs=1
# Camera
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera,com.google.camera,org.pixelexperience.faceunlock \
vendor.camera.aux.packageblacklist=org.telegram.messenger,com.microsoft.teams,com.discord
# Dex2oat
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
dalvik.vm.dex2oat64.enabled=true \
dalvik.vm.image-dex2oat-filter=quicken \
dalvik.vm.image-dex2oat-threads=8 \
dalvik.vm.image-dex2oat-cpu-set=0,1,2,3,4,5,6,7 \
dalvik.vm.dex2oat-filter=quicken \
dalvik.vm.dex2oat-threads=8 \
dalvik.vm.dex2oat-cpu-set=0,1,2,3,4,5,6,7 \
dalvik.vm.boot-dex2oat-threads=8 \
dalvik.vm.boot-dex2oat-cpu-set=0,1,2,3,4,5,6,7
# Iorap
PRODUCT_PROPERTY_OVERRIDES += \
iorapd.perfetto.enable=true \
iorapd.readahead.enable=true
# Display
PRODUCT_PRODUCT_PROPERTIES += \
ro.sf.lcd_density=320
# Hardware Acceleration
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
video.accelerate.hw=1 \
debug.sf.hw=1 \
debug.performance.tuning=1 \
debug.egl.profiler=1 \
debug.egl.hw=1 \
debug.composition.type=gpu
# IMS
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.dbg.volte_avail_ovr=1 \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1
# LMKD
PRODUCT_PRODUCT_PROPERTIES += \
ro.lmk.psi_complete_stall_ms=150 \
ro.lmk.swap_free_low_percentage=20 \
ro.lmk.kill_timeout_ms=100
# NFC
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.sys.nfc.disPowerSave=1 \
persist.sys.nfc.default=on \
persist.sys.nfc.aid_overflow=true \
ro.product.cuptsm=OPPO|ESE|01|02 \
persist.sys.nfc.antenna_area=bottom
# OMX
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
debug.stagefright.omx_default_rank.sw-audio=1 \
debug.stagefright.omx_default_rank=0 \
debug.stagefright.ccodec=0
# Performance
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.mtk_perf_simple_start_win=1 \
ro.mtk_perf_fast_start_win=1 \
ro.mtk_perf_response_time=1
# Privapp permissions whitelisting
PRODUCT_PRODUCT_PROPERTIES += \
ro.control_privapp_permissions=log
# Surfaceflinger
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
debug.sf.latch_unsignaled=1 \
ro.surface_flinger.has_HDR_display=true \
ro.surface_flinger.has_wide_color_display=true \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3 \
ro.surface_flinger.running_without_sync_framework=true \
ro.surface_flinger.vsync_event_phase_offset_ns=2000000 \
ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000 \
debug.sf.enable_hwc_vds=0
# ZRAM
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.zram.mark_idle_delay_mins=60 \
ro.zram.first_wb_delay_mins=180 \
ro.zram.periodic_wb_delay_hours=24
# Tweak the memory management of the device, enable more background apps.. etc..
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.fha_enable=true \
ro.sys.fw.bg_apps_limit=32 \
ro.config.dha_cached_max=16 \
ro.config.dha_empty_max=42 \
ro.config.dha_empty_init=32 \
ro.config.dha_lmk_scale=0.545 \
ro.config.dha_th_rate=2.3 \
ro.config.sdha_apps_bg_max=64 \
ro.config.sdha_apps_bg_min=8
# GBoard
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.ime.kb_pad_port_b=1 \
ro.com.google.ime.corner_key_r=35
# WFD
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.wfd.nohdcp=1 \
persist.debug.wfd.enable=1 \
persist.sys.wfd.virtual=0