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);
AAssetManager * mAssetMgr
virtual ~APKZipArchiveFactory()
Specialisation of the Archive class to allow reading of files from a zip format source archive...
APKZipArchiveFactory(AAssetManager *assetMgr)
Archive * createInstance(const String &name, bool readOnly)
Creates a new object.
Specialisation of ZipArchiveFactory for embedded Zip files.
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.
static zzip_plugin_io_handlers * mPluginIo
A static pointer to file io alternative implementation for the embedded files.