Build libsqlite.so only with magisk

Fix #1175
This commit is contained in:
topjohnwu 2019-03-07 05:21:27 -05:00
parent c699f30831
commit 915b49014f

View File

@ -1,5 +1,7 @@
LOCAL_PATH := $(call my-dir)
ifdef B_MAGISK
# libsqlite.so (stub)
include $(CLEAR_VARS)
LOCAL_MODULE:= libsqlite
@ -7,6 +9,8 @@ LOCAL_C_INCLUDES := $(EXT_PATH)/include
LOCAL_SRC_FILES := stubs/sqlite3_stub.c
include $(BUILD_SHARED_LIBRARY)
endif
# libselinux.so (stub)
#include $(CLEAR_VARS)
#LOCAL_MODULE:= libselinux