iphone-privateapi

Is there a way to get iPhone charger's information in iOS 10+ using private API?

瘦欲@ 提交于 2019-12-08 03:58:25
问题 I used to use an app called Battery Life on iOS which I believe was using https://github.com/eldade/UIDeviceListener as a method to retrieve the charger's information (as in the wattage amount, voltage, and amplitude). However, that app has since been pulled from App Store and was replaced with a new version without that functionality, and UIDeviceListener has a note saying that it's no longer working in iOS 10+. Now, I currently have an iPhone X that I charge with Qi charger, and I'm just

Can you find individual app usage duration using SpringBoard services framework or other private framework?

霸气de小男生 提交于 2019-12-08 02:43:19
问题 I have a background service running on iOS5. I am trying to find the duration for which each foreground application runs. I came across this great post by Vikarti Anatra. how to determine which apps are background and which app is foreground on iOS by application id This shows how to get the current foreground process. However, what I would like to know is if there is a method which will give me the start time of various processes launched by Springboard so I can compute the duration. I am

Receive BluetoothManager notifications in background

拜拜、爱过 提交于 2019-12-08 01:04:07
问题 I'm using the BluetoothManager private framework in my app and I want to know how can I receive BluetoothManager notifications when the application is in background (ex: Receive the connected/disconected bluetooth notification in background). Thanks in advance. 回答1: Use // global notification explorer CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, MyCallBack, NULL, NULL, CFNotificationSuspensionBehaviorDeliverImmediately); and receive the notifications: // global

Accessing Private iOS Apis, How to? [closed]

放肆的年华 提交于 2019-12-07 20:54:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to access some private APIs from the iOS SDK, related to the Camera like: - (void)setExposureMode:(int)arg1; - (int)exposureMode; Etc. This is only for my personal development and I don't plan on submitting any Apps to the store. But I can't seem to figure out how to access and use these APIs. Is

Import ChatKit (i.e., Private Framework) OR using CKDBMessage somehow

断了今生、忘了曾经 提交于 2019-12-07 20:03:15
问题 First - I know private frameworks/APIs won't get me to the AppStore, this is for private use/research only. I can't get my project to compile with ChatKit.framework . Basically I need to somehow init a CKDBMessage object and get stuff from it. The first approach I tried is to be able to call this: CKDBMessage* msg = [[CKDBMessage alloc] initWithRecordID:lastID]; NSLog(@"GOT SMS: %@", msg.text); I couldn't get it to compile with any combination of these solutions: Simply add only CKDBMessage.h

Programmatically detect which iOS application is visible to user

…衆ロ難τιáo~ 提交于 2019-12-07 16:08:59
问题 I found this and the problem is that the answers on that question didn't pan out (I also tested them first) and also that it is over a year old. I've used the solution here to fetch the list of all running processes, but not of the struct kinfo_proc attributes seem to give any useful in detecting which app is currently visible to the user. Basically: I am trying to find out which app is currently visible (and open) to the user on iOS devices. It must work on stock devices (non-jailbroken) and

iOS event/notification for network activity up/down/off

半城伤御伤魂 提交于 2019-12-07 13:45:01
问题 I want a event/callback for my iOS app when the network activity goes from none to up (and the other way around). Similar to how Android does with onDataActivity(). I'm not talking about Reachability but when data actually starts or stops transmitting. The app is not for App Store and not for jailbreak. I have got a similar functionality of detecting when the screen goes on/off working by using CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), //center NULL, //

Dynamically Mocking iOS Dynamic Type System Text Size (UIContentSizeCategory)

杀马特。学长 韩版系。学妹 提交于 2019-12-06 17:52:25
问题 I'd like to easily test my app with different selections of system text size, including accessibility sizes. These can be set in the Settings app (Display & Brightness => Text Size or General => Accessibility => Larger Text). The only way I can find to currently do this is to go into Settings and change the value with the UI (edit: partial solution described below). This is slow and cumbersome. I suspect there's a way to dynamically alter it using private APIs, but I can't figure out how.

How to access Safari history from iPhone App using Private Frameworks

旧时模样 提交于 2019-12-06 16:34:02
I got a situation something like, i can use Private Frameworks of Apple in order to know the operations being performed on iPhone Safari ( i.e History the Tabs being browsed and time spend on browsing kind of info). I have gone through some of the things like Dumping Private frameworks. But i don't know which Framework to Dump i guess WebKit may help. Can some body please give the needful info to solve this problem. i have imported the Dumped classes to Frameworks i.e WebHistory.h, WebHistoryItem.h, WebPreferences.h Please let me know in case i miss anything #import "WebHistory.h" - (void

How to communicate between applications in iOS?

随声附和 提交于 2019-12-06 15:05:58
问题 Before we can use CFMessagePort , but now it's invalid for iOS7 and above, is there any replaced methods? I tried CFMessagePort when hooking the constructor of UIApplication in the jailbreak environment, but in most of the apps, it can't CFMessagePortCreateLocal successfully, it just return NULL.Am I wrong somewhere? static void setupUIApplicationMessagePort() { NSString *identifier = @"com.foo.foo.UIApplication"; CFMessagePortRef local = CFMessagePortCreateLocal(NULL, (__bridge CFStringRef