sdm710-common: 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 <aswinas@pixysos.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Master <mhmdeveloperofficial@gmail.com>
Change-Id: I8f4c3ce55fe206786018ffba5e3301c52158a844
This commit is contained in:
srfarias 2021-04-23 01:37:54 +03:00 committed by CakesTwix
parent 843e14c5c3
commit a82e5132bb
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825

View file

@ -1092,3 +1092,8 @@ service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-servi
group system group system
priority -20 priority -20
disabled disabled
on property:sys.boot_completed=1
# Restrict permissions to socket file
# to hide Magisk & co.
chmod 440 /proc/net/unix