iphone reboot programmatically

I have finally found a way to programmatically restart an iOS device without rooting a device!!!! The command line tool to restart an iOS device is called libimobiledevice: http://krypted.com/mac-os-x/use-libimobiledevice-to-view-ios-logs/ It is truly amazing. One snag I ran into while installing was trying to install this line: brew install -v –devel –fresh automake autoconf libtool wget … Read more

how to get the message when receiving the “kCTMessageReceivedNotification” notification on IOS5

Here’s what I found … Just looking at the dumped private APIs, it looks like ChatKit.framework could help. Take a look at CKSMSService.h or CKMadridService.h for iMessage messages. I did quickly attempt to swizzle my own method in, for a couple methods in CKSMSService: – (void)_receivedMessage: (id)arg1 replace:(BOOL)arg2 replacedRecordIdentifier:(int)arg3 postInternalNotification:(BOOL)arg4; – (void)_receivedMessage: (id)arg1 replace:(BOOL)arg2 postInternalNotification:(BOOL)arg3; … Read more

How do I change my iOS applications’ entitlements?

For a jailbreak app/entitlement, you need to do something like this. First, create a file named entitlements.xml (or whatever you like): <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>com.apple.backboard.client</key> <true/> </dict> </plist> You can add more entitlements if you need. This example file just grants the app the com.apple.backboard.client entitlement. It doesn’t … Read more

Get list of all installed apps

You can use this code snippet: #import “InstalledAppReader.h” static NSString* const installedAppListPath = @”/private/var/mobile/Library/Caches/com.apple.mobile.installation.plist”; @interface InstalledAppReader() -(NSArray *)installedApp; -(NSMutableDictionary *)appDescriptionFromDictionary:(NSDictionary *)dictionary; @end @implementation InstalledAppReader #pragma mark – Init -(NSMutableArray *)desktopAppsFromDictionary:(NSDictionary *)dictionary { NSMutableArray *desktopApps = [NSMutableArray array]; for (NSString *appKey in dictionary) { [desktopApps addObject:appKey]; } return desktopApps; } -(NSArray *)installedApp { BOOL isDir = … Read more