r/jailbreak • u/swissblade23 iPhone XR, 14.0.1 • Mar 04 '20
Tutorial [Tutorial] Using Project Sandcastle on Linux
Today Project Sandcastle is released. It allows you to use Android on your iPhone 7, 7+, iPod Touch 7 and is compatible with macOS and Linux. But, Readme is not so helpful on Linux. After 2 hours of work, i finally got it. Here is how you can do it on your PC.
I used Lubuntu but it shouldn't matter if you use other distros.
What you need:
- Project Sandcastle Android Release: https://projectsandcastle.org/status
- libusb-1.0-0-dev, gcc, make, git and checkra1n installed on your computer.
Tutorial:
1-) Open terminal and clone the Projectsandcastle Loader:
git clone https://github.com/corellium/projectsandcastle
cd projectsandcastle/loader
2-) Download Project Sandcastle Android Release on your PC, and extract the contents to ProjectSandcastle Loader folder. It should be in your Home folder.
3-) Now you need to send the 'isetup' file. You have two choices:
- Connect to your phone via SSH and send the file with scp to /tmp directory
- Or upload the file to somewhere (i used Telegram), download it on your iPhone and put the file to /tmp via Filza. i used this method.
4-) We need to change permission of the isetup file and execute it. in terminal enter:
chmod 755 /tmp/isetup && /tmp/isetup
You can use MTerminal on this step if you went with second option of 3rd step. Do not forget to enter "su" first, otherwise it will give permission error
5-) You need to compile the Loader. Normally you need to enter:
sudo make && make install
But for some reason makefile does not compile the load-linux.c, it gives libusb errors. So use these commands if you have errors:
gcc load-linux.c -o load-linux -lusb-1.0
chmod +x load-linux
6-) We need to boot our iPhone into pongoOS to launch Android. Open another terminal and enter:
sudo checkra1n -cp
7-) When pongoOS boots successfully, switch to the previous terminal and enter:
sudo ./load-linux Android.lzma dtbpack
and your iPhone should boot into Android!
13
u/JohnLough Developer Mar 04 '20 edited Mar 04 '20
I've heard reports that signal works
Does it for you?
4
u/marleyqparker2006 iPhone 11 Pro Max, 15.1 Mar 05 '20
Thank you so much, included instructions make no sense.
But my touch isn't working. Still cool!
2
u/amir1kh Mar 05 '20
Thanks I was stuck at last step now it works!!!
2
u/Kingslayer9988 iPhone 7, 13.6.1 | Mar 05 '20
Hey thanks to your tutorial i did it ! :) but i have a problem now after i shutdown my androidni booted normal into ios and i cant rejailbreak wirh ceckra1n again it gives me error 21 some problem with the usb please help
2
u/mrproblembr iPhone 7, iOS 13.3 Mar 05 '20
This really works! Thanks!
2
u/gamr13 Mar 05 '20 edited Mar 05 '20
Oddly, I have the isetup file in /tmp, and I know it's there, chmod doesn't throw an error, but trying to execute isetup says "no such file or directory", I'm not adding .sh to the name either.
Edit: adding sh after the && worked and gave me a "Please make sure you are connected to WiFi and try again" my phone is connected to WiFi and my desktop is connected over Ethernet. Running it from SSH or MTerminal results in the same message.
4
u/rfsaidel Mar 07 '20
if helps, i've created a video tutorial using Ubuntu 18.04: https://youtu.be/5KEkXfFEKMw
1
u/Jailbrick3d iPhone XS, 14.4 | Mar 04 '20
Does this allow you to install Android apps from the Google play store or from the internet?
1
u/ysx25261465 Mar 05 '20
im sorry,but now im stuck at step 2,so,where can i find Project Sandcastle Android Release? thx
1
u/DarkAngel1337420 iPhone XR, 14.8| Mar 05 '20
sudo make && make install doesn't work
tried with gcc load-linux.c -o load-linux -lusb-1.0, but when I type sudo ./load-linux Android.lzma dtbpack, it gives me an error: libusb_open() failed: LIBUSB_ERROR_IO
1
u/[deleted] Mar 05 '20
I get failed to open file at last step
1
u/kkviper1 Mar 05 '20
My device gets stuck at "Booting Linux" on the PongoOS screen, any ideas why?
1
u/c0lds0re Mar 06 '20 edited Mar 06 '20
How to do I connect my phone via ssh? I don't understand.
Edit: Nvm I got it.
One more help, how to do I run "sudo make && make install" on where exactly?
Edit again: ok again, nvm.
Another help, when I tried to run "sudo checkra1n -cp" it said "command not found."
When I tried to run "./load-linux Android.lzma dtbpack" command, it said "failed to open file."
1
u/Skye7171 Mar 06 '20
DOESN'T WORK ON RPI 4
1
u/TheFallenAngel_YT iPhone 13, 16.2| Mar 06 '20
Will I need to be in the sandcastle folder to make the install file?
1
u/nonononooooono Mar 07 '20
https://drive.google.com/open?id=1pGkx1n45dKeaXP3LnwnvKl9k64kRuQLt can you help?
1
u/Rob9315 Mar 22 '20
Great post and tutorial, took me a few trys but worked in the end.Also my phone's running a little hot :D lol
Did you already find a way to install the play store or any apk for that matter?
(I know it won't be permanent, just for testing purposes)
Greetings!
EDIT: spelling...
1
u/WoahAName Sileo Lead Maintainer | Cool NFC Girl Mar 25 '20
How long did it take you to boot, it's been about 5 - 6 minutes for me now, and it still says Botting Linux on the phone
1
u/carparzio May 25 '20
Error -bash: gcc: command not found
I have gcc installed on my computer and the newest version of ios toolchain on my Iphone
Help Please
1
u/akki161014 iPhone X, 14.0 beta | Mar 05 '20
Can we do this from a live usb ??
1
u/sajanacharya Mar 05 '20
Can we install in iphone x Also does this wipe out ios and install android?
2
u/kian_ iPhone XS, 14.8 | Apr 10 '20 edited Apr 10 '20
Hey, I'm having trouble on step 4. The command goes through but it seems to get stuck. It's been at "Starting to download nand. This will take a few minutes." for about 10 minutes now. Is this normal? Thanks for all your help :)
Edit: I checked out the isetup script and I see that it actually downloads the nand from the checkra.in website. Tried manually downloading it on my PC and noticed I was only getting about 100 KB/s down, so I'm assuming it's just taking a long time to download on my phone. I'm going to leave it and come back in a couple hours and hopefully it should be done, otherwise I guess my issue is something else. Just thought I'd give an update in case anyone has the same problem and finds this comment.
2
u/[deleted] Jun 20 '20
Everytime I try to run the command "chmod 755 /tmp/isetup && sh /tmp/isetup" I get an error saying "Please make sure you are connected to wifi and try again. Any ideas on how to fix this?
1
u/metrolit iPhone XS, iOS 12.0.1 Mar 05 '20
Can i install it on a lower iphone such as the 6?
1
u/StuffKid iPhone 7 Plus, 13.4.1 | Mar 08 '20
When I run I setup it says the resource is busy, idk what to do. I think it’s because I closed the terminal when it was running
1
u/[deleted] Mar 14 '20
Well how do i get iOS from wiping android and the apps installed for when i install apps via APKlike where it is installed so i can still have the apps installed
1
u/[deleted] Mar 14 '20
Stuck at "random crng init done"
1
u/E4rxx Apr 10 '22
Anyone has a pre 2.0 pongo.bin? I would like to try use that on sandcastle
1
u/enbyuwu Nov 18 '23
Does it work with palera1n?
0
u/[deleted] Mar 05 '20
[deleted] — view deleted comment
0
u/[deleted] Mar 06 '20
[deleted] — view deleted comment
0
u/[deleted] Mar 13 '20
[deleted] — view deleted comment