From cc422f3fabc11d5b2fcdde60150f68fb06fc867d Mon Sep 17 00:00:00 2001 From: xdevs23 Date: Fri, 18 Jun 2021 08:55:16 +0530 Subject: [PATCH] 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 --- rootdir/etc/init.qcom.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 599a7c8..f3f9065 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -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