electra icon indicating copy to clipboard operation
electra copied to clipboard

Sandbox error when write and read file.

Open iThanh opened this issue 7 years ago • 4 comments

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.

  • iOS version: 11.0.3
  • iDevice model: iPhone 6
  • electra version: lastest version

Thank you!

iThanh avatar Apr 06 '18 18:04 iThanh

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

liuxuan30 avatar Apr 08 '18 01:04 liuxuan30

add no-container entitlement

jakeajames avatar Apr 22 '18 16:04 jakeajames

add no-container entitlement

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

lubbo avatar Dec 04 '18 17:12 lubbo

@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.

jakeajames avatar Dec 05 '18 12:12 jakeajames