29 #ifndef __APKZipArchive_H__ 30 #define __APKZipArchive_H__ 34 #include <android/asset_manager.h> 53 if (apkName.size() > 0 && apkName[0] ==
'/')
54 apkName.erase(apkName.begin());
56 AAsset* asset = AAssetManager_open(mAssetMgr, apkName.c_str(), AASSET_MODE_BUFFER);
static void addEmbbeddedFile(const String &name, const uint8 *fileData, size_t fileSize, DecryptEmbeddedZipFileFunc decryptFunc)
Add an embedded file to the embedded file list.
const String & getType(void) const
Returns the factory type.
Specialisation of ZipArchiveFactory for embedded Zip files.
Archive * createInstance(const String &name, bool readOnly)
Creates a new object.
AAssetManager * mAssetMgr
APKZipArchiveFactory(AAssetManager *assetMgr)
static zzip_plugin_io_handlers * mPluginIo
A static pointer to file io alternative implementation for the embedded files.
Specialisation of the Archive class to allow reading of files from a zip format source archive...
virtual ~APKZipArchiveFactory()