Skip to content

Commit

Permalink
darwin: Add support for working in the SRD environment (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nessphoro committed Oct 25, 2021
1 parent 680b870 commit 4c08915
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions server/frida-server.xcent
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>research.com.apple.license-to-operate</key>
<true/>
<key>abs-client</key>
<string>143531244</string>
<key>adi-client</key>
Expand Down Expand Up @@ -296,6 +302,8 @@
<true/>
<key>com.apple.sh</key>
<true/>
<key>com.apple.private.cs.debugger</key>
<true/>
<key>com.apple.springboard.debugapplications</key>
<true/>
<key>com.apple.springboard.iconState</key>
Expand Down
9 changes: 7 additions & 2 deletions src/darwin/darwin-host-session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,13 @@ namespace Frida {
#if HAVE_EMBEDDED_ASSETS
id = yield fruitjector.inject_library_resource (pid, agent, entrypoint, agent_parameters, cancellable);
#else
id = yield fruitjector.inject_library_file (pid, Config.FRIDA_AGENT_PATH, entrypoint, agent_parameters,
cancellable);
string agent_path = Config.FRIDA_AGENT_PATH;
#if IOS
unowned string? cryptex_path = Environment.get_variable ("CRYPTEX_MOUNT_PATH");
if (cryptex_path != null)
agent_path = cryptex_path + agent_path;
#endif
id = yield fruitjector.inject_library_file (pid, agent_path, entrypoint, agent_parameters, cancellable);
#endif

return id;
Expand Down

0 comments on commit 4c08915

Please sign in to comment.