@@ -1478,32 +1478,30 @@ device_get_info() {
14781478 device_latest_build=" 16H81"
14791479 ;;
14801480 iPad5,* | iPhone[89],* | iPod9,1 )
1481- device_latest_vers=" 15.8.4 "
1482- device_latest_build=" 19H390 "
1481+ device_latest_vers=" 15.8.5 "
1482+ device_latest_build=" 19H394 "
14831483 ;;
14841484 iPad6,* | iPhone10,* )
1485- device_latest_vers=" 16.7.11 "
1486- device_latest_build=" 20H360 "
1485+ device_latest_vers=" 16.7.12 "
1486+ device_latest_build=" 20H364 "
14871487 ;;
14881488 iPad7,[123456] )
14891489 device_latest_vers=" 17.7.10"
14901490 device_latest_build=" 21H450"
14911491 ;;
14921492 iPad7,1[12] )
1493- device_latest_vers=" 18.6.2 "
1494- device_latest_build=" 22G100 "
1493+ device_latest_vers=" 18.7 "
1494+ device_latest_build=" 22H20 "
14951495 ;;
14961496 esac
14971497 if (( device_proc > 10 )) && [[ $platform == " linux" ]]; then
1498- device_latest_vers=" 18.6.2"
1499- device_latest_build=" 22G100"
1500- # log "Getting latest iOS version for $device_type"
1501- # rm -f tmp.json
1502- # $aria2c "https://api.ipsw.me/v4/device/$device_type?type=ipsw" -o tmp.json
1503- # [[ $? != 0 ]] && $curl -L "https://api.ipsw.me/v4/device/$device_type?type=ipsw" -o tmp.json
1504- # local latestver="$(cat tmp.json | $jq -j ".firmwares[0]")"
1505- # device_latest_vers="$(echo "$latestver" | $jq -j ".version")"
1506- # device_latest_build="$(echo "$latestver" | $jq -j ".buildid")"
1498+ log " Getting latest iOS version for $device_type "
1499+ rm -f tmp.json
1500+ $aria2c " https://api.ipsw.me/v4/device/$device_type ?type=ipsw" -o tmp.json
1501+ [[ $? != 0 ]] && $curl -L " https://api.ipsw.me/v4/device/$device_type ?type=ipsw" -o tmp.json
1502+ local latestver=" $( cat tmp.json | $jq -j " .firmwares[0]" ) "
1503+ device_latest_vers=" $( echo " $latestver " | $jq -j " .version" ) "
1504+ device_latest_build=" $( echo " $latestver " | $jq -j " .buildid" ) "
15071505 fi
15081506 # set device_use_bb, device_use_bb_sha1 (what baseband to use for ota/other)
15091507 # for a7/a8 other restores 11.3+, device_latest_bb and device_latest_bb_sha1 are used instead
0 commit comments