ios - 获取 iOS 设备上当前事件进程的列表

标签 ios swift3

我目前正在尝试为 iOS 设备开发一个安全应用程序,我想在我的应用程序中包含所有当前正在运行的进程的列表。

有可能吗?

还有一个问题:是否可以获取所有已安装应用程序及其权限的列表?如果是,如何?

如有任何提示/代码示例,我们将不胜感激。

最佳答案

您可以使用私有(private) API 列出设备上安装的所有应用程序(如 this question 中所述),但是您不能提交如果您使用它,您的应用程序将被发布到 App Store。

关于当前正在运行的进程,iOS9之前有过,现在没有了:

In iOS 9, the sandbox now prevents a process from accessing the kern.proc, kern.procargs, and kern.procargs2 values for other processes

iOS apps are not permitted to see what other apps are running

https://developer.apple.com/videos/play/wwdc2015-703/

关于ios - 获取 iOS 设备上当前事件进程的列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40824461/

相关文章:

ios - 在 tableview 中向上滚动时 UITableViewCell 为空

ios - 无法将类型 '__NSArrayI' (0x10df73c08) 的值转换为 'NSDictionary' (0x10df74108)

ios - 将变量与 UserDefaults 同步的正确方法

ios - 阿拉伯语/自动布局的本地化

iOS 7 Core Image QR Code 生成太模糊

ios - UITextField 选中时清除,但如果没有输入也恢复数据

ios - 从模态弹出到 Root View Controller

ios - 使用回调延迟 swift 服务类的输出

iphone - 如何检索保存在临时位置的图像

ios - 当我在 iOS Swift 3 中手动将文本分配给 UITextField 时,会调用哪个委托(delegate)方法