From c57a990c78987ff1c6249a281776d890c9a1b6a3 Mon Sep 17 00:00:00 2001 From: srfarias Date: Fri, 23 Apr 2021 01:37:54 +0300 Subject: [PATCH] sdm710-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. --- rootdir/etc/init.target.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index b360f90..7b1c368 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -195,3 +195,8 @@ on property:init.svc.vendor.hwcomposer-2-3=restarting on charger setprop sys.usb.configfs 1 +on property:sys.boot_completed=1 + # Restrict permissions to socket file + # to hide Magisk & co. + chmod 440 /proc/net/unix +