It is not possible to reenable Superuser when non embedded. su will reject.
Change-Id: If440d9d758c21c61a2d7c0bef132eb716b494c5d
LOCAL_CFLAGS += -DREQUESTOR_PREFIX=\"$(SUPERUSER_PACKAGE_PREFIX)\"
endif
+ifdef SUPERUSER_EMBEDDED
+ LOCAL_CFLAGS += -DSUPERUSER_EMBEDDED
+endif
+
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
include $(BUILD_EXECUTABLE)
* Find the properties ourselves.
*/
int access_disabled(const struct su_initiator *from) {
+#ifndef SUPERUSER_EMBEDDED
+ return 0;
+#else
char *data;
char build_type[PROPERTY_VALUE_MAX];
char debuggable[PROPERTY_VALUE_MAX], enabled[PROPERTY_VALUE_MAX];
}
return 0;
+#endif
}
static int is_api_18() {