From 13e4bed7dbfc5d785f774539021cf428ca851601 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 5 Feb 2009 11:58:27 -0800 Subject: [PATCH] AAPT needs a buffer larger than 1 MB on the host to decode resources.arsc from SDK/android.jar. This leaves the asset unzip buffer to 1 MB on the device and 2 MB on the host. --- include/utils/Asset.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/utils/Asset.h b/include/utils/Asset.h index d8351f57c..453a2049a 100644 --- a/include/utils/Asset.h +++ b/include/utils/Asset.h @@ -62,7 +62,11 @@ public: enum { /* data larger than this does not get uncompressed into a buffer */ +#ifdef HAVE_ANDROID_OS UNCOMPRESS_DATA_MAX = 1 * 1024 * 1024 +#else + UNCOMPRESS_DATA_MAX = 2 * 1024 * 1024 +#endif }; /*