From 4631e662f0237a03ab19867a26e455e6796850bb Mon Sep 17 00:00:00 2001 From: xdevs23 Date: Sat, 4 Jun 2022 11:19:43 +0530 Subject: [PATCH] avicii: add nodes to hide Magisk in banking apps 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: aswin7469 Signed-off-by: firebird11 Change-Id: I8f4c3ce55fe206786018ffba5e3301c52158a844 Signed-off-by: firebird11 Signed-off-by: Sandeep-FED --- init/init.qcom.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init/init.qcom.rc b/init/init.qcom.rc index 15fd07a..285902e 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -917,3 +917,8 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service ioprio rt 4 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks onrestart restart audioserver + +on property:sys.boot_completed=1 + # Restrict permissions to socket file + # to hide Magisk & co. + chmod 440 /proc/net/unix