summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
authorKra1o5 <kra1o5x@gmail.com>2015-04-23 21:46:36 +0200
committerKra1o5 <kra1o5x@gmail.com>2015-04-23 21:49:57 +0200
commitde50c5f5528930b31aa7981d8891370d6ea4e77e (patch)
tree5f046d5ba3cd4df0e5b6a6ba6b205bcf68657f93 /minuitwrp
parenttwrpTar: fix segfault after encrypted backups (diff)
downloadandroid_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.tar
android_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.tar.gz
android_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.tar.bz2
android_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.tar.lz
android_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.tar.xz
android_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.tar.zst
android_bootable_recovery-de50c5f5528930b31aa7981d8891370d6ea4e77e.zip
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/Android.mk4
-rw-r--r--minuitwrp/graphics_overlay.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index c9749eb16..f42974413 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -26,6 +26,10 @@ else
LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minuitwrp/include
endif
+ifeq ($(TW_NEW_ION_HEAP), true)
+ LOCAL_CFLAGS += -DNEW_ION_HEAP
+endif
+
LOCAL_C_INCLUDES += \
external/libpng \
external/zlib \
diff --git a/minuitwrp/graphics_overlay.c b/minuitwrp/graphics_overlay.c
index 05c5472dc..61d9ecf47 100644
--- a/minuitwrp/graphics_overlay.c
+++ b/minuitwrp/graphics_overlay.c
@@ -158,7 +158,11 @@ int alloc_ion_mem(unsigned int size)
ionAllocData.flags = 0;
ionAllocData.len = size;
ionAllocData.align = sysconf(_SC_PAGESIZE);
+#ifdef NEW_ION_HEAP
+ ionAllocData.heap_id_mask =
+#else
ionAllocData.heap_mask =
+#endif
ION_HEAP(ION_IOMMU_HEAP_ID) |
ION_HEAP(ION_SYSTEM_CONTIG_HEAP_ID);