sm7250-common: rootdir: Hide Magisk Better

* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
This commit is contained in:
xdevs23
2021-06-18 08:55:16 +05:30
committed by Sandeep-FED
parent 798b78c656
commit cc422f3fab

View File

@@ -504,6 +504,9 @@ on property:sys.boot_completed=1
chown media audio /sys/kernel/wcd_cpe0/fw_name
#Reinit lmkd to reconfigure lmkd properties
setprop lmkd.reinit 1
# Restrict permissions to socket file
# to hide Magisk & co.
chmod 440 /proc/net/unix
on property:persist.vendor.radio.atfwd.start=false
stop vendor.atfwd