【发布时间】:2017-02-15 16:00:15
【问题描述】:
我需要一个演示应用程序,它会在计时器事件时从后台自行唤醒。使用私有API是否可以不越狱?试过这段代码:
void* sbServices = dlopen(SBSERVPATH, RTLD_LAZY);
int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier");
int result;
result = SBSLaunchApplicationWithIdentifier(CFSTR("com.my.app"), false);
dlclose(sbServices);
没用
【问题讨论】:
标签: ios objective-c iphone-privateapi