From c96721eaa98e4986c8bfef0afac366a51f2d3897 Mon Sep 17 00:00:00 2001 From: Dan Cashman Date: Thu, 28 Sep 2017 15:06:39 -0700 Subject: [PATCH] Include 26.0 compat file on system image. This file is necessary for using an mr1 system image in conjunction with an oc-dev vendor image. This is currently needed by GSI testing, for example. (cherry-pick of commit: 03596f28a484e8954c168ce5053e34d4a17dd396) Bug: 66358348 Test: File is included on system image. Change-Id: Ie694061d08acf17453feb596480e42974f8c714c --- Android.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Android.mk b/Android.mk index f702c9a52..227dfcec8 100644 --- a/Android.mk +++ b/Android.mk @@ -197,6 +197,7 @@ ifeq ($(PRODUCT_FULL_TREBLE),true) # Use split SELinux policy LOCAL_REQUIRED_MODULES += \ $(platform_mapping_file) \ + 26.0.cil \ nonplat_sepolicy.cil \ plat_sepolicy.cil \ plat_and_mapping_sepolicy.cil.sha256 \ @@ -412,6 +413,16 @@ current_mapping.cil := ################################# include $(CLEAR_VARS) +LOCAL_MODULE := 26.0.cil +LOCAL_SRC_FILES := private/compat/26.0/26.0.cil +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/selinux/mapping + +include $(BUILD_PREBUILT) +################################# +include $(CLEAR_VARS) + LOCAL_MODULE := plat_and_mapping_sepolicy.cil.sha256 LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_TAGS := optional