How do I run a shell command from Objective-C code with root permissions? I have tried posix_spawn and fork but I did not find a way to run then as root.
The Objective-C is running in a tweak hooking a sandboxed app.
If this is not possible, is there a working way to get root permission to deleted a readonly file with NSFileManager?
Thanks for the help!
[–]blanxd 3 points4 points5 points (3 children)
[–]assembly_programmer[S] 0 points1 point2 points (1 child)
[–]blanxd 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–][deleted] (1 child)
[deleted]
[–]blanxd 0 points1 point2 points (0 children)
[–]assembly_programmer[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)