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.
This commit is contained in:
parent
c302d25ba5
commit
c57a990c78
1 changed files with 5 additions and 0 deletions
|
@ -195,3 +195,8 @@ on property:init.svc.vendor.hwcomposer-2-3=restarting
|
||||||
on charger
|
on charger
|
||||||
setprop sys.usb.configfs 1
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue