diff --git a/androguard/core/axml/__init__.py b/androguard/core/axml/__init__.py index 02f70342..63b35542 100644 --- a/androguard/core/axml/__init__.py +++ b/androguard/core/axml/__init__.py @@ -445,7 +445,7 @@ class AXMLParser: # The file can still be parsed up to the point where the chunk should end. self.axml_tampered = True logger.warning("Declared filesize ({}) is smaller than total file size ({}). " - "Was something appended to the file? Trying to parse it anyways.".format(self.filesize, self.buff.size())) + "Was something appended to the file? Trying to parse it anyways.".format(self.filesize, self.buff_size)) # Not that severe of an error, we have plenty files where this is not # set correctly @@ -1407,7 +1407,7 @@ class ARSCParser: self.buff_size = self.buff.raw.getbuffer().nbytes if self.buff_size < 8 or self.buff_size > 0xFFFFFFFF: - raise ResParserError("Invalid file size {} for a resources.arsc file!".format(self.buff.size())) + raise ResParserError("Invalid file size {} for a resources.arsc file!".format(self.buff_size)) self.analyzed = False self._resolved_strings = None diff --git a/androguard/core/dex/__init__.py b/androguard/core/dex/__init__.py index e9fbc0f7..9236c63d 100644 --- a/androguard/core/dex/__init__.py +++ b/androguard/core/dex/__init__.py @@ -8262,7 +8262,7 @@ class DEX: :rtype: a list with all strings used in the format (types, names ...) """ - return [i.get() for i in self.strings] + return [i.get() for i in self.strings] if self.strings is not None else [] def get_len_strings(self) -> int: """