OBB file is not Extract Error: "XAPK file verification error"

I have successfully implemented the apk extension and the OBB file downloaded in Storage-> Android-> Obb-> PackageName-> main.1.com.packagename.obb

But when I go to the extraction, I get the question: "Not a Zip archive."

ZipResourceFile zrf = new ZipResourceFile (file_name);

public ZipResourceFile(String zipFileName) throws IOException { addPatchFile(zipFileName); } void addPatchFile(String zipFileName) throws IOException { File file = new File(zipFileName); RandomAccessFile f = new RandomAccessFile(file, "r"); long fileLength = f.length(); if (fileLength < kEOCDLen) { throw new java.io.IOException(); } long readAmount = kMaxEOCDSearch; if (readAmount > fileLength) readAmount = fileLength; /* * Make sure this is a Zip archive. */ f.seek(0); int header = read4LE(f); if (header == kEOCDSignature) { Log.i(LOG_TAG, "Found Zip archive, but it looks empty"); throw new IOException(); } else if (header != kLFHSignature) { Log.v(LOG_TAG, "Not a Zip archive"); throw new IOException(); } 

enter image description here

+5
source share
1 answer

I got a solution in 2 days

the only problem is that -

File

.obb creates the wrong direction

Step to create an obb file
-All resources are stored in one folder.
-Close this folder
-one rename .obb to .zip file

Happy with this decision

+3
source

All Articles