Ever tried to read some interesting data like the Serial Number, IMEI, Phone Number… from your iPhone (or an other iDevice) ? Some data is easy to access, some other uses not supported API calls. I have written a simple App which can read the above mentioned data. You can download it here (click)
Reading common data is very easy, this is the Code for the UniqueIdentifier, iDevice Name, System Name, System Version and Model:
- // Stores the complete Text Output
- NSMutableString *data = [[NSMutableString alloc] init];
- // Reading Legal Apple Data
- [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"phoneUniqueIdentifier", [[UIDevice currentDevice] uniqueIdentifier]]]; - [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"name", [[UIDevice currentDevice] name]]]; - [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"systemName", [[UIDevice currentDevice] systemName]]]; - [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"systemVersion", [[UIDevice currentDevice] systemVersion]]]; - [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"model", [[UIDevice currentDevice] model]]]; - [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"localizedModel", [[UIDevice currentDevice] localizedModel]]];
- #import "UIDevice-IOKitExtensions.h"
- // Reading not by the Appstore supported Data
- [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"IMEI", [[UIDevice currentDevice] imei]]]; - [data appendString:[NSString stringWithFormat: @"%@: %@nn",
@"SerialNr", [[UIDevice currentDevice] serialnumber]]];
Be aware that you cannot submit an App with this IOKit-Extension into the Appstore!
No comments:
Post a Comment