Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

frida: Add build.frida.re as a Sileo/apt source at first boot

zqxwce3bb6f0fda4b2
diff --git a/scripts/vphone_jb_setup.sh b/scripts/vphone_jb_setup.sh
index bd4f049b..dc92f010 100755
--- a/scripts/vphone_jb_setup.sh
+++ b/scripts/vphone_jb_setup.sh
@@ -229,6 +229,15 @@ else
log " Havoc source already present"
fi
+FRIDA_LIST="$(dirname "$HAVOC_LIST")/frida.list"
+if ! grep -rIl 'build.frida.re' /etc/apt /var/jb/etc/apt 2>/dev/null | grep -q .; then
+ mkdir -p "$(dirname "$FRIDA_LIST")"
+ printf '%s\n' 'deb https://build.frida.re/ ./' > "$FRIDA_LIST"
+ log " Frida source added: $FRIDA_LIST"
+else
+ log " Frida source already present"
+fi
+
apt-get -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update -qq 2>&1 || log " apt update exited with $?"