From 5eecb677a7bd16ca887db61fc323da51e9b1320f Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Thu, 30 Nov 2023 20:34:56 -0500 Subject: [PATCH] Document the actions --- RootHelper/devmode.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/RootHelper/devmode.m b/RootHelper/devmode.m index 7020311..42761d8 100644 --- a/RootHelper/devmode.m +++ b/RootHelper/devmode.m @@ -20,9 +20,10 @@ extern xpc_object_t xpc_connection_send_message_with_reply_sync(xpc_connection_t extern xpc_object_t xpc_dictionary_get_value(xpc_object_t xdict, const char *key); typedef enum { - kAMFIActionArm = 0, - kAMFIActionDisable = 1, - kAMFIActionStatus = 2, + kAMFIActionArm = 0, // Trigger a prompt asking the user to enable developer mode on the next reboot + // (regardless of current state) + kAMFIActionDisable = 1, // Disable developer mode if it's currently enabled. Takes effect immediately. + kAMFIActionStatus = 2, // Returns a dict: {success: bool, status: bool, armed: bool} } AMFIXPCAction; xpc_connection_t startConnection(void) {