Move to shared libmincrypt

Remove mincrypt source from TWRP and add rule to make
libmincrypt as a shared library.
No more crashes during zip signature verification and
less code to maintain in TWRP.
This commit is contained in:
Dees_Troy
2012-09-14 14:34:26 -04:00
parent 38bd760b58
commit b9d88acdc0
8 changed files with 19 additions and 791 deletions
+11
View File
@@ -0,0 +1,11 @@
# This provides a rule to make libmincrypt as a shared library.
# As a static library, zip signature verification was crashing.
# Making it as a shared library seems to fix that issue.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS:= eng
LOCAL_MODULE := libmincrypt
LOCAL_SRC_FILES := ../../../system/core/libmincrypt/rsa.c ../../../system/core/libmincrypt/sha.c
include $(BUILD_SHARED_LIBRARY)