From f7e72b3928aab1f5f7b86906264b7b60adc5d821 Mon Sep 17 00:00:00 2001 From: marc0601 <36824857+marc0601@users.noreply.github.com> Date: Sat, 22 Sep 2018 02:10:45 +0200 Subject: [PATCH] Add files via upload --- seEnforcing.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 seEnforcing.mk diff --git a/seEnforcing.mk b/seEnforcing.mk new file mode 100644 index 0000000..81d55d6 --- /dev/null +++ b/seEnforcing.mk @@ -0,0 +1,18 @@ +LOCAL_PATH := $(call my-dir) + +$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) + $(call pretty,"Target boot image: $@") + $(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ + @echo -e ${CL_CYN}"Made boot image: $@"${CL_RST} + +## Overload recoveryimg generation: Same as the original +$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \ + $(recovery_ramdisk) \ + $(recovery_kernel) + @echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST} + $(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ + @echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST} + @echo -e ${CL_GRN}"----- Lying about SEAndroid state to Samsung bootloader ------"${CL_RST} + $(hide) echo -n "SEANDROIDENFORCE" >> $(INSTALLED_RECOVERYIMAGE_TARGET) + $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) +