Skip to content

Script fails with error: "TypeError: character mapping must return integer, None or unicode" #17

@MSohm

Description

@MSohm

Environment:
Windows 10
OpenSSL 1.0.2h
JDK 1.8.0_101
Python: 2.7.4 & 3.5.2
Android SDK Build Tools 24.0.1

APK used for testing was generated using the BasicMultiTouch sample found here: https://github.com/googlesamples/android-BasicMultitouch

Here is the full output:

C:\Users\msohm\Downloads>python externallyhosted.py --apk=BasicMultitouchSample-release.apk --externallyHostedUrl="removed"
Traceback (most recent call last):
File "externallyhosted.py", line 411, in
main()
File "externallyhosted.py", line 406, in main
CreateJson(args.apk_file_name, args.externally_hosted_url).parse(),
File "externallyhosted.py", line 380, in parse
apk_properties.update(parser.parse())
File "externallyhosted.py", line 312, in parse
jar_zip.extractall(path=temp_dir, members=manifest_files)
File "C:\Python27\lib\zipfile.py", line 1036, in extractall
self.extract(zipinfo, path, pwd)
File "C:\Python27\lib\zipfile.py", line 1024, in extract
return self._extract_member(member, path, pwd)
File "C:\Python27\lib\zipfile.py", line 1057, in _extract_member
arcname = arcname.translate(table)
TypeError: character mapping must return integer, None or unicode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions