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.
This commit is contained in:
Pierre-Hugues Husson 2020-09-27 20:00:44 +02:00
parent e08b947cc2
commit 0ced2d3486
1 changed files with 2 additions and 0 deletions

View File

@ -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