iOS13 - iOS13.3.1 App后台保活Tweak

2,924 阅读1分钟

先把仓库的地址放出来占个位吧😂,太晚了,睡了。

WatchDogger

核心方法

plist中添加 Executables -> runningboardd

记得 killall runningboardd

// 请自行导入RBProcess.h RBSProcessIdentity.h,工程中已经包含
%hook RBProcess
- (void)_lock_suspend{
  if ([self.identity.embeddedApplicationIdentifier isEqualToString:@"your bundleId"]) {
    return;
  }
  %orig;
}
- (void)_lock_resume{
	%orig;
}
- (_Bool)_lock_terminateWithContext:(id)arg1{
	return %orig;
}
%end