[Magisk] Didgeridoohan:
[MENTION=4470081]topjohnwu[/MENTION] I had a problem-solving conversation with [MENTION=1162986]Captain_Throwback[/MENTION] yesterday about setprop ro.sf.lcd_density in post-fs.sh not working properly.

After a lot of back and forth we concluded it should work but didn't. Then, suddenly, out of the blue it started working after a few reboots and flashing of the system image (other tinkering demanded it).

Now, I flashed the BetterBatteryStats module from the Module Collection thread and upon rebooting the phone, lcd_density stopped working again. Tried removing the BBS-module, but it made no difference and it was probably the reboot that was the culprit rather than the module.

Tried once again flashing system.img, boot.img, clearing cache and recreating the script, flashing magisk again, rebooting. Nothing...

To reiterate: I'm running a Nexus 6 with stock 6.0.1, september update (MOB31E), custom kernel (FK r51) and Magisk v6 with phh's v17 and Xposed 86.5.

And just for good measure here's the latest magisk.log:

Magisk post-fs mode running...

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

Magisk post-fs-data mode running...

Preparing bind mounts

Bind mount dummy system

Mount: /magisk/.core/dummy/system/priv-app

Mount: /magisk/.core/dummy/system/bin

Bind mount module items

Mount: /magisk/BBS/system/priv-app/com.asksven.betterbatterystats_xdaedition.apk

Mount: /magisk/busybox/system/bin/busybox

Bind mount system mirror

Mount: /system

Bind mount mirror items

Mount: /magisk/.core/mirror/system/priv-app/AppDirectedSMSProxy

Mount: /magisk/.core/mirror/system/priv-app/BackupRestoreConfirmation

Mount: /magisk/.core/mirror/system/priv-app/BuaContactAdapter

Mount: /magisk/.core/mirror/system/priv-app/CNEService

Mount: /magisk/.core/mirror/system/priv-app/CQATest

Mount: /magisk/.core/mirror/system/priv-app/CalendarProvider

Mount: /magisk/.core/mirror/system/priv-app/CallLogBackup

Mount: /magisk/.core/mirror/system/priv-app/CarrierConfig

Mount: /magisk/.core/mirror/system/priv-app/CellBroadcastReceiver

Mount: /magisk/.core/mirror/system/priv-app/ConfigUpdater

Mount: /magisk/.core/mirror/system/priv-app/ConnMO

Mount: /magisk/.core/mirror/system/priv-app/ContactsProvider

Mount: /magisk/.core/mirror/system/priv-app/DCMO

Mount: /magisk/.core/mirror/system/priv-app/DMService

Mount: /magisk/.core/mirror/system/priv-app/DefaultContainerService

Mount: /magisk/.core/mirror/system/priv-app/DiagMon

Mount: /magisk/.core/mirror/system/priv-app/DownloadProvider

Mount: /magisk/.core/mirror/system/priv-app/Entitlement

Mount: /magisk/.core/mirror/system/priv-app/ExternalStorageProvider

Mount: /magisk/.core/mirror/system/priv-app/FusedLocation

Mount: /magisk/.core/mirror/system/priv-app/GCS

Mount: /magisk/.core/mirror/system/priv-app/GoogleBackupTransport

Mount: /magisk/.core/mirror/system/priv-app/GoogleContacts

Mount: /magisk/.core/mirror/system/priv-app/GoogleDialer

Mount: /magisk/.core/mirror/system/priv-app/GoogleFeedback

Mount: /magisk/.core/mirror/system/priv-app/GoogleLoginService

Mount: /magisk/.core/mirror/system/priv-app/GoogleOneTimeInitializer

Mount: /magisk/.core/mirror/system/priv-app/GooglePackageInstaller

Mount: /magisk/.core/mirror/system/priv-app/GooglePartnerSetup

Mount: /magisk/.core/mirror/system/priv-app/GoogleServicesFramework

Mount: /magisk/.core/mirror/system/priv-app/InputDevices

Mount: /magisk/.core/mirror/system/priv-app/Launcher2

Mount: /magisk/.core/mirror/system/priv-app/LifetimeData

Mount: /magisk/.core/mirror/system/priv-app/ManagedProvisioning

Mount: /magisk/.core/mirror/system/priv-app/MediaProvider

Mount: /magisk/.core/mirror/system/priv-app/MmsService

Mount: /magisk/.core/mirror/system/priv-app/MotoSignatureApp

Mount: /magisk/.core/mirror/system/priv-app/MusicFX

Mount: /magisk/.core/mirror/system/priv-app/Phonesky

Mount: /magisk/.core/mirror/system/priv-app/PrebuiltGmsCore

Mount: /magisk/.core/mirror/system/priv-app/ProxyHandler

