Skip to content

Instantly share code, notes, and snippets.

@Bios597407
Bios597407 / idevicerestore.sh
Created April 2, 2023 01:46 — forked from theoparis/idevicerestore.sh
idevicerestore.sh
#!/bin/sh
set -oux
git clone https://github.com/libimobiledevice/libirecovery -j$(nproc)
git clone https://github.com/libimobiledevice/idevicerestore -j$(nproc)
git clone https://github.com/libimobiledevice/libimobiledevice-glue -j$(nproc)
git clone https://github.com/libimobiledevice/usbmuxd -j$(nproc)
git clone https://github.com/libimobiledevice/libimobiledevice -j$(nproc)
git clone https://github.com/libimobiledevice/libusbmuxd -j$(nproc)
git clone https://github.com/libimobiledevice/libplist -j$(nproc)
@Bios597407
Bios597407 / idevicerestore.sh
Created April 2, 2023 01:42 — forked from stek29/idevicerestore.sh
idevicerestore on linux (Debian-based)
sudo apt update
# sudo apt upgrade
sudo apt install -y libcurl4-openssl-dev libplist-dev libzip-dev openssl libssl-dev libusb-1.0-0-dev libreadline-dev build-essential git make automake libtool pkg-config
git clone https://github.com/libimobiledevice/libirecovery
git clone https://github.com/libimobiledevice/idevicerestore
git clone https://github.com/libimobiledevice/usbmuxd
git clone https://github.com/libimobiledevice/libimobiledevice
git clone https://github.com/libimobiledevice/libusbmuxd
git clone https://github.com/libimobiledevice/libplist
@Bios597407
Bios597407 / idevicerestore.sh
Created April 2, 2023 01:42 — forked from Duy-Thanh/idevicerestore.sh
idevicerestore on linux (Debian-based)
sudo apt update
# sudo apt upgrade
sudo apt install -y libcurl4-openssl-dev libplist-dev libzip-dev openssl libssl-dev libusb-1.0-0-dev libreadline-dev build-essential git make automake libtool pkg-config
git clone https://github.com/libimobiledevice/libirecovery
git clone https://github.com/libimobiledevice/idevicerestore
git clone https://github.com/libimobiledevice/usbmuxd
git clone https://github.com/libimobiledevice/libimobiledevice
git clone https://github.com/libimobiledevice/libusbmuxd
git clone https://github.com/libimobiledevice/libplist

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@Bios597407
Bios597407 / install_libimobiledevice.sh
Created July 22, 2020 15:44 — forked from matteyeux/install_libimobiledevice.sh
Script to install libimobiledevice
#!/bin/bash
#######################################################################
#
# Project......: install_libimobiledevice.sh
# Creator......: Dev-Jam remasterized by matteyeux on 27/12/15
#######################################################################
echo -e "\033[31mDev-Jam 12/01/2015 - Script to build & install Libimobiledevice\033[0m"
echo -e "\033[32m\033[1m\033[4m\033[5m\033[7mCreated by Dev-Jam, improved by @matteyeux on 27/12/15\033[0m"
@Bios597407
Bios597407 / clean_t2_restore.sh
Created July 22, 2020 15:43 — forked from rickmark/clean_t2_restore.sh
Perform a FOSS restore of an Apple T2 processor
#!/bin/bash
WORKING_DIRECTORY=`pwd`
repo_list=(libimobiledevice idevicerestore libplist libusbmuxd usbmuxd libirecovery)
for repo in ${repo_list[@]}; do
directory="$WORKING_DIRECTORY/$repo"
if [ -d "$directory" ]; then
rm -rf "$directory"
fi
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 03e4811..ffd5363 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -76,6 +76,7 @@ static struct option longopts[] = {
{ "plain-progress", no_argument, NULL, 'P' },
{ "restore-mode", no_argument, NULL, 'R' },
{ "ticket", required_argument, NULL, 'T' },
+ { "no-restore", no_argument, NULL, 'z'},
{ NULL, 0, NULL, 0 }
@Bios597407
Bios597407 / build-futurerestore.sh
Created July 9, 2020 16:04 — forked from Lessica/build-idevicerestore.sh
Build script for futurerestore and all its dependencies for macOS.
#!/bin/sh
# macOS 10.15
# Xcode 11.2
# Homebrew 2.1.16
# Homebrew/homebrew-core (git revision f466; last commit 2019-11-07)
# Homebrew/homebrew-cask (git revision 9ff44; last commit 2019-11-07)
# yum install python python-devel
# echo '[group_kdesig-cmake3_EPEL]
# name=Copr repo for cmake3_EPEL owned by @kdesig