Search code examples
androidc++apkkindle-firelibzip

APK Assets not loaded on Kindle Fire HD


I have developed an App for the Amazon Kindle Fire HD. While distributing I got a report from amazon that its not running on almost all Kindle devices and a blackscreen is displayed. They send me a logcat log file and I found out that it's not possible to load some assets directly from APK file (accessing via C++, zlib and libzip).

Everything is running fine if I start it via Eclipse.

Any idea whats going wrong? Thanks!

Update:

I found out that this is related to zip_open(). This call fails and returns ZIP_ER_INCONS


Solution

  • I encountered exactly this problem with newer versions of lib zip. Amazon must do something to the APK which causes lib zip to think it is corrupt.

    I solved the issue by using an older version of the lib zip available here:

    https://github.com/julienr/libzip-android