Skip to content

Encountered a problem when analyzing MIUIEmail.apk #77

Open
@HoratioShaw

Description

I encountered a problem when analyzing MIUIEmail.apk. The error message is as follows:Traceback (most recent call last):

File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyaxmlparser\core.py", line 440, in _get_permission_maxsdk
maxSdkVersion = int(self.get_value_from_tag(item, "maxSdkVersion"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '@7F0B003A'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Scripts\apkinfo.exe_main
.py", line 7, in
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyaxmlparser\cli.py", line 31, in main
apk = APK(filename)
^^^^^^^^^^^^^
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyaxmlparser\core.py", line 310, in init
self._apk_analysis()
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyaxmlparser\core.py", line 366, in _apk_analysis
self._get_permission_maxsdk(uses_permission)
File "C:\Users\Horatio\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyaxmlparser\core.py", line 442, in _get_permission_maxsdk
log.warning(self.get_max_sdk_version() + 'is not a valid value for maxSdkVersion')
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

How to deal with it?

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