From 2a37e98631fff756f933222b6586258f2897999e Mon Sep 17 00:00:00 2001 From: hmtheboy154 Date: Sun, 30 Jan 2022 14:11:54 +0000 Subject: [PATCH] Prepare for Project Kokoro To integrate Magisk using Project Kokoro, we wil have to make sure the init.*.rc get the right file and also start to copy the files if ANDROID_INTEGRATE_MAGISK return true --- device.mk | 4 ++++ init.x86.rc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/device.mk b/device.mk index 494beb2..9c05876 100644 --- a/device.mk +++ b/device.mk @@ -212,6 +212,10 @@ $(call inherit-product-if-exists, vendor/opengapps/gapps.mk) endif +ifeq ($(ANDROID_INTEGRATE_MAGISK),true) +$(call inherit-product-if-exists, vendor/supremegamers/kokoro/kokoro.mk) +endif + # Boringdroid $(call inherit-product-if-exists, vendor/boringdroid/boringdroid.mk) diff --git a/init.x86.rc b/init.x86.rc index 9ee77a7..e24a1d9 100644 --- a/init.x86.rc +++ b/init.x86.rc @@ -1,4 +1,4 @@ -import /init.superuser.rc +import /init.kokoro.rc on early-init write /proc/sys/kernel/ctrl-alt-del 1 @@ -163,4 +163,4 @@ on property:persist.sys.nativebridge=0 stop nativebridge on property:sys.boot_completed=1 && property:vendor.thermal.enable=1 - start thermal-daemon \ No newline at end of file + start thermal-daemon