android_device_samsung_a20/universal7885-common/rootdir/etc/init.target.rc
roynatech2544 c7b6d4e7b5
universal7885: 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.

226e285aa6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:39:26 +09:00

16 lines
488 B
Text

on init
# Reactivation Lock
symlink /dev/block/platform/13500000.dwmmc0/by-name/steady /dev/block/steady
# Google FRP solution
symlink /dev/block/platform/13500000.dwmmc0/by-name/persistent /dev/block/persistent
on boot
# Permissions for NAD
symlink /dev/block/platform/13500000.dwmmc0/by-name/nad_refer /dev/block/nad_refer
on property:sys.boot_completed=1
# Restrict permissions to socket file
# to hide Magisk & co.
chmod 440 /proc/net/unix