Mount: /magisk/.core/mirror/system/priv-app/Settings

Mount: /magisk/.core/mirror/system/priv-app/SettingsProvider

Mount: /magisk/.core/mirror/system/priv-app/SetupWizard

Mount: /magisk/.core/mirror/system/priv-app/SharedStorageBackup

Mount: /magisk/.core/mirror/system/priv-app/Shell

Mount: /magisk/.core/mirror/system/priv-app/SprintDM

Mount: /magisk/.core/mirror/system/priv-app/StatementService

Mount: /magisk/.core/mirror/system/priv-app/SystemUI

Mount: /magisk/.core/mirror/system/priv-app/TagGoogle

Mount: /magisk/.core/mirror/system/priv-app/TeleService

Mount: /magisk/.core/mirror/system/priv-app/Telecom

Mount: /magisk/.core/mirror/system/priv-app/TelephonyProvider

Mount: /magisk/.core/mirror/system/priv-app/TriggerEnroll

Mount: /magisk/.core/mirror/system/priv-app/TriggerTrainingService

Mount: /magisk/.core/mirror/system/priv-app/VZWAPNService

Mount: /magisk/.core/mirror/system/priv-app/Velvet

Mount: /magisk/.core/mirror/system/priv-app/VpnDialogs

Mount: /magisk/.core/mirror/system/priv-app/WallpaperCropper

Mount: /magisk/.core/mirror/system/bin/ATFWD-daemon

Mount: /magisk/.core/mirror/system/bin/adspd

Mount: /magisk/.core/mirror/system/bin/am

Mount: /magisk/.core/mirror/system/bin/applypatch

Mount: /magisk/.core/mirror/system/bin/appops

Mount: /magisk/.core/mirror/system/bin/appwidget

Mount: /magisk/.core/mirror/system/bin/atrace

Mount: /magisk/.core/mirror/system/bin/bcc

Mount: /magisk/.core/mirror/system/bin/bdAddrLoader

Mount: /magisk/.core/mirror/system/bin/blkid

Mount: /magisk/.core/mirror/system/bin/bmgr

Mount: /magisk/.core/mirror/system/bin/bootanimation

Mount: /magisk/.core/mirror/system/bin/bridgemgrd

Mount: /magisk/.core/mirror/system/bin/bu

Mount: /magisk/.core/mirror/system/bin/bugreport

Mount: /magisk/.core/mirror/system/bin/clatd

Mount: /magisk/.core/mirror/system/bin/cnd

Mount: /magisk/.core/mirror/system/bin/content

Mount: /magisk/.core/mirror/system/bin/dalvikvm32

Mount: /magisk/.core/mirror/system/bin/debuggerd

Mount: /magisk/.core/mirror/system/bin/dex2oat

Mount: /magisk/.core/mirror/system/bin/dhcpcd

Mount: /magisk/.core/mirror/system/bin/diag_klog

Mount: /magisk/.core/mirror/system/bin/diag_mdlog

Mount: /magisk/.core/mirror/system/bin/dnsmasq

Mount: /magisk/.core/mirror/system/bin/dpm

Mount: /magisk/.core/mirror/system/bin/drmserver

Mount: /magisk/.core/mirror/system/bin/dumpstate

Mount: /magisk/.core/mirror/system/bin/dumpsys

Mount: /magisk/.core/mirror/system/bin/e2fsck

Mount: /magisk/.core/mirror/system/bin/fsck.f2fs

Mount: /magisk/.core/mirror/system/bin/fsck_msdos

Mount: /magisk/.core/mirror/system/bin/gatekeeperd

Mount: /magisk/.core/mirror/system/bin/grep

Mount: /magisk/.core/mirror/system/bin/gzip

Mount: /magisk/.core/mirror/system/bin/hid

Mount: /magisk/.core/mirror/system/bin/hostapd

Mount: /magisk/.core/mirror/system/bin/idmap

Mount: /magisk/.core/mirror/system/bin/ime

Mount: /magisk/.core/mirror/system/bin/imsdatadaemon

Mount: /magisk/.core/mirror/system/bin/imsqmidaemon

Mount: /magisk/.core/mirror/system/bin/init.mmi.touch.sh

Mount: /magisk/.core/mirror/system/bin/input

Mount: /magisk/.core/mirror/system/bin/install-recovery.sh

Mount: /magisk/.core/mirror/system/bin/installd

Mount: /magisk/.core/mirror/system/bin/ip

Mount: /magisk/.core/mirror/system/bin/ip6tables

Mount: /magisk/.core/mirror/system/bin/iptables

Mount: /magisk/.core/mirror/system/bin/irsc_util

Mount: /magisk/.core/mirror/system/bin/keystore

Mount: /magisk/.core/mirror/system/bin/ks

Mount: /magisk/.core/mirror/system/bin/ld.mc

Mount: /magisk/.core/mirror/system/bin/lmkd

Mount: /magisk/.core/mirror/system/bin/logcat

Mount: /magisk/.core/mirror/system/bin/logd

Mount: /magisk/.core/mirror/system/bin/logwrapper

Mount: /magisk/.core/mirror/system/bin/make_ext4fs

Mount: /magisk/.core/mirror/system/bin/make_f2fs

Mount: /magisk/.core/mirror/system/bin/mdm_helper

Mount: /magisk/.core/mirror/system/bin/mdm_helper_proxy

Mount: /magisk/.core/mirror/system/bin/mdnsd

Mount: /magisk/.core/mirror/system/bin/media

Mount: /magisk/.core/mirror/system/bin/mediaserver

Mount: /magisk/.core/mirror/system/bin/mm-jpeg-interface-test

Mount: /magisk/.core/mirror/system/bin/mm-qcamera-app

Mount: /magisk/.core/mirror/system/bin/mm-qcamera-daemon

Mount: /magisk/.core/mirror/system/bin/monkey

Mount: /magisk/.core/mirror/system/bin/mpdecision

Mount: /magisk/.core/mirror/system/bin/mtpd

Mount: /magisk/.core/mirror/system/bin/ndc

Mount: /magisk/.core/mirror/system/bin/netd

Mount: /magisk/.core/mirror/system/bin/netmgrd

Mount: /magisk/.core/mirror/system/bin/oatdump

Mount: /magisk/.core/mirror/system/bin/patchoat

Mount: /magisk/.core/mirror/system/bin/ping

Mount: /magisk/.core/mirror/system/bin/ping6

Mount: /magisk/.core/mirror/system/bin/pm

Mount: /magisk/.core/mirror/system/bin/port-bridge

Mount: /magisk/.core/mirror/system/bin/pppd

Mount: /magisk/.core/mirror/system/bin/qmi_motext_hook

Mount: /magisk/.core/mirror/system/bin/qmuxd

Mount: /magisk/.core/mirror/system/bin/qseecomd

Mount: /magisk/.core/mirror/system/bin/racoon

Mount: /magisk/.core/mirror/system/bin/radish

Mount: /magisk/.core/mirror/system/bin/reboot

Mount: /magisk/.core/mirror/system/bin/requestsync

Mount: /magisk/.core/mirror/system/bin/resize2fs

Mount: /magisk/.core/mirror/system/bin/rild

Mount: /magisk/.core/mirror/system/bin/run-as

Mount: /magisk/.core/mirror/system/bin/schedtest

Mount: /magisk/.core/mirror/system/bin/screencap

Mount: /magisk/.core/mirror/system/bin/screenrecord

Mount: /magisk/.core/mirror/system/bin/sdcard

Mount: /magisk/.core/mirror/system/bin/secdiscard

Mount: /magisk/.core/mirror/system/bin/sensors.qcom

Mount: /magisk/.core/mirror/system/bin/sensorservice

Mount: /magisk/.core/mirror/system/bin/service

Mount: /magisk/.core/mirror/system/bin/servicemanager

Mount: /magisk/.core/mirror/system/bin/settings

Mount: /magisk/.core/mirror/system/bin/sgdisk

Mount: /magisk/.core/mirror/system/bin/sh

Mount: /magisk/.core/mirror/system/bin/sm

Mount: /magisk/.core/mirror/system/bin/surfaceflinger

Mount: /magisk/.core/mirror/system/bin/svc

Mount: /magisk/.core/mirror/system/bin/tc

Mount: /magisk/.core/mirror/system/bin/tcmd_mini

Mount: /magisk/.core/mirror/system/bin/telecom

Mount: /magisk/.core/mirror/system/bin/thermal-engine

Mount: /magisk/.core/mirror/system/bin/time_daemon

Mount: /magisk/.core/mirror/system/bin/tzdatacheck

Mount: /magisk/.core/mirror/system/bin/uiautomator

Mount: /magisk/.core/mirror/system/bin/uncrypt

Mount: /magisk/.core/mirror/system/bin/usbhub

Mount: /magisk/.core/mirror/system/bin/usbhub_init

Mount: /magisk/.core/mirror/system/bin/vdc

Mount: /magisk/.core/mirror/system/bin/vold

Mount: /magisk/.core/mirror/system/bin/wm

Mount: /magisk/.core/mirror/system/bin/wpa_supplicant

post-fs-data: /magisk/BBS/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/BBS/service.sh

service: /magisk/phh/service.sh

service: /magisk/xposed/service.sh

Mounting root

Mount: /magisk/phh/xbin

Xposed: Lazy unmount app_process