Open ghost opened 6 years ago
Injected tweaks run with the same permissions as the app itself so they can
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.
As long as the tweak is injected to that specific app, the code will be ran by that app so yea it will work.
Il lunedì 3 settembre 2018, ElliotRobot notifications@github.com ha scritto:
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.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/coolstar/electra/issues/264#issuecomment-418109659, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtX-SZlFrtik8DMO_93M0usSUsKGQ16ks5uXSjzgaJpZM4WND9B .
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...
@lubbo i'm sure you're doing it wrong. Tweaks can do whatever the process they're injected to can do. Period.
@ElliotRobot20 have you fixed the problem or are you still unable to write on Documents dir?
@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];
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
If a normal app can't do it, a tweak can't do it either. Electra does not have big sandbox patches like previous jailbreaks
Il giorno lunedì 10 dicembre 2018, ElliotRobot notifications@github.com ha scritto:
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.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/coolstar/electra/issues/264#issuecomment-445935282, or mute the thread https://github.com/notifications/unsubscribe-auth/ATtX-Zi0vp-hkY4xljLvsHuTuvL3DcYWks5u3rH5gaJpZM4WND9B .
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.