androlyze.storage.apk package¶
Submodules¶
androlyze.storage.apk.ApkCopyInterface module¶
-
class
androlyze.storage.apk.ApkCopyInterface.
ApkCopyInterface
[source]¶ Interface for copying an .apk
Methods
-
copy_apk
(apk, file_like_obj, copy2fs=False, copy2db=False, **kwargs)[source]¶ Parameters: apk: Apk
Holds meta information needed to create the subdirectory names.
file_like_obj
A file-like object which holds the .apk data
copy2fs : bool, optional (default is False)
If true, copy to file system.
copy2db : bool, optional (default is False)
If true, copy to mongodb.
Returns: Can optionally return some path, storage information.
Raises: StorageException
-
get_apk
(_hash, apk=None, **kwargs)[source]¶ Get the EAndroApk from _hash.
Parameters: _hash : str
Hash of the .apk
apk : Apk, optional (default is None)
Some storage servies may need additional information from the apk. E.g. a FastApk carrying only the metainformation.
Returns: EAndroApk
Apk constructed from raw data and meta infos.
Raises: StorageException
-