Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app] Support running in a jailed state #98

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tesaguri
Copy link

@tesaguri tesaguri commented Oct 10, 2023

The first commit allows the app to work in a jailed state (after the user has signed the app and the linked libraries with TrollStore's method).

The second commit allows spawned commands to access arbitrary containers in a jailed state like in jailbroken environments.

@tesaguri tesaguri changed the title [common] Always spawn login command as the super user [app] Support running in a jailed state Oct 10, 2023
This allows the app to work in a jailed state (after the user has signed
the app with TrollStore's method).

The technique is borrowed from TrollStore's documentation:

- <https://github.com/opa334/TrollStore/blob/264a9402abe30be7156c7caf51b4361ca95b7b2f/README.md#root-helpers>
@kirb
Copy link
Member

kirb commented Oct 29, 2023

Sorry I haven’t gotten to this yet, been busy, but I wanted to quickly say thanks for submitting this!

@tesaguri
Copy link
Author

It's not an urgent patch, so please take your time :) Thanks for the update!

@hggz
Copy link

hggz commented Jan 15, 2024

@tesaguri I haven't been able to get your branch to work on a non jailbroken iphone 14pm 16.6.1 with trollstore. Should that be supported or did I misunderstand this patch?

@tesaguri
Copy link
Author

tesaguri commented Jan 15, 2024

@tesaguri I haven't been able to get your branch to work on a non jailbroken iphone 14pm 16.6.1 with trollstore. Should that be supported or did I misunderstand this patch?

Actually, I had to restore my device to iOS 17.0.2 after filing this patch and I cannot test it with a real decice anymore.

That said, I've tested this with iOS 14.x (jailbroken with Odysseyra1n (rootful) before rebooting into a jailed state). Also, I forgot to mention in the OP that you need to place pseudo-signed login and shell binaries in the PATH too (e.g. /var/jb/bin/bash).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants