From 71460077be9781bf373c9290edcdcd1e2359f834 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Sun, 18 Oct 2015 11:20:13 -0500 Subject: APKFile: apk-tools uses sha256 for datahash, and sha1 for signature --- apkkit/io/apkfile.py | 5 ++--- 1 file 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) -- cgit v1.2.3-70-g09d2