Skip to content

Commit

Permalink
resourse map never found :O
Browse files Browse the repository at this point in the history
  • Loading branch information
erev0s committed Jul 8, 2024
1 parent de1d49b commit a13e754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apkInspector/axml.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def parse(cls, file):
break
file.seek(cur_pos)
file.read(1)
if file.getbuffer().nbytes < file.tell() + 8:
raise ValueError("Resource Map header was not detected.")
string_pool_end = file.tell()
file.seek(string_pool_start)
string_pool_data = file.read(string_pool_end - string_pool_start)
Expand Down

0 comments on commit a13e754

Please sign in to comment.