2

Got success in uploading and download the Expansion files Apk external data, Android Expansion

but now I am facing CRC while unzipping my files.

Not getting exactly where the problem is, Google rename my files as .obb

Searching for workaround, if any?

Update

Complete explanation defined here Steps to create APK expansion file

Community
  • 1
  • 1
Mohammed Azharuddin Shaikh
  • 41,633
  • 14
  • 96
  • 115

2 Answers2

4

Fixed it, I just skip checking CRC32 algorithm and its working very fine.

Mohammed Azharuddin Shaikh
  • 41,633
  • 14
  • 96
  • 115
  • +1 Thanks for the info :) is that possible to tell where exactly we have to skip checking CRC32 algorithm? or explain bit more.. – LOG_TAG Jul 30 '12 at 10:13
  • 3
    see In doInBackGround() you will find `if (-1 != entry.mCRC32)`, just remove it. – Mohammed Azharuddin Shaikh Jul 30 '12 at 10:17
  • thanks for the quick reply @hotveryspicy :) I quickly fixed like you said "xapk File validation failed" for screen shot I uploaded five screen shot on g-code bug report http://goo.gl/6pjrk.. "xapk File validation failed" comes for crc error?? sorry man I'm a beginner :( – LOG_TAG Jul 30 '12 at 13:27
  • please answer in this post http://stackoverflow.com/questions/11723814/xapk-file-validation-failed-in-sample-code-of-android-apk-expansion-files – LOG_TAG Jul 30 '12 at 14:44
  • It appears that CRC check fails when you use compression on your Zip file. You can use 7-Zip manager and set _Compression Level_ to _Store_ and CRC check will succeed. – Sam R. Oct 28 '12 at 12:39
1

I suspect you are having the same problem as this question. In brief, the sample code doesn't work for compressed zip files.

Community
  • 1
  • 1
rho21
  • 86
  • 1
  • 6