Skip to content

Instantly share code, notes, and snippets.

@lebao3105
Last active January 27, 2024 13:48
Show Gist options
  • Save lebao3105/d2858e574cd3c50d957603a5c9892478 to your computer and use it in GitHub Desktop.
Save lebao3105/d2858e574cd3c50d957603a5c9892478 to your computer and use it in GitHub Desktop.
For those who want to use rootful with palera1n

ios.cfw.guide has one, but it is archived and also, rootful is officially deprecated. However if you still want to go rootful, ios.cfw guide is still a good one. This tutorial extends that tutorial to be more updated and specific.

ios.cfw.guide tutorial: https://ios.cfw.guide/archived-palera1n-rootful - don't follow "Installing palera1n" section yet.

Risks

  • More phone space to be taken. 16GB phone can use BindFS but it's experimental now. See ios.cfw.guide guide for more details.
  • Since rootful allows full file system control (starting from /), there will be more security risks that hackers can control your phone easier. Whatever it's jailbreak:v Some tweaks may produce hidden malware - and I warn you not to use repos like MainRepo!
  • There will be tweak compability issues. If you don't be careful, you will be dropped into respring-loop.
  • Hardware issues, like drainning battery etc.

Notes

  1. You will want to check the Troubleshotting section first.
  2. This is not for Windows yet. Don't trust GUI tools since they are not official yet.
  3. AMD PCs may have problem while jailbreaking.
  4. palen1x is a user-friendly way, usable for any platform.
  5. There's an install script, run sudo /bin/sh -c "$(curl -fsSL https://static.palera.in/scripts/install.sh)" in terminal. If you go this way, skip step 2 & 3 below.
  6. Check your device if it has A9 chipset or not first. You will know why later.
  7. This is for the C-write - the current version of palera1n. For those who are never used palera1n before, simply skip this. If you have used the sh version before, go to ios.cfw.guide and find an instruction about removing palera1n legacy.
  8. Go to ios.cfw.guide->Get started + their link above and check if your device can use palera1n.

Start

  1. Download palera1n for your corresponding machine and machine architecture here: https://github.com/palera1n/palera1n/releases.
  2. Open a new terminal. "cd" to where you downloaded the file (normally just run cd Downloads if you haven't changed your download path in your browser settings).

Tip: if you don't know the full path to the file (really), open your file explorer and drag the downloaded file to the terminal.

  1. Run chmod +x <your palera1n file> in order to make the file runnable.
  2. Now it's the most interesting part (for newbies like you and me in the past):
  3. Follow "Running palera1n" section on ios.cfw.guide's tutorial.
  4. The last step: Because palera1n's loader is fully rewritten, so you won't see any "Install" button. Instead, click on "Sileo" and follow the instruction there.

Troubleshooting

What is <palera1n>?

Depends on how do you get palera1n:

  • if you installed it using the script above or somehow where it's downloaded is in $PATH, use palera1n.
  • if you downloaded it manually from GitHub, and you "cd"_ed to where you downloaded the file, use ./palera1n.
  • if you downloaded it manually from GitHub, but you don't know how to "cd", drag palera1n from the file explorer to the terminal and that's your <palera1n>

I'm stuck on step 5 - my phone seems doesn't want to reboot

Wait for a bit longer:) If you can't, do a force-reboot and try again. If it doesn't work, run <palera1n> --force-revert -f and try again.

I can't see palera1n app

If you've just respring_ed/rebooted userspace, wait first.

Install Shortcuts app form Apple (in case you removed it), and try to run this shortcut. If it doesn't work, try <palera1n> -f.

There's a way that can down the rate: open a terminal in your phone and run:

$ sudo ln -s /cores/binpack/Applications/palera1nLoader.app /Applications/palera1nLoader.app

(Don't type $)

Enter your created passcode (from the input dialog when you run palera1n for the first time) if prompted.

In rootful is way is a hit or miss (?), but better than nothing. Actually you don't need it much.

I installed a tweak and now I can't unlock my phone - it always "reload"

Your device is in a respring loop. On your computer run <palera1n> -sf to take your phone to safe mode. Remove your broken tweak then open palera1n app -> Actions -> Activate tweaks and you're done.

How do I rejailbreak?

Run <palera1n> -f.

How do I switch to rootless/back to rootful from rootless?

Easy. Remove the current jailbreak first: <palera1n> --force-revert. On rootful add -f.

Go rootless: <palera1n>

Go rootful: go see above

There are problems that are not listed here

You will want to ask it on palera1n's Discord server. But check the #common-issues channel first (in the server), so you won't waste your time waiting for the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment