Io Ohta
Io Ohta

Reputation: 11

How to get CellInfo, SNR, UARFCN, BandWidth... on iOS9.x

I want radio information with CoreTelephony.framework on iOS 9.x.
And I tried the following this question.
Get CellID, LAC, ... on iOS 8.3

Add this xml on plist,

    <key>com.apple.CommCenter.fine-grained</key>
<array>
    <string>spi</string>
</array>

But not working this code.

_CTServerConnectionCopyWakeReason
_CTServerConnectionCopyVoiceMailInfo

with this code.

if ([[[UIDevice currentDevice] platformString] isEqual: @"iPhone 6"]) {
    void (*_CTServerConnectionCopyWakeReason)(struct CTServerConnection*, void*, CFArrayRef*) = dlsym(handle, "_CTServerConnectionCopyWakeReason");
    _CTServerConnectionCopyWakeReason(_conn, &tmp, &cells);
} else {
    void (* _CTServerConnectionCopyWakeReason)(struct CTResult*, struct CTServerConnection*, void*, CFArrayRef*) = dlsym(handle, "_CTServerConnectionCopyWakeReason");
    _CTServerConnectionCopyWakeReason(&res, _conn, &tmp, &cells);
}


If you know how get iOS radio information, it is no problem if any private APIs.

Upvotes: 0

Views: 804

Answers (0)

Related Questions