iphone-privateapi

Does Apple allow the usage of sysctl.h within iOS applications?

泄露秘密 提交于 2019-12-11 03:13:08
问题 Does Apple allow the usage of sysctl.h within iOS applications? PS: App Scanner, a third party tool that checks code for possible private-API usage seems to think it's okay. Note: There is one more question like this : How can I know if I'm using private frameworks? 回答1: With the usual disclaimer that nobody can tell you what a reviewer will do, I can say for sure that there are apps in the store that use sysctl functions. (Minor point: Simply including a header isn't a problem since symbols

Send a global touch event on iOS 6

六月ゝ 毕业季﹏ 提交于 2019-12-11 02:38:17
问题 I wanna build a automatic iOS app test framework. I can record the touch event by IOHIDFamily, so any way to replay this? I tried GSEvent like this void sendclickevent(){ mach_port_t thePortOfApp = GSCopyPurpleNamedPort("com.fuckyou.fuck"); GSEventRecord header; GSHandInfo click; GSPathInfo pathInfo = {2,2,2,1,1,{50,50}, NULL}; bzero(&header, sizeof(header)); bzero(&click, sizeof(click)); header.type = kGSEventHand; header.subtype = kGSEventSubTypeUnknown; header.location.x = 50; header

Is there a way to find pid of a process of socket peer?

◇◆丶佛笑我妖孽 提交于 2019-12-10 21:35:16
问题 I have the following case: Two applications (mine and 3rd party) on iOS need to communicate over TCP/IP I can change the code of my app, but not the 3rd party app The protocol can't be changed (because I can't change the 3rd party app). In my app, I want to make sure that I talk to the correct app. I know how I can get peer port with geetpeername What I am looking for is a way to figure out the pid of the process which uses this port. I found similar question: How do you determine the PID of

iOS 8 - How to determine the foreground app as well as get list of running apps

时光总嘲笑我的痴心妄想 提交于 2019-12-09 08:49:08
问题 On iOS 7.0 and below, SBFrontmostApplicationDisplayIdentifier from the Springboard framework specified the app running in the foreground, but that capability has been blocked (considered as a vulnerability, see the Common Vulnerabilities and Exposures page dedicated to it here) in iOS 8. Does anyone have an iOS 8 alternative for this? 回答1: It is not possible to do it on iOS 8 since a vulnerability was discovered. More info here: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4361 来源:

Is there any private api for iphone that detect sms sent or received [closed]

偶尔善良 提交于 2019-12-09 01:31:19
问题 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 3 years ago . I need to implement an app that detect an event when sms are received or sent on iPhone.Reading Sms is not required. my app is going to run in background using apple's background multitasking feature for voip and navigators. I can use private api as my client doesn't need this app on appstore. Thanks. 回答1: It's

Taking Screenshots from iOS app - emulating Display recorder (query on the internals)

纵然是瞬间 提交于 2019-12-08 22:22:31
问题 I need to create an iOS app which can take screenshots of other apps, videos etc. as a part of an experiment. I am open to using Private API's since I won't be publishing the app to the app store. I could successfully use the method GetUIScreenImage() to take snapshots of the current screen (app screen). However, due to sandbox restrictions I am not able to take screenshots while in the background. I get the error - "Cannot call CreateUIScreenImage() while the app is in background". I

Is there a private API to be able to detect what is current foreground app on iOS?

余生颓废 提交于 2019-12-08 20:16:31
问题 I am not planning to send this app to AppStore. It's just an experimental app. So, I am not worried about AppStore approval/rejection. I am looking for a way, how I can determine a) What is the current foreground app (my app will be in the background at that moment. I may use audio player or voip for this) b) Detect when new application became foreground app 回答1: It looks like this question has this answer for mine question. how to determine which apps are background and which app is

How to access Safari history from iPhone App using Private Frameworks

∥☆過路亽.° 提交于 2019-12-08 09:56:18
问题 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,

Using CoreTelephony framework to get IMEI and IMSI on iOS 7

六眼飞鱼酱① 提交于 2019-12-08 09:07:08
问题 Hi developers around the world, the app I am making is for in house distribution, we used some Apple's little secrets to get the app working as we want: like getting the IMEI and IMSI with methods described here: get IMEI on iPhone with CoreTelephony? It worked fine for last 2 years, but since more and more people in the company moved to iOS 7, we found this method no longer suits our need - it simply returns a nil in iOS 7. The whole system is designed to hold IMEI and IMSI info, modifying

iOS Private Frameworks

…衆ロ難τιáo~ 提交于 2019-12-08 08:43:03
问题 I'm trying to use Private Frameworks in my project, The problem is when I add the .framework file to the project, there is no header file Any solution for that? Thanks! 回答1: What BJ Homer said is correct: private frameworks are for Apple's use only, so there's no reason why they would ship the headers. That said, if you want to walk on the wild side, and you don't want to submit your app to the app store, you can try using class-dump to create headers based on the library file in the