Detect which app is in foreground on iOS9 without

2019-03-08 10:18发布

I'm trying to log users individual app usage on iOS9.

I'd rather prefer that it wouldn't use jailbreak limited solutions, self explanatory. Doing the variation of this app on a jailbroken phone shouldn't be hard.

This will certainly not be released on the App Store as Apple wouldn't allow it.

I'm looking for any private API that can do this, any hidden iOS API's that can be used to do this. ANYTHING.

What I've already looked through:

which proved to be relatively helpful - we now can assume that there is some sort of additional access requirement, probably an entitlement, but we don't really know how it should look like

However all of these proved to be unhelpful because Apple fixed this security flaw with iOS8 and the method to copy/access the currently front most app bundle identifier no longer works.

Question is: Is there someone who knows a workaround using different tools/exploits that do not require jailbreak?

Ideas:

Here is my Reddit version of this question if anyone wants to check it out. Also if it's of any value, here are the runtime headers for iOS9 and list of Apple's private API's.

2条回答
Luminary・发光体
2楼-- · 2019-03-08 10:53

sysctl is still open but they block certain combinations of selectors. I did this on iOS 7 and gave Apple Product Security the code. They won't patch iOS 7 but rely on App Review. iPhone 4 is wide open.

查看更多
Root(大扎)
3楼-- · 2019-03-08 11:08

Unfortunately, I was looking for a similar solution and have come to the conclusion that, at least at this point in time, there are no known methods that will allow you to determine app usage on iOS. Even the MDM providers such as Good, Airwatch, MobileIron, etc. don't seem to be able to do this. If anyone is able to come up with a solution, I'd love to see it.

For now, however, I think we would have seen a solution if someone had one that worked on the latest iOS.

查看更多
登录 后发表回答