mologie / nxboot

NXBoot is a Tegra (Nintendo Switch) payload injector for iOS and macOS devices.
https://mologie.github.io/nxboot/
GNU General Public License v3.0
151 stars 16 forks source link

Rootless support for NXBoot and repo (Sileo/Dopamine) #9

Closed ceedveed closed 1 week ago

ceedveed commented 1 year ago

Dopamine is out of beta. I tried adding your repo, but I can't install nxboot. I'm guessing some dependency is not compatible with rootless.

Is it possible for you to investigate and maybe update?

Dopamine 1.0.2 iPhone mini 13 iOS 15.1.1

mologie commented 1 year ago

Hi, I do not have any jailbreakable devices compatible with Dopamine with me unfortunately. If you could post any details to what fails when adding the repo or installing nxboot then I might be able to investigate w/o device.

ceedveed commented 1 year ago

Hi, I do not have any jailbreakable devices compatible with Dopamine with me unfortunately. If you could post any details to what fails when adding the repo or installing nxboot then I might be able to investigate w/o device.

Dopamine uses Sileo. Sileo does not allow rootful tweaks, apps, etc. to show. So I cannot even add the repo manually. By default, Sileo search engine also shows NXBoot as a search result, but it will not add the associated repo because it is rootful. At least this is my guess.

mologie commented 1 year ago

Okay, I will see to read into this whole rootless stuff on the next rainy weekend and try to source some compatible device o/

ghost commented 1 year ago

@mologie Apple introduced a mitigation in iOS 15 called SSV which is called Signed System Volume. If you try to write to anything other than /private/preboot your phone gets bootlooped and is unrepairable (on A12+ devices not vulnerable to checkm8), unless you send it to Apple on which they refuse to fix it once the limited warranty runs out

ghost commented 1 year ago

So the jb community moved away from putting things into / (root) and now it's a mess because there's the /var/jb symlink is in /private/preboot/idnumber so all previous tweaks compiled to work with root won't work

ghost commented 1 year ago

Better explanation of info then my tldr: https://www.reddit.com/r/jailbreak/comments/110le54/discussion_what_does_rootless_mean_for_end_users/?utm_source=share&utm_medium=ios_app&utm_name=iossmf

mologie commented 1 year ago

Appreciate the explanation but since this is not a tweak and there is barely any information on how to package for rootless jailbreaks with Sileo etc I'm still stuck on what exactly goes wrong for rootless jailbreaks.

NXBoot is just an application in /Applications.

nyathea commented 2 months ago

Appreciate the explanation but since this is not a tweak and there is barely any information on how to package for rootless jailbreaks with Sileo etc I'm still stuck on what exactly goes wrong for rootless jailbreaks.

NXBoot is just an application in /Applications.

Hello did you ever get around to figuring this out? Rootless has progressed a lot since this point and I would also be interested in an trollstore compatible version if possible.

nyathea commented 2 months ago

Also i tried putting the comand line tool for nxboot in /var/jb/usr/bin and it just returns zsh: killed nxboot. I used chmod 755 on the executable but no luck.

mologie commented 2 months ago

Yup, there is a macOS and rootless JB version on a separate branch that I created last Christmas, but I did not get around finishing it. I suppose it's time to dig that stuff out again eventually (hopefully before next Christmas, hah).

A TrollStore preview is available at https://github.com/mologie/nxboot/issues/6#issuecomment-1596181603. That version still had a bug where it crashes after editing the first payload, but that's a one-time issue and it's functional other than that issue.

nyathea commented 2 months ago

Yup, there is a macOS and rootless JB version on a separate branch that I created last Christmas, but I did not get around finishing it. I suppose it's time to dig that stuff out again eventually (hopefully before next Christmas, hah).

A TrollStore preview is available at #6 (comment). That version still had a bug where it crashes after editing the first payload, but that's a one-time issue and it's functional other than that issue.

Oh thank you. I didn’t notice this

olivertzeng commented 1 month ago

@mologie mind to change the title to "Rootless support"?

mologie commented 1 week ago

It should be possible to import the repo and install on rootless JBs now. I unfortunately still do not have a test device at hand, but a colleague successfully tested with a beta version. Please ping me here if this is not resolved, so that I can reopen. Thanks!