mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-02 18:22:38 +01:00
Apple Silicon native binaries macOS
This commit is contained in:
parent
0849301da8
commit
9e3c5c0ac9
BIN
bin/macos/arm64/dmg
Executable file
BIN
bin/macos/arm64/dmg
Executable file
Binary file not shown.
BIN
bin/macos/arm64/gilbertjb
Executable file
BIN
bin/macos/arm64/gilbertjb
Executable file
Binary file not shown.
BIN
bin/macos/arm64/hfsplus
Executable file
BIN
bin/macos/arm64/hfsplus
Executable file
Binary file not shown.
BIN
bin/macos/arm64/iBoot32Patcher
Executable file
BIN
bin/macos/arm64/iBoot32Patcher
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ideviceactivation
Executable file
BIN
bin/macos/arm64/ideviceactivation
Executable file
Binary file not shown.
BIN
bin/macos/arm64/idevicebackup2
Executable file
BIN
bin/macos/arm64/idevicebackup2
Executable file
Binary file not shown.
BIN
bin/macos/arm64/idevicediagnostics
Executable file
BIN
bin/macos/arm64/idevicediagnostics
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ideviceenterrecovery
Executable file
BIN
bin/macos/arm64/ideviceenterrecovery
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ideviceinfo
Executable file
BIN
bin/macos/arm64/ideviceinfo
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ideviceinstaller
Executable file
BIN
bin/macos/arm64/ideviceinstaller
Executable file
Binary file not shown.
BIN
bin/macos/arm64/idevicepair
Executable file
BIN
bin/macos/arm64/idevicepair
Executable file
Binary file not shown.
BIN
bin/macos/arm64/idevicerestore
Executable file
BIN
bin/macos/arm64/idevicerestore
Executable file
Binary file not shown.
BIN
bin/macos/arm64/imagetool
Executable file
BIN
bin/macos/arm64/imagetool
Executable file
Binary file not shown.
BIN
bin/macos/arm64/img4
Executable file
BIN
bin/macos/arm64/img4
Executable file
Binary file not shown.
BIN
bin/macos/arm64/img4tool
Executable file
BIN
bin/macos/arm64/img4tool
Executable file
Binary file not shown.
BIN
bin/macos/arm64/iproxy
Executable file
BIN
bin/macos/arm64/iproxy
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ipsw
Executable file
BIN
bin/macos/arm64/ipsw
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ipwnder
Executable file
BIN
bin/macos/arm64/ipwnder
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ipwnder2
Executable file
BIN
bin/macos/arm64/ipwnder2
Executable file
Binary file not shown.
BIN
bin/macos/arm64/irecovery
Executable file
BIN
bin/macos/arm64/irecovery
Executable file
Binary file not shown.
BIN
bin/macos/arm64/irecovery2
Executable file
BIN
bin/macos/arm64/irecovery2
Executable file
Binary file not shown.
BIN
bin/macos/arm64/jq
Executable file
BIN
bin/macos/arm64/jq
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libideviceactivation-1.0.2.dylib
Executable file
BIN
bin/macos/arm64/lib/libideviceactivation-1.0.2.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libimobiledevice-1.0.6.dylib
Executable file
BIN
bin/macos/arm64/lib/libimobiledevice-1.0.6.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libimobiledevice-glue-1.0.0.dylib
Executable file
BIN
bin/macos/arm64/lib/libimobiledevice-glue-1.0.0.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libirecovery-1.0.3.dylib
Executable file
BIN
bin/macos/arm64/lib/libirecovery-1.0.3.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libplist-2.0.4.dylib
Executable file
BIN
bin/macos/arm64/lib/libplist-2.0.4.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libusb-1.0.0.dylib
Executable file
BIN
bin/macos/arm64/lib/libusb-1.0.0.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/lib/libusbmuxd-2.0.6.dylib
Executable file
BIN
bin/macos/arm64/lib/libusbmuxd-2.0.6.dylib
Executable file
Binary file not shown.
BIN
bin/macos/arm64/powdersn0w
Executable file
BIN
bin/macos/arm64/powdersn0w
Executable file
Binary file not shown.
BIN
bin/macos/arm64/pzb
Executable file
BIN
bin/macos/arm64/pzb
Executable file
Binary file not shown.
BIN
bin/macos/arm64/sshpass
Executable file
BIN
bin/macos/arm64/sshpass
Executable file
Binary file not shown.
BIN
bin/macos/arm64/ticket
Executable file
BIN
bin/macos/arm64/ticket
Executable file
Binary file not shown.
BIN
bin/macos/arm64/validate
Executable file
BIN
bin/macos/arm64/validate
Executable file
Binary file not shown.
BIN
bin/macos/arm64/xpwntool
Executable file
BIN
bin/macos/arm64/xpwntool
Executable file
Binary file not shown.
Binary file not shown.
BIN
bin/macos/pzb
BIN
bin/macos/pzb
Binary file not shown.
39
restore.sh
39
restore.sh
@ -24,7 +24,7 @@ warn() {
|
|||||||
error() {
|
error() {
|
||||||
echo -e "${color_R}[Error] ${1}\n${color_Y}${*:2}${color_N}"
|
echo -e "${color_R}[Error] ${1}\n${color_Y}${*:2}${color_N}"
|
||||||
print "* Legacy iOS Kit $version_current ($git_hash)"
|
print "* Legacy iOS Kit $version_current ($git_hash)"
|
||||||
print "* Platform: $platform ($platform_ver) $live_cdusb_str"
|
print "* Platform: $platform ($platform_ver - $platform_arch) $live_cdusb_str"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ set_tool_paths() {
|
|||||||
elif [[ $ID == "gentoo" || $ID_LIKE == "gentoo" || $ID == "pentoo" ]]; then
|
elif [[ $ID == "gentoo" || $ID_LIKE == "gentoo" || $ID == "pentoo" ]]; then
|
||||||
distro="gentoo"
|
distro="gentoo"
|
||||||
else
|
else
|
||||||
error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros"
|
error "Your distro ($platform_ver - $platform_arch) is not detected/supported. See the repo README for supported OS versions/distros"
|
||||||
fi
|
fi
|
||||||
bspatch="$dir/bspatch"
|
bspatch="$dir/bspatch"
|
||||||
PlistBuddy="$dir/PlistBuddy"
|
PlistBuddy="$dir/PlistBuddy"
|
||||||
@ -231,7 +231,7 @@ set_tool_paths() {
|
|||||||
irecovery2="sudo "
|
irecovery2="sudo "
|
||||||
irecovery3="sudo "
|
irecovery3="sudo "
|
||||||
if [[ ! -d $dir && $(ls ../bin/linux) ]]; then
|
if [[ ! -d $dir && $(ls ../bin/linux) ]]; then
|
||||||
log "Running on platform: $platform ($platform_ver)"
|
log "Running on platform: $platform ($platform_ver - $platform_arch)"
|
||||||
error "Failed to find bin directory for $platform_arch, found $(ls -x ../bin/linux) instead." \
|
error "Failed to find bin directory for $platform_arch, found $(ls -x ../bin/linux) instead." \
|
||||||
"* Download the \"linux_$platform_arch\" or \"complete\" version to continue (or do a git clone)"
|
"* Download the \"linux_$platform_arch\" or \"complete\" version to continue (or do a git clone)"
|
||||||
fi
|
fi
|
||||||
@ -251,6 +251,7 @@ set_tool_paths() {
|
|||||||
log "Not running usbmuxd"
|
log "Not running usbmuxd"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
gaster+="$dir/gaster"
|
||||||
|
|
||||||
elif [[ $(uname -m) == "iP"* ]]; then
|
elif [[ $(uname -m) == "iP"* ]]; then
|
||||||
error "Running Legacy iOS Kit on iOS is not supported (yet)" "* Supported platforms: Linux, macOS"
|
error "Running Legacy iOS Kit on iOS is not supported (yet)" "* Supported platforms: Linux, macOS"
|
||||||
@ -261,9 +262,8 @@ set_tool_paths() {
|
|||||||
dir="../bin/macos"
|
dir="../bin/macos"
|
||||||
|
|
||||||
platform_arch="$(uname -m)"
|
platform_arch="$(uname -m)"
|
||||||
if [[ $platform_arch != "x86_64" ]]; then
|
if [[ $platform_arch == "arm64" ]]; then
|
||||||
platform_arch="arm64"
|
dir+="/arm64"
|
||||||
#dir+="/arm64"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# macos version check
|
# macos version check
|
||||||
@ -272,7 +272,7 @@ set_tool_paths() {
|
|||||||
mac_minver=${platform_ver:3}
|
mac_minver=${platform_ver:3}
|
||||||
mac_minver=${mac_minver%.*}
|
mac_minver=${mac_minver%.*}
|
||||||
if (( mac_minver < 11 )); then
|
if (( mac_minver < 11 )); then
|
||||||
warn "Your macOS version ($platform_ver) is not supported. Expect features to not work properly."
|
warn "Your macOS version ($platform_ver - $platform_arch) is not supported. Expect features to not work properly."
|
||||||
print "* Supported versions are macOS 10.11 and newer. (10.13/10.15 and newer recommended)"
|
print "* Supported versions are macOS 10.11 and newer. (10.13/10.15 and newer recommended)"
|
||||||
pause
|
pause
|
||||||
fi
|
fi
|
||||||
@ -297,6 +297,7 @@ set_tool_paths() {
|
|||||||
|
|
||||||
bspatch="$(command -v bspatch)"
|
bspatch="$(command -v bspatch)"
|
||||||
cocoadialog="$(command -v cocoadialog)"
|
cocoadialog="$(command -v cocoadialog)"
|
||||||
|
gaster+="../bin/macos/gaster"
|
||||||
ipwnder32="$dir/ipwnder32"
|
ipwnder32="$dir/ipwnder32"
|
||||||
PlistBuddy="/usr/libexec/PlistBuddy"
|
PlistBuddy="/usr/libexec/PlistBuddy"
|
||||||
sha1sum="$(command -v shasum) -a 1"
|
sha1sum="$(command -v shasum) -a 1"
|
||||||
@ -309,7 +310,7 @@ set_tool_paths() {
|
|||||||
else
|
else
|
||||||
error "Your platform ($OSTYPE) is not supported." "* Supported platforms: Linux, macOS"
|
error "Your platform ($OSTYPE) is not supported." "* Supported platforms: Linux, macOS"
|
||||||
fi
|
fi
|
||||||
log "Running on platform: $platform ($platform_ver)"
|
log "Running on platform: $platform ($platform_ver - $platform_arch)"
|
||||||
if [[ ! -d $dir ]]; then
|
if [[ ! -d $dir ]]; then
|
||||||
error "Failed to find bin directory ($dir), cannot continue." \
|
error "Failed to find bin directory ($dir), cannot continue." \
|
||||||
"* Re-download Legacy iOS Kit from releases (or do a git clone/reset)"
|
"* Re-download Legacy iOS Kit from releases (or do a git clone/reset)"
|
||||||
@ -324,7 +325,6 @@ set_tool_paths() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
futurerestore+="$dir/futurerestore"
|
futurerestore+="$dir/futurerestore"
|
||||||
gaster+="$dir/gaster"
|
|
||||||
ideviceinfo="$dir/ideviceinfo"
|
ideviceinfo="$dir/ideviceinfo"
|
||||||
idevicerestore+="$dir/idevicerestore"
|
idevicerestore+="$dir/idevicerestore"
|
||||||
ifuse="$(command -v ifuse)"
|
ifuse="$(command -v ifuse)"
|
||||||
@ -404,10 +404,6 @@ install_depends() {
|
|||||||
chown -R $USER:staff $dir
|
chown -R $USER:staff $dir
|
||||||
log "Installing Xcode Command Line Tools"
|
log "Installing Xcode Command Line Tools"
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
if [[ $platform_arch == "arm64" ]]; then
|
|
||||||
log "Installing Rosetta 2"
|
|
||||||
softwareupdate --install-rosetta
|
|
||||||
fi
|
|
||||||
print "* Make sure to install requirements from Homebrew/MacPorts: https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/How-to-Use"
|
print "* Make sure to install requirements from Homebrew/MacPorts: https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/How-to-Use"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -430,9 +426,15 @@ install_depends() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
version_update_check() {
|
version_update_check() {
|
||||||
|
pushd "$(dirname "$0")/tmp$$" >/dev/null
|
||||||
|
if [[ $platform == "macos" && ! -e ../resources/firstrun ]]; then
|
||||||
|
print "* Legacy iOS Kit will be installing setting up permissions of tools"
|
||||||
|
print "* Enter your user password when prompted"
|
||||||
|
pause
|
||||||
|
sudo xattr -cr $dir
|
||||||
|
fi
|
||||||
log "Checking for updates..."
|
log "Checking for updates..."
|
||||||
github_api=$(curl https://api.github.com/repos/LukeZGD/Legacy-iOS-Kit/releases/latest 2>/dev/null)
|
github_api=$(curl https://api.github.com/repos/LukeZGD/Legacy-iOS-Kit/releases/latest 2>/dev/null)
|
||||||
pushd "$(dirname "$0")/tmp$$" >/dev/null
|
|
||||||
version_latest=$(echo "$github_api" | $jq -r '.assets[] | select(.name|test("complete")) | .name' | cut -c 25- | cut -c -9)
|
version_latest=$(echo "$github_api" | $jq -r '.assets[] | select(.name|test("complete")) | .name' | cut -c 25- | cut -c -9)
|
||||||
git_hash_latest=$(echo "$github_api" | $jq -r '.assets[] | select(.name|test("git-hash")) | .name' | cut -c 21- | cut -c -7)
|
git_hash_latest=$(echo "$github_api" | $jq -r '.assets[] | select(.name|test("git-hash")) | .name' | cut -c 21- | cut -c -7)
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
@ -3182,6 +3184,8 @@ ipsw_prepare_32bit() {
|
|||||||
esac
|
esac
|
||||||
if [[ $device_target_vers == "4.2"* || $device_target_vers == "4.3"* || $ipsw_gasgauge_patch == 1 ]]; then
|
if [[ $device_target_vers == "4.2"* || $device_target_vers == "4.3"* || $ipsw_gasgauge_patch == 1 ]]; then
|
||||||
nskip=1
|
nskip=1
|
||||||
|
elif [[ $platform == "macos" && $platform_arch == "arm64" ]]; then
|
||||||
|
nskip=1
|
||||||
fi
|
fi
|
||||||
if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]] && [[ $nskip != 1 ]]; then
|
if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]] && [[ $nskip != 1 ]]; then
|
||||||
ipsw_prepare_jailbreak
|
ipsw_prepare_jailbreak
|
||||||
@ -5005,6 +5009,9 @@ restore_usepwndfu64_option() {
|
|||||||
print "* If you want to disable Pwned Restore Option, place the device in Normal/Recovery mode"
|
print "* If you want to disable Pwned Restore Option, place the device in Normal/Recovery mode"
|
||||||
restore_usepwndfu64=1
|
restore_usepwndfu64=1
|
||||||
return
|
return
|
||||||
|
elif [[ $platform == "macos" && $platform_arch == "arm64" ]]; then
|
||||||
|
restore_usepwndfu64=1
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
local opt
|
local opt
|
||||||
input "Pwned Restore Option"
|
input "Pwned Restore Option"
|
||||||
@ -6048,7 +6055,7 @@ menu_print_info() {
|
|||||||
if [[ $git_hash_latest != "$git_hash" ]]; then
|
if [[ $git_hash_latest != "$git_hash" ]]; then
|
||||||
warn "Current version is newer/different than remote: $version_latest ($git_hash_latest)"
|
warn "Current version is newer/different than remote: $version_latest ($git_hash_latest)"
|
||||||
fi
|
fi
|
||||||
print "* Platform: $platform ($platform_ver) $live_cdusb_str"
|
print "* Platform: $platform ($platform_ver - $platform_arch) $live_cdusb_str"
|
||||||
echo
|
echo
|
||||||
print "* Device: $device_name (${device_type} - ${device_model}ap) in $device_mode mode"
|
print "* Device: $device_name (${device_type} - ${device_model}ap) in $device_mode mode"
|
||||||
device_manufacturing
|
device_manufacturing
|
||||||
@ -8691,7 +8698,7 @@ main() {
|
|||||||
echo
|
echo
|
||||||
print "* Save the terminal output now if needed."
|
print "* Save the terminal output now if needed."
|
||||||
print "* Legacy iOS Kit $version_current ($git_hash)"
|
print "* Legacy iOS Kit $version_current ($git_hash)"
|
||||||
print "* Platform: $platform ($platform_ver) $live_cdusb_str"
|
print "* Platform: $platform ($platform_ver - $platform_arch) $live_cdusb_str"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user