0
當用戶撥打電話時,我們可以訪問iPhone應用程序中的RxQuality。我想爲JailBreak做這件事。RxQuality in iPhone
我能夠訪問的信號強度,雖然下面的代碼
int getSignalStrength()
{
void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony", RTLD_LAZY);
int (*CTGetSignalStrength)();
CTGetSignalStrength = dlsym(libHandle, "CTGetSignalStrength");
if(CTGetSignalStrength == NULL)
NSLog(@"Could not find CTGetSignalStrength");
int result = CTGetSignalStrength();
dlclose(libHandle);
return result;
}