[Magisk] jens13:
Hi, I have the same problem, but my device is unencrypted.

My findings is that setprop has no effect on read-only props in post-fs.sh , not only for ro.sf.lcd_density. In post-fs-data.sh it works fine but not for read-only props.

For me setting density with "wm density 460" works for most apps.

Setup:

- Nexus 6 MOB31E with kernel ElementalX-N6-3.19

- Magisk V6, phh SuperUser 17 and Magisk Xposed v86.5

Here is part of a log cat that shows my post-fs.sh in /cache/magisk/shamu has been called.

--------- beginning of main

03-30 23:06:31.306 253 253 W auditd : type=2000 audit(0.0:1): initialized

03-30 23:06:33.677 266 266 I Magisk : Magisk post-fs mode running...

03-30 23:06:33.697 271 271 I Magisk : post-fs: /cache/magisk/shamu/post-fs.sh

03-30 23:06:34.292 279 279 I /system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.

--------- beginning of system

03-30 23:06:34.319 278 278 I vold : Vold 3.0 (the awakening) firing up

03-30 23:06:34.319 278 278 V vold : Detected support for: ext4 f2fs vfat

03-30 23:06:34.582 289 289 I Magisk : Magisk post-fs-data mode running...

03-30 23:06:34.648 278 290 D vold : Disk at 7:0 changed

03-30 23:06:34.982 321 321 I Magisk : Preparing bind mounts

03-30 23:06:35.003 328 328 I Magisk : Bind mount dummy system

03-30 23:06:35.015 331 331 I Magisk : Bind mount module items

03-30 23:06:35.027 334 334 I Magisk : Bind mount system mirror

03-30 23:06:35.037 336 336 I Magisk : Mount: /system

03-30 23:06:35.046 337 337 I Magisk : Bind mount mirror items

03-30 23:06:35.065 345 345 I Magisk : post-fs-data: /magisk/shamu/post-fs-data.sh

03-30 23:06:35.344 350 350 I Magisk : post-fs-data: /magisk/xposed/post-fs-data.sh

03-30 23:06:35.364 355 355 I Xposed : Mount: /magisk/xposed/system/bin/app_process32

03-30 23:06:35.375 357 357 I Xposed : Mount: /magisk/xposed/system/bin/dex2oat

03-30 23:06:35.386 359 359 I Xposed : Mount: /magisk/xposed/system/bin/oatdump

03-30 23:06:35.397 361 361 I Xposed : Mount: /magisk/xposed/system/bin/patchoat

03-30 23:06:35.412 363 363 I Xposed : Mount: /magisk/xposed/system/lib/libart.so

03-30 23:06:35.423 365 365 I Xposed : Mount: /magisk/xposed/system/lib/libart-compiler.so

03-30 23:06:35.434 367 367 I Xposed : Mount: /magisk/xposed/system/lib/libart-disassembler.so

03-30 23:06:35.445 369 369 I Xposed : Mount: /magisk/xposed/system/lib/libsigchain.so

03-30 23:06:35.458 370 370 I Magisk : Enabling systemless hosts file support

03-30 23:06:35.469 372 372 I Magisk : Mount: /magisk/.core/hosts

Here is the last_magisk.log

Magisk post-fs mode running...

post-fs: /cache/magisk/shamu/post-fs.sh

Magisk post-fs-data mode running...

Preparing bind mounts

Bind mount dummy system

Bind mount module items

Bind mount system mirror

Mount: /system

Bind mount mirror items

post-fs-data: /magisk/shamu/post-fs-data.sh

post-fs-data: /magisk/xposed/post-fs-data.sh

Xposed: Mount: /magisk/xposed/system/bin/app_process32

Xposed: Mount: /magisk/xposed/system/bin/dex2oat

Xposed: Mount: /magisk/xposed/system/bin/oatdump

Xposed: Mount: /magisk/xposed/system/bin/patchoat

Xposed: Mount: /magisk/xposed/system/lib/libart.so

Xposed: Mount: /magisk/xposed/system/lib/libart-compiler.so

Xposed: Mount: /magisk/xposed/system/lib/libart-disassembler.so

Xposed: Mount: /magisk/xposed/system/lib/libsigchain.so

Enabling systemless hosts file support

Mount: /magisk/.core/hosts

Magisk late_start service mode running...

service: /magisk/phh/service.sh

service: /magisk/xposed/service.sh

Mounting root

Mount: /magisk/phh/xbin

Xposed: Lazy unmount app_process