mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-06-05 11:57:17 +09:00
Introduce 'SafailNet'
This commit is contained in:
parent
9c80fbd334
commit
76189fe02f
@ -199,7 +199,8 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/rootdir/etc/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.rc \
|
$(LOCAL_PATH)/rootdir/etc/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.rc \
|
||||||
$(LOCAL_PATH)/rootdir/etc/init.qcom.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.usb.rc \
|
$(LOCAL_PATH)/rootdir/etc/init.qcom.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.usb.rc \
|
||||||
$(LOCAL_PATH)/rootdir/etc/init.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.target.rc
|
$(LOCAL_PATH)/rootdir/etc/init.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.target.rc \
|
||||||
|
$(LOCAL_PATH)/rootdir/etc/init.safailnet.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.safailnet.rc
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/rootdir/bin/init.qcom.post_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh \
|
$(LOCAL_PATH)/rootdir/bin/init.qcom.post_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh \
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
import /vendor/etc/init/hw/init.qcom.usb.rc
|
import /vendor/etc/init/hw/init.qcom.usb.rc
|
||||||
import /vendor/etc/init/hw/init.target.rc
|
import /vendor/etc/init/hw/init.target.rc
|
||||||
import /vendor/etc/init/hw/init.device.rc
|
import /vendor/etc/init/hw/init.device.rc
|
||||||
|
import /vendor/etc/init/hw/init.safailnet.rc
|
||||||
|
|
||||||
on early-init
|
on early-init
|
||||||
mount debugfs debugfs /sys/kernel/debug
|
mount debugfs debugfs /sys/kernel/debug
|
||||||
|
8
rootdir/etc/init.safailnet.rc
Normal file
8
rootdir/etc/init.safailnet.rc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Safetynet bypass
|
||||||
|
# Inspired in magisk source code, by topjohnwu
|
||||||
|
# Ported to ramdisk by jhenrique09
|
||||||
|
|
||||||
|
on boot
|
||||||
|
# selinux nodes, hide permissive state
|
||||||
|
chmod 0640 /sys/fs/selinux/enforce
|
||||||
|
chmod 0440 /sys/fs/selinux/policy
|
Loading…
x
Reference in New Issue
Block a user