axolotl-shiftos: enforce priv-app permissions
Change-Id: I2ec464c7f07dc718cc86cb3a96251308ac311a96
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/axolotl.mk b/axolotl.mk
index 5b9c0b8..ce8053c 100644
--- a/axolotl.mk
+++ b/axolotl.mk
@@ -40,6 +40,13 @@
# Build super partition
PRODUCT_BUILD_SUPER_PARTITION := true
+# Enforce priv-app permissions
+ifeq ($(TARGET_BUILD_VARIANT),eng)
+PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=log
+else
+PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
+endif
+
# GMS
ifeq ($(WITH_64_BIT_ONLY),false)
GMS_MAKEFILE := gms_eea_v2_type4c.mk