I’m very sorry, I can’t see where the problem is. After bridging, Swift can indeed call the CTCellularDataPlanSetIsEnabled method directly, but when hooking it, the system immediately enters Safe Mode.
logos,perfect:
void CTCellularDataPlanSetIsEnabled(Boolean en);
%hookf(void, CTCellularDataPlanSetIsEnabled, Boolean enabled) {
%orig(enabled);
}
Orion,safemode:
class CTCellularDataPlanSetIsEnabledHook: FunctionHook {
static let target = Function.symbol("CTCellularDataPlanSetIsEnabled", image: nil);
func function(_ ioHIDClient: Bool) {
orig.function(ioHIDClient);
}
}
I’m very sorry, I can’t see where the problem is. After bridging, Swift can indeed call the
CTCellularDataPlanSetIsEnabledmethod directly, but when hooking it, the system immediately enters Safe Mode.logos,perfect:
Orion,safemode: