Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiimh1 committed Nov 3, 2019
1 parent 62d2309 commit ed1c8bd
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ windows/SupportFiles/ideviceinfo.exe
windows/SupportFiles/ideviceenterrecovery.exe
windows/SupportFiles/futurerestore.exe
windows/SupportFiles/tsschecker.exe
macOS/build/SaveMe/xref-SaveMe.html
macOS/build/SaveMe/warn-SaveMe.txt
macOS/build/SaveMe/PYZ-00.toc
macOS/build/SaveMe/PYZ-00.pyz
macOS/build/SaveMe/PKG-00.toc
macOS/build/SaveMe/PKG-00.pkg
macOS/build/SaveMe/EXE-00.toc
macOS/build/SaveMe/base_library.zip
macOS/build/SaveMe/Analysis-00.toc
macOS/__pycache__/SaveMe.cpython-37.pyc
13 changes: 8 additions & 5 deletions macOS/SaveMe.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@
input('[*] Press ENTER when Device is connected > ')
os.chdir(os.getcwd() + '/SupportFiles/')

popen = subprocess.Popen('./ideviceinfo | grep UniqueDeviceID: ', shell = True, stdout=subprocess.PIPE,stderr=subprocess.PIPE, encoding='utf8')
communicateRes = popen.communicate()
udid, stdErrValue = communicateRes
udid = udid.strip()
udid = udid[16:]

popen = subprocess.Popen('./ideviceinfo | grep UniqueChipID: ', shell = True, stdout=subprocess.PIPE,stderr=subprocess.PIPE, encoding='utf8')
communicateRes = popen.communicate()
ecid, stdErrValue = communicateRes
ecid = ecid.strip()
ecid = ecid[13:]
ecid = ecid.replace(' ','')

popen = subprocess.Popen('./ideviceinfo | grep UniqueDeviceID: ', shell = True, stdout=subprocess.PIPE,stderr=subprocess.PIPE, encoding='utf8')
communicateRes = popen.communicate()
udid, stdErrValue = communicateRes
udid = udid.strip()
udid = udid[16:]

#check if the device is already cached otherwise continue to fetch the remaining data....

popen = subprocess.Popen('./ideviceinfo | grep HardwarePlatform: ', shell = True, stdout=subprocess.PIPE,stderr=subprocess.PIPE, encoding='utf8')
communicateRes = popen.communicate()
Expand Down
4 changes: 2 additions & 2 deletions macOS/SaveMe.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ block_cipher = None


a = Analysis(['SaveMe.py'],
pathex=['/Users/kasiim/Documents/GitHub/SaveMe'],
pathex=['/Users/kasiim/Documents/GitHub/SaveMe/macOS'],
binaries=[],
datas=[('tsschecker', '/SupportFiles/'), ('ideviceinfo', '/SupportFiles/'), ('irecovery', '/SupportFiles/'), ('ideviceenterrecovery', '/SupportFiles/'), ('igetnonce', '/SupportFiles/'), ('futurerestore', '/SupportFiles/')],
datas=[('tsschecker', '/SupportFiles/'), ('ideviceinfo', '/SupportFiles/'), ('ideviceenterrecovery', '/SupportFiles/'), ('igetnonce', '/SupportFiles/'), ('futurerestore', '/SupportFiles/')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
Expand Down
2 changes: 1 addition & 1 deletion macOS/SaveMeCompileCommand.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyinstaller --onefile --add-data 'tsschecker':'/SupportFiles/' --add-data 'ideviceinfo':'/SupportFiles/' --add-data 'ideviceenterrecovery':'/SupportFiles/' --add-data 'igetnonce':'/SupportFiles/' --add-data 'futureretore':'/SupportFiles/' SaveMe.py
pyinstaller --onefile --add-data 'tsschecker':'/SupportFiles/' --add-data 'ideviceinfo':'/SupportFiles/' --add-data 'ideviceenterrecovery':'/SupportFiles/' --add-data 'igetnonce':'/SupportFiles/' --add-data 'futurerestore':'/SupportFiles/' SaveMe.py

Binary file modified macOS/dist/SaveMe
Binary file not shown.

0 comments on commit ed1c8bd

Please sign in to comment.