Android 和 iOS 上的隐私相关权限有多慷慨?

How generous are privacy-related permissions on Android and iOS?

我有几个关于 Android 和 iOS 隐私保护的问题。我看过 Android 文档,但作为初学者我不确定我是否理解正确(我将我的理解放在方括号中)。特别是,没有找到明显的方法并不意味着没有获得相同信息的变通方法。因此,有哪位开发者可以就以下问题给出建议吗?关于 iOS 的回答也很感激。

关于Android:

Can the user allow an app to use the microphone/camera/location only once (i.e. the system should always ask the user every time this app needs access)?

不直接。他们可以通过授予权限、使用应用程序,然后进入“设置”并撤销权限来产生这种效果。我怀疑很少有人这样做。直接在运行时权限对话框中提供 one-time-use-only 选项是一个有趣的选项,但我怀疑 Google 会传递它,因为它会使流程过于复杂。

If microphone/camera/location permission is given to an app, can it access these while in background?

位置,是的,尽管 Android 8.0+ 有一些限制(为了节能)。 Microphone/camera,是的,尽管据说不再以 Android P.

开头

Is it possible for an app (running in foreground) to obtain the list of other apps currently running or installed on the device?

已安装,是的。 运行,不是真的,在 Android.

的较新版本上

Can an app in background know what other apps are currently running

见上文。

and which one is in foreground?

不是,在 Android 的较新版本上。

Can it possibly figure out whether the user is using the phone?

你看得出来if the screen is on。恕我直言,"whether the user is using the phone" 有很多可能的定义。

Can an app (apart from the OS itself) take screenshots?

不知道你是怎么区分的。应用程序可以通过 Android 5.0+ 上的媒体投影 API 请求屏幕截图和屏幕录像,但这需要用户接受。这种接受是 one-time-per-process 的事情,因此用户将来必须再次授予访问权限(类似于您正在寻找的 microphone/camera/location)。