Android - CCFileUtils::getFileDataFromZip returns null for file in expansion file

I have packaged assets in an expansion file and now having difficulty reading from the .obb (expansion) file. Here’s a simplified version of what I’m trying to achieve:

unsigned char * pData = 0; unsigned long pSize; pData = CCFileUtils::sharedFileUtils()->getFileDataFromZip("/mnt/sdcard/Android/obb/com.example.game/main.1.com.example.game.obb", "loading_screen_sheet.png", &pSize);

Upon investigating, it seems unzOpenInternal in unzip.h is returning an error when trying to open the .obb file. I’ve enabled read write permission on external storage in the AndroidManifest.xml. I am using cocos2d-2.1rc0-x-2.1.2.

Your help would be most appreciated!

Hey, could you resolve the issue? I’m asking since I’m suffering from the same thing, I have to be able to load the assets from the obb package before friday, and I’m trying to investigate every single opportunity to make that happen. Thanks a lot in advance.

Any update on this?