Skip to content

Commit

Permalink
fix incorrectly printing that partitions were not found
Browse files Browse the repository at this point in the history
bump to 0.2.1
  • Loading branch information
nnsee committed Dec 21, 2021
1 parent ebf2474 commit 7a32146
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions payload_dumper/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,19 @@ def run(self):
partitions = []
for image in self.images.split(","):
image = image.strip()
found = False
for dam_part in self.dam.partitions:
if dam_part.partition_name == image:
partitions.append(dam_part)
found = True
break
if not found:
print("Partition %s not found in image" % image)

if len(partitions) == 0:
print("Not operating on any partitions")
return 0

partitions_with_ops = []
for partition in partitions:
operations = []
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "payload_dumper"
version = "0.2.0"
version = "0.2.1"
description = "Dump partitions from Android's payload.bin"
authors = ["Rasmus Moorats <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 7a32146

Please sign in to comment.