Fixed variable name

This commit is contained in:
Nex 2022-01-30 04:12:19 +01:00
parent 001c2998a5
commit c48a4e8f50
1 changed files with 5 additions and 5 deletions

View File

@ -23,12 +23,12 @@ class DumpsysFull(AndroidExtraction):
def run(self):
self._adb_connect()
stats = self._adb_command("dumpsys")
output = self._adb_command("dumpsys")
if self.output_folder:
stats_path = os.path.join(self.output_folder, "dumpsys.txt")
with open(stats_path, "w", encoding="utf-8") as handle:
handle.write(stats)
output_path = os.path.join(self.output_folder, "dumpsys.txt")
with open(output_path, "w", encoding="utf-8") as handle:
handle.write(output)
log.info("Full dumpsys output stored at %s", stats_path)
log.info("Full dumpsys output stored at %s", output_path)
self._adb_disconnect()