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

Injected Tweaks don't have permissions to Injected App's Sandbox directory ie. /Documents #264

Open
ghost opened this issue Aug 27, 2018 · 9 comments

Comments

@ghost
Copy link

ghost commented Aug 27, 2018

Yalu works.
Electra doesn't due to sandbox restrictions however injected tweaks should have access to the containerid of the app it is injected into.

Coolstar should be able to fix in like 5 minutes because he is a superstar.

@jakeajames
Copy link

Injected tweaks run with the same permissions as the app itself so they can

@ghost
Copy link
Author

ghost commented Sep 3, 2018

This is not true. Attempt to write a file to the root Data folder where Documents folders exists, regular app can write here, Tweak cannot.

@jakeajames
Copy link

jakeajames commented Sep 4, 2018 via email

@lubbo
Copy link

lubbo commented Dec 4, 2018

I can confirm that Tweaks cannot write files neither in the App sandbox.
From iOS11.
In iOS 10 works.
I've tried writing in Document and ApplicationSupport directories.
I definitely need a way to write files... I've tried all my bullets...

@jakeajames
Copy link

@lubbo i'm sure you're doing it wrong. Tweaks can do whatever the process they're injected to can do. Period.

@lubbo
Copy link

lubbo commented Dec 5, 2018

@ElliotRobot20 have you fixed the problem or are you still unable to write on Documents dir?

@jakeajames
Copy link

@lubbo @ElliotRobot20 bruh i wrote this in 5 minutes and it works fine. Stop saying it doesn't work. You're doing it wrong.

[@"TEST" writeToFile:[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/TESTFILE.txt"] atomically:YES];

@ghost
Copy link
Author

ghost commented Dec 10, 2018

write to ROOT NSHomeDirectory() not within the documents folder....
It's the same problem I have if i enable mobile permissions on the Info.plist in App bundle root, you still cannot modify the file from the tweak as your restricted by initial read-only sandbox.
@jakeajames

@jakeajames
Copy link

jakeajames commented Dec 14, 2018 via email

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

No branches or pull requests

2 participants