coolstar / electra

Electra iOS 11.0 - 11.1.2 jailbreak toolkit based on async_awake
GNU General Public License v3.0
655 stars 163 forks source link

Sandbox error when write and read file. #231

Open iThanh opened 6 years ago

iThanh commented 6 years ago

Hi, I develop Application and write some value to file. But I got an error: Sandbox: myApp(3182) deny(1) file-write-create /private/var/mobile/mylog.log

And I also got an error when read data from file when hooking MobileSafari: Sandbox: MobileSafari(3133) deny(1) file-read-data /private/var/mobile/Library/Preferences/com.apple.Safari.SafeBrowsing.plist

Please help me to disable Sandbox for my application and all apps they are hook by my tweak.

Thank you!

liuxuan30 commented 6 years ago

I remember your app won't get rid of sandbox in any jailbreak? It's still being sandboxed.

jakeajames commented 6 years ago

add no-container entitlement

lubbo commented 5 years ago

add no-container entitlement

Can you give some advice on how to do it on an AppStore app?

jakeajames commented 5 years ago

@lubbo you can't. The only way to do it from an app store app is fully unsandboxing or adding some sandbox exceptions. (And if you plan on writing in a root owned directory you also need root). The only way to do those is using another process with tfp0. (Like jailbreakd). kppless jailbreaks don't nuke the sandbox like previous ones.