Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adélie Linux
apkkit
Commits
71460077
Commit
71460077
authored
Oct 18, 2015
by
A. Wilcox
🦊
Browse files
APKFile: apk-tools uses sha256 for datahash, and sha1 for signature
parent
8d661287
Changes
1
Hide whitespace changes
Inline
Side-by-side
apkkit/io/apkfile.py
View file @
71460077
...
...
@@ -178,7 +178,7 @@ class APKFile:
@
classmethod
def
create
(
cls
,
package
,
datadir
,
sign
=
True
,
signfile
=
None
,
data_hash
=
True
,
hash_method
=
'sha
1
'
):
hash_method
=
'sha
256
'
):
"""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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment