summaryrefslogtreecommitdiffstats
path: root/gui/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-07-21 22:24:39 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-07-28 15:50:59 +0200
commit780cd39e422943f7c46be84de5494ae7045e1a5e (patch)
tree0ed259ee9c6e5f2106fae19fd4013281a98f1e09 /gui/Android.mk
parentOnly disable recovery flash if it is truly "stock" recovery (diff)
downloadandroid_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.gz
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.bz2
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.lz
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.xz
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.zst
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.zip
Diffstat (limited to '')
-rw-r--r--gui/Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/Android.mk b/gui/Android.mk
index d8edead88..fa40e0fae 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -93,9 +93,15 @@ LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res
TWRP_RES_LOC := $(commands_recovery_local_path)/gui/devices/common/res
+TWRP_COMMON_XML := $(hide) echo "No common TWRP XML resources"
ifeq ($(TW_CUSTOM_THEME),)
TWRP_THEME_LOC := $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION)/res
+ ifneq ($(filter $(DEVICE_RESOLUTION), 320x480 480x800 480x854 540x960 720x1280 800x1280 1080x1920 1200x1920 1600x2560),)
+ TWRP_COMMON_XML := cp -fr $(commands_recovery_local_path)/gui/devices/portrait/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
+ else ifneq ($(filter $(DEVICE_RESOLUTION), 800x480 1024x600 1024x768 1280x800 1920x1200 2560x1600),)
+ TWRP_COMMON_XML := cp -fr $(commands_recovery_local_path)/gui/devices/landscape/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
+ endif
else
TWRP_THEME_LOC := $(TW_CUSTOM_THEME)
endif
@@ -110,6 +116,7 @@ $(TWRP_RES_GEN):
mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res/
cp -fr $(TWRP_RES_LOC)/* $(TARGET_RECOVERY_ROOT_OUT)/res/
cp -fr $(TWRP_THEME_LOC)/* $(TARGET_RECOVERY_ROOT_OUT)/res/
+ $(TWRP_COMMON_XML)
mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/
ln -sf $(TWRP_SH_TARGET) $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh
ln -sf /sbin/pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip