prebuilts: init: 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.

Change-Id: Icd2be51436fa13cc52748e6d03937d0cb2e713f1
Signed-off-by: Simao Gomes Viana <xdevs23@outlook.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Simao Gomes Viana 2019-08-04 19:18:25 +02:00 committed by Fazil Sheik
parent a1adb009e1
commit 8897c9fda5
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# Copyright (C) 2024 Paranoid Android
# SPDX-License-Identifier: Apache-2.0
on property:sys.boot_completed=1
chmod 440 /proc/net/unix

View File

@ -163,6 +163,10 @@ PRODUCT_PACKAGES += \
android.hidl.base@1.0.vendor \
android.hidl.manager@1.0.vendor
# Init
PRODUCT_COPY_FILES += \
vendor/aospa/prebuilts/etc/init.aospa.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/init.aospa.rc
# ART/Dex Debug
ART_BUILD_TARGET_NDEBUG := true
ART_BUILD_TARGET_DEBUG := false