fix(activation): Fix AFC service, deletescript return, session mutation

Critical: deletescript now uses com.apple.afc2 for root filesystem
access. deletescript_run returns -1 on errors. session no longer
mutates caller's handshake_response plist. Added plist_mem_free
documentation to activation.h. Fixed version parsing to reject negatives.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
tr4m0ryp 2026-04-05 03:32:08 +02:00
parent 4e6f7b70ee
commit 0a02acd634
6 changed files with 64 additions and 27 deletions

View file

@ -15,7 +15,18 @@
#include "device/device.h"
/*
* afc_connect -- Start the AFC service and return a client handle.
* afc_connect_service -- Start an AFC service by name and return a client.
* Use "com.apple.afc" for sandboxed access (/var/mobile/Media/) or
* "com.apple.afc2" for full root filesystem access (jailbroken).
* Caller must call afc_disconnect() when done.
* Returns 0 on success, -1 on error.
*/
int afc_connect_service(device_info_t *dev, afc_client_t *client,
const char *service_name);
/*
* afc_connect -- Start the default AFC service ("com.apple.afc").
* Convenience wrapper around afc_connect_service().
* Caller must call afc_disconnect() when done.
* Returns 0 on success, -1 on error.
*/