Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-nunes committed May 16, 2023
1 parent c9fd778 commit b334271
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions acquisitionGUI.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#!/usr/bin/python

# Author: Fabian Nunes
# Acquisition tool to get the private folder application folder from and Android application in a rooted device or
# emulator, script based on the work of @mfrade and is bash implementation
# This is the GUI version of the script and was made using PySimpleGUI
# Example: python acquisitionGUI.py
# Attention in case of module not found error in Windows, install the module with pip install PySimpleGUI

import PySimpleGUI as sg
import modules.find_packages as f_packages
import modules.adb_acquistion as adb_acquistion
Expand All @@ -14,11 +23,11 @@
DATA = ''
folder = ''


# Callback function to update the output
def update_output(text):
window['-OUTPUT-'].print(text)


# Thread function that will occur in the background to extract the data
def extract_thread():
if APP == '':
sg.popup_error('Select a package')
Expand Down Expand Up @@ -71,6 +80,7 @@ def extract_thread():

# Layout with the list of packages installed on the device

# Layout with the list of packages installed on the device
packages_layout = [
[sg.Text('Packages Installed', size=(15, 1))],
[sg.Listbox(values=packages, size=(300, 10), font=("Helvetica", 14), key='-PACKAGES-', enable_events=True)],
Expand All @@ -80,12 +90,13 @@ def extract_thread():
]
]

# Layout with the output of the script
output_layout = [
[sg.Text('Output', size=(15, 1))],
[sg.Output(size=(300, 10), font=("Helvetica", 14), key='-OUTPUT-')],
]

# Layout
# Main layout
layout = [
[
sg.Push(),
Expand All @@ -104,7 +115,7 @@ def extract_thread():
[
sg.Column(packages_layout, size=(300, 300), vertical_scroll_only=True),
sg.VSeperator(),
sg.Column(output_layout, size=(400, 300), vertical_scroll_only=True),
sg.Column(output_layout, size=(300, 300), vertical_scroll_only=True),
],
[sg.VerticalSeparator(pad=((0, 0), (10, 10)))],
[
Expand Down

0 comments on commit b334271

Please sign in to comment.