From 0ced2d3486399371a2748b1d7ec54114b5ef277c Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 27 Sep 2020 20:00:44 +0200 Subject: [PATCH] Fix dynamic ro.sf.lcd_density being ignored On Qualcomm devices, ro.sf.lcd_density is set by a shell script in /vendor, which will be called after surfaceflinger is started. Thus surfaceflinger won't read any value, and will consider the default value which is 213. To fix this, restart surfaceflinger when ro.sf.lcd_density is changed. --- vndk.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vndk.rc b/vndk.rc index 4d7d91f..06fe22c 100644 --- a/vndk.rc +++ b/vndk.rc @@ -44,3 +44,5 @@ on property:persist.sys.phh.caf.audio_policy=* on property:persist.sys.phh.vsmart.dt2w=* exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.vsmart.dt2w" +on property:ro.sf.lcd_density=* + restart surfacecflinger