FP2-1752: add SU for applications to user debug
Only build if FP2_USE_APPOPS_SU is set to true.
FPIIM-648
Change-Id: I29325fb2e6fe8c9aff066fb59e1d4f13037bc76b
diff --git a/Android.mk b/Android.mk
index 03eb915..9579bac 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,11 +1,13 @@
# Root AOSP source makefile
# su is built here, and
+ifeq ($(FP2_USE_APPOPS_SU), true)
+
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := su
-LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_TAGS := debug
LOCAL_WHOLE_STATIC_LIBRARIES := libcutils libutils libbinder liblog
LOCAL_SRC_FILES := su.c daemon.c utils.c pts.c
LOCAL_SRC_FILES += binder/appops-wrapper.cpp binder/pm-wrapper.c
@@ -32,3 +34,4 @@
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
$(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS) $(SUPERUSER_RC)
+endif