summaryrefslogtreecommitdiff
path: root/data/uikittools/ldrestart-jbd.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/uikittools/ldrestart-jbd.diff')
-rw-r--r--data/uikittools/ldrestart-jbd.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/data/uikittools/ldrestart-jbd.diff b/data/uikittools/ldrestart-jbd.diff
new file mode 100644
index 000000000..245d13eef
--- /dev/null
+++ b/data/uikittools/ldrestart-jbd.diff
@@ -0,0 +1,26 @@
+--- uikittools+iPhone/ldrestart.cpp 2018-08-03 12:16:31.000000000 -1000
++++ ldrestart.cpp 2018-08-03 11:54:52.000000000 -1000
+@@ -58,15 +58,18 @@
+ auto integer(launch_data_dict_lookup(value, LAUNCH_JOBKEY_PID));
+ if (integer == NULL || launch_data_get_type(integer) != LAUNCH_DATA_INTEGER)
+ return;
+-
+- auto pid(launch_data_get_integer(integer));
+- if (kill(pid, 0) == -1)
+- return;
+-
++
+ auto string(launch_data_dict_lookup(value, LAUNCH_JOBKEY_LABEL));
+ if (string == NULL || launch_data_get_type(string) != LAUNCH_DATA_STRING)
+ return;
+ auto label(launch_data_get_string(string));
++
++ if (strcmp(label, "jailbreakd") == 0 || strcmp(label, "com.apple.MobileFileIntegrity") == 0)
++ return;
++
++ auto pid(launch_data_get_integer(integer));
++ if (kill(pid, 0) == -1)
++ return;
+
+ auto stop(launch_data_alloc(LAUNCH_DATA_DICTIONARY));
+ launch_data_dict_insert(stop, string, LAUNCH_KEY_STOPJOB);