blob: 245d13eef546716106c061e4eb83695ec78e09f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
|