gpt4 book ai didi

android - 安全地发送电子邮件附件

转载 作者:搜寻专家 更新时间:2023-11-01 08:09:06 24 4
gpt4 key购买 nike

我希望在 Android 上以电子邮件附件的形式安全地发送文件(文件内容对用户而言是私有(private)的)。从我读过的所有帖子来看,似乎只有在 SD 卡上创建文件并提供对所有(其他应用程序)的读取访问权限后,才能将文件作为电子邮件附件发送。就访问此数据的设备上的其他用户而言(假设是多用户设备),这似乎本质上是不安全的。

有什么方法可以在 Android 上安全地执行此操作?

最佳答案

From all the posts I've read it appears that it's only possible to send a file as an email attachment after creating it on the SD card and providing read access to all (other apps).

电子邮件程序必须能够读取附件才能发送附件。据我所知,在人类历史上创造的每一个操作系统上都是如此。

虽然我没有尝试使用 ContentProvider 发送电子邮件附件,但这可能不一定要求您将文件放在外部存储设备上(您称之为“SD 卡”)。使附件可供其他应用程序使用。无论如何,您没有很好的方法来限制只有电子邮件客户端的读取访问权限,尽管您可以在一段时间后(例如,在您认为电子邮件已发送后)使访问不可用。

This appears to be inherently insecure in terms of other users on the device accessing this data (assuming multi-user device).

Android 目前不是多用户操作系统。

Is there any way to do this securely on Android?

自己发送,通过编写自己的电子邮件客户端,也许使用随处可见的 JavaMail for Android 端口。

关于android - 安全地发送电子邮件附件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11577375/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com