Skip to content

Commit

Permalink
fix downloading iphone 5s LLB/iBoot
Browse files Browse the repository at this point in the history
  • Loading branch information
m1stadev committed Aug 22, 2020
1 parent 87347bd commit 30ab227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inferius.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
else:
sys.exit('Error: You must specify a device identifier with -d!\nExiting...')
if args.version:
pass
elif args.version.startswith('10.'):
sys.exit('Error: iOS 10.x IPSWs are not currently supported!\nExiting...')
version_str = args.version[0]
if version_str.startswith('10.'):
sys.exit('Error: iOS 10.x IPSWs are not currently supported!\nExiting...')
else:
sys.exit('Error: You must specify an iOS version with -i!\nExiting...')
if args.verbose:
Expand Down
2 changes: 2 additions & 0 deletions resources/ipsw.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def grab_latest_llb_iboot(device_identifier, ipsw_dir, firm_bundle):
with open(f'{firm_bundle}/Info.json') as f:
data = json.load(f)
hardware_model = data['boardconfig']
if device_identifier.startswith('iPhone6'):
hardware_model = 'iphone6'
ipswme_device_info = requests.get(f'https://api.ipsw.me/v4/device/{device_identifier}?type=ipsw')
device_info = ipswme_device_info.json()
for x in range(0, len(device_info['firmwares'])):
Expand Down

0 comments on commit 30ab227

Please sign in to comment.