Skip to content

Commit 6913e06

Browse files
committed
new file: assets/report/homepod.jpg
modified: ufade_gui.py
1 parent 733a1fd commit 6913e06

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

assets/report/homepod.jpg

30.1 KB
Loading

ufade_gui.py

+16-12
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def choose_cwd(self, outputbox):
618618
dir_top = f"{dir[:45]}..."
619619
else:
620620
dir_top = dir
621-
if d_class == "Watch" or d_class == "AppleTV":
621+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
622622
self.show_watch_menu()
623623
else:
624624
self.show_main_menu()
@@ -676,7 +676,7 @@ def show_save_device_info(self):
676676
text = text + "- app information"
677677
self.text = ctk.CTkLabel(self.dynamic_frame, width=420, height=200, font=self.stfont, text=text, anchor="w", justify="left")
678678
self.text.pack(pady=50)
679-
if d_class == "Watch" or d_class == "AppleTV":
679+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
680680
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=self.show_watch_menu).pack(pady=10)
681681
else:
682682
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=self.show_main_menu).pack(pady=10)
@@ -723,12 +723,12 @@ def show_collect_ul(self):
723723
self.wait_variable(self.waitul)
724724
self.progress.stop()
725725
self.progress.pack_forget()
726-
if d_class == "Watch" or d_class == "AppleTV":
726+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
727727
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=self.show_watch_menu).pack(pady=10)
728728
else:
729729
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("LogMenu")).pack(pady=10)
730730
else:
731-
if d_class == "Watch" or d_class == "AppleTV":
731+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
732732
self.show_watch_menu()
733733
else:
734734
self.switch_menu("LogMenu")
@@ -742,7 +742,7 @@ def show_capture_syslog(self):
742742
self.sysl = threading.Thread(target=lambda: self.capture_syslog(text=self.text, startb=self.startb, backb=self.backb))
743743
self.startb = ctk.CTkButton(self.dynamic_frame, text="Start", font=self.stfont, command=lambda: self.sysl.start())
744744
self.startb.pack(pady=20)
745-
if d_class == "Watch" or d_class == "AppleTV":
745+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
746746
self.backb = ctk.CTkButton(self.dynamic_frame, text="Back", font=self.stfont, command=self.show_watch_menu)
747747
self.backb.pack(pady=10)
748748
else:
@@ -776,7 +776,7 @@ def show_crash_report(self, cdir="Crash_Report", flow=False):
776776
self.prog_text.pack_forget()
777777
if flow == False:
778778
self.text.configure(text="Extraction of crash reports completed!")
779-
if d_class == "Watch" or d_class == "AppleTV":
779+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
780780
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=self.show_watch_menu).pack(pady=10)
781781
else:
782782
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("LogMenu")).pack(pady=10)
@@ -822,12 +822,12 @@ def show_sysdiag(self):
822822
self.diag = threading.Thread(target=lambda: self.sysdiag(self.text, self.progress, self.waitsys))
823823
self.diag.start()
824824
self.wait_variable(self.waitsys)
825-
if d_class == "Watch" or d_class == "AppleTV":
825+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
826826
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=self.show_watch_menu).pack(pady=10)
827827
else:
828828
ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("LogMenu")).pack(pady=10)
829829
else:
830-
if d_class == "Watch" or d_class == "AppleTV":
830+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
831831
self.show_watch_menu()
832832
else:
833833
self.switch_menu("LogMenu")
@@ -2012,7 +2012,7 @@ def show_media(self):
20122012
self.text.configure(text="AFC Extraction complete.")
20132013
self.prog_text.pack_forget()
20142014
self.progress.pack_forget()
2015-
if d_class == "Watch" or d_class == "AppleTV":
2015+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
20162016
self.after(100, lambda: ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("WatchMenu")).pack(pady=40))
20172017
else:
20182018
self.after(100, lambda: ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("AdvMenu")).pack(pady=40))
@@ -2430,6 +2430,8 @@ def watch_report(self, text, prog_text, progress, change, now, case_number="", c
24302430
os_type = "WatchOS"
24312431
elif d_class == "AppleTV":
24322432
os_type = "tvOS"
2433+
elif d_class == "AudioAccessory":
2434+
os_type = "audioOS"
24332435
metadata_device_info = ET.SubElement(project, 'metadata', {'section': 'Device Info'})
24342436
#me_dev_info = {'Serial Number': snr, 'Device Name': name, 'WiFi Address': w_mac, 'Model Number': hardware + ", Model:" + mnr, 'Bluetooth Address': b_mac, 'Device': dev_name, 'Time Zone': d_tz, 'Unique Identifier': udid}
24352437
me_dev_info = {'Device Name': name, 'Device': dev_name, 'Model Number': f'{hardware} , Model: {mnr}', 'MAC (WiFi Address)': w_mac, 'MAC (Bluetooth Address)': b_mac, 'Unique Identifier': udid, 'Unique Chip ID': ecid, 'Serial Number': snr, 'Disk Capacity': f'{disk} GB', 'Software': f'{os_type}: {dversion}', 'Buildnumber': build , 'Time Zone': d_tz,}
@@ -2798,7 +2800,7 @@ def show_pdf_report(self):
27982800
examiner = self.exambox.get()
27992801
self.pdf_report(case_number, case_name, evidence_number, examiner)
28002802
self.text.configure(text="PDF creation complete!", height=60)
2801-
if d_class == "Watch" or d_class == "AppleTV":
2803+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
28022804
self.after(100, lambda: ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("ReportMenu")).pack(pady=40))
28032805
else:
28042806
self.after(100, lambda: ctk.CTkButton(self.dynamic_frame, text="OK", font=self.stfont, command=lambda: self.switch_menu("iReportMenu")).pack(pady=40))
@@ -2865,6 +2867,8 @@ def pdf_report(self, case_number="", case_name="", evidence_number="", examiner=
28652867
d_image = os.path.join(os.path.dirname(__file__), "assets" , "report", "ipad.jpg")
28662868
elif d_class == "iPod":
28672869
d_image = os.path.join(os.path.dirname(__file__), "assets" , "report", "ipod.jpg")
2870+
elif d_class == "AudioAccessory":
2871+
d_image = os.path.join(os.path.dirname(__file__), "assets" , "report", "homepod.jpg")
28682872
else:
28692873
if product in ["iPhone" + nr for nr in hobude]:
28702874
d_image = os.path.join(os.path.dirname(__file__), "assets" , "report", "iphone2.jpg")
@@ -3892,7 +3896,7 @@ def media_export(l_type, dest="Media", archive=None, text=None, prog_text=None,
38923896
except:
38933897
pass
38943898

3895-
if d_class == "Watch" or d_class == "AppleTV":
3899+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
38963900
with open(f"afc_files_{udid}.json", "w") as file:
38973901
json.dump(filedict, file)
38983902
else:
@@ -4348,7 +4352,7 @@ def pull(self, relative_src, dst, callback=None, src_dir=''):
43484352
log(f"Error reading file: {src}")
43494353
readable = 0
43504354
if readable == 1:
4351-
if d_class == "Watch" or d_class == "AppleTV":
4355+
if d_class == "Watch" or d_class == "AppleTV" or d_class == "AudioAccessory":
43524356
textfiles = [".txt", ".doc", ".docx", ".odt"]
43534357
dbfiles = [".db", ".sqlite", ".realm", ".kgdb"]
43544358
configfiles = [".plist", ".xml"]

0 commit comments

Comments
 (0)