--- 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);