Apple added new entitlements for a lot of Private API
So for your tweak you have o sign it with com.apple.coretelephony.Calls.allow
entitlement
code below took from @b3ll MessageBox with editing it to make it work with CTCallDial
#define XPCObjects "/System/Library/PrivateFrameworks/XPCObjects.framework/XPCObjects"
%config(generator=MobileSubstrate);
%group backboarddHooks
static int (*orig_XPConnectionHasEntitlement)(id connection, NSString *entitlement);
static int tw_XPConnectionHasEntitlement(id connection, NSString *entitlement) {
DebugLog(@"XPCConnectionHasEntitlement... no u");
//Only grant the required entitlement
if (xpc_connection_get_pid(connection) == PIDForProcessNamed(@"SpringBoard") && [entitlement isEqualToString:@"com.apple.coretelephony.Calls.allow"])
return true;
return orig_XPConnectionHasEntitlement(connection, entitlement);
}
%end
%ctor {
if ([bundleIdentifier isEqualToString:@"com.apple.backboardd"]) {
%init(backboarddHooks);
dlopen(XPCObjects, RTLD_LAZY);
void *xpcFunction = MSFindSymbol(NULL, "_XPCConnectionHasEntitlement");
MSHookFunction(xpcFunction, (void *)tw_XPConnectionHasEntitlement, (void **)&orig_XPConnectionHasEntitlement);
}
}
Now you can use CTCallDial again if i'm not wrong ;)
and from here it's your tour to play with it ;)
fo any errors while compiling check @b3ll MessageBox
Good Luck