diff options
Diffstat (limited to 'gui/Android.mk')
-rw-r--r-- | gui/Android.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/Android.mk b/gui/Android.mk index 3f97ca7eb..b514e5be1 100644 --- a/gui/Android.mk +++ b/gui/Android.mk @@ -173,8 +173,10 @@ $(TWRP_RES_GEN): cp -fr $(TWRP_THEME_LOC)/* $(TARGET_RECOVERY_ROOT_OUT)$(TWRES_PATH) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/ ifneq ($(TW_USE_TOOLBOX), true) +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0) ln -sf $(TWRP_SH_TARGET) $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh endif +endif ln -sf /sbin/pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip ln -sf /sbin/unpigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gunzip |