diff options
author | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-18 11:20:13 -0500 |
---|---|---|
committer | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-18 11:20:13 -0500 |
commit | 71460077be9781bf373c9290edcdcd1e2359f834 (patch) | |
tree | 8bb9923ba2dac34dcc9c368b996fe269e677d0c8 | |
parent | 8d661287e5d18b252d1cd5ab4b95931344228ca3 (diff) | |
download | apkkit-71460077be9781bf373c9290edcdcd1e2359f834.tar.gz apkkit-71460077be9781bf373c9290edcdcd1e2359f834.tar.bz2 apkkit-71460077be9781bf373c9290edcdcd1e2359f834.tar.xz apkkit-71460077be9781bf373c9290edcdcd1e2359f834.zip |
APKFile: apk-tools uses sha256 for datahash, and sha1 for signature
-rw-r--r-- | apkkit/io/apkfile.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apkkit/io/apkfile.py b/apkkit/io/apkfile.py index 9e713b7..aa7cb2d 100644 --- a/apkkit/io/apkfile.py +++ b/apkkit/io/apkfile.py @@ -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) |