Commit 71460077 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

APKFile: apk-tools uses sha256 for datahash, and sha1 for signature

parent 8d661287
......@@ -178,7 +178,7 @@ class APKFile:
@classmethod
def create(cls, package, datadir, sign=True, signfile=None, data_hash=True,
hash_method='sha1'):
hash_method='sha256'):
"""Create an APK file in memory from a package and data directory.
:param package:
......@@ -197,8 +197,7 @@ class APKFile:
Whether to hash the data (default True).
:param str hash_method:
The hash method to use for hashing the data - default is sha1 to
maintain compatibility with upstream apk-tools.
The hash method to use for hashing the data - default is sha256.
"""
LOGGER.info('Creating APK from data in: %s', datadir)
package.size = recursive_size(datadir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment