1
0
mirror of https://github.com/privacyguides/i18n.git synced 2025-06-29 13:52:35 +00:00
Files
i18n/i18n/zh/os/android-overview.md
2023-12-07 11:32:05 +00:00

20 KiB
Raw Blame History

title, icon, description
title icon description
Android概述 simple/android Android is an open-source operating system with strong security protections, which makes it our top choice for phones.

安卓徽标{ align=right }

The Android Open Source Project is a secure mobile operating system featuring strong app sandboxing, Verified Boot (AVB), and a robust permission control system.

Our Advice

挑选安卓 ROM

When you buy an Android phone, the default operating system comes bundled with apps and functionality that are not part of the Android Open Source Project. Many of these apps—even apps like the dialer which provide basic system functionality—require invasive integrations with Google Play Services, which in turn asks for privileges to access your files, contacts storage, call logs, SMS messages, location, camera, microphone, and numerous other things on your device in order for those basic system apps and many other apps to function in the first place. Frameworks like Google Play Services increase the attack surface of your device and are the source of various privacy concerns with Android.

换用一个不预装这类软件的安卓 ROM 可以解决这个问题。 不巧,很多安卓 ROM 不支持 AVB、回滚保护、系统更新、等这些关键的安全功能破坏了安卓的安全模型。 某些 ROM 发布的版本属于 userdebug 构建版本。这个版本通过 ADB 来提供 root 访问,并且为了支持调试,放宽了 SELinux 规则。这进一步扩大了攻击面,弱化了安全模型。

在挑选安卓 ROM 时,理想的情况,是能找到坚持安卓安全模型的 ROM。 最起码的是,你选用的 ROM 应该提供生产版本(而非 userdebug版本)的构建,能支持 AVB、回滚保护、按时推送系统更新、把 SELinux 设为强制模式。 我们推荐的所有安卓 ROM 都满足上述标准。

我们推荐的安卓 ROM :material-arrow-right-drop-circle:{.md-button}

避免 Root

Rooting 安卓手机会大大降低安全性,因为它削弱了完整的 安卓安全模型。 如果有一个被降低的安全性所帮助的漏洞,这可能会减少隐私。 常见的root方法涉及直接篡改启动分区使得它不可能成功地进行验证性启动。 需要root的应用程序也会修改系统分区这意味着验证启动将不得不保持禁用。 在用户界面上直接暴露root也增加了你的设备的 攻击面 ,并可能有助于 特权升级 漏洞和SELinux政策的绕过。

Content blockers which modify the hosts file (AdAway) and firewalls (AFWall+) which require root access persistently are dangerous and should not be used. 它们也不是解决其预期目的的正确方法。 For content blocking we suggest encrypted DNS or VPN server blocking solutions instead. RethinkDNS、TrackerControl和AdAway在非root模式下将占用VPN插槽通过使用本地环回VPN使你无法使用增强隐私的服务如Orbot或真正的VPN服务器。

AFWall+基于 包过滤 方法工作,在某些情况下可能会被绕过。

我们认为通过root手机所做的安全牺牲不值得那些应用程序的可疑隐私利益。

Install Updates

重要的是,不要使用 报废的 版本的Android。 较新版本的安卓系统不仅会收到操作系统的安全更新,也会收到重要的隐私增强更新。

For example, prior to Android 10 any apps with the READ_PHONE_STATE permission could access sensitive and unique serial numbers of your phone such as IMEI, MEID, or your SIM card's IMSI; whereas now they must be system apps to do so. 系统应用只由OEM或安卓发行提供。

Sharing Media

You can avoid giving many apps permission to access your media with Android's built-in sharing features. Many applications allow you to "share" a file with them for media upload.

For example, if you want to post a picture to Discord you can open your file manager or gallery and share that picture with the Discord app, instead of granting Discord full access to your media and photos.

Security Protections

已验证的启动

经过验证的启动 ,是安卓安全模式的一个重要组成部分。 它能够保护您免受 罪恶的 攻击、恶意软件的持久性,并确保安全更新不能用 回滚保护降级

安卓10及以上版本已经从全盘加密转向更灵活的 基于文件的加密。 你的数据使用独特的加密密钥进行加密,而操作系统文件则不被加密。

验证启动确保了操作系统文件的完整性,从而防止有物理访问权限的对手在设备上篡改或安装恶意软件。 在不太可能的情况下,如果恶意软件能够利用系统的其他部分并获得更高的特权访问,验证性启动将防止并在重启设备时恢复对系统分区的更改。

遗憾的是OEM厂商只有在其库存的安卓系统上才有义务支持验证性启动。 只有少数OEM厂商如谷歌支持在他们的设备上定制AVB密钥注册。 此外一些AOSP衍生产品如LineageOS或/e/ OS即使在对第三方操作系统有验证启动支持的硬件上也不支持验证启动。 我们建议你在 购买新设备之前,先查看支持 **。 不支持验证性启动的AOSP衍生产品是 ,不推荐

许多原始设备制造商也有破碎的实施验证启动,你必须注意他们的营销之外。 例如Fairphone 3和4在默认情况下是不安全的因为 股票引导程序信任公共AVB签名密钥。 这破坏了Fairphone设备上的验证引导因为系统将引导替代Android操作系统如/e/ ,而没有任何关于自定义操作系统使用的警告

固件更新

固件更新是维护安全的关键,没有它们,你的设备就不可能是安全的。 原始设备制造商与他们的合作伙伴有支持协议,在有限的支持期内提供闭源组件。 这些内容详见每月的 Android安全公告

由于手机的组件,如处理器和无线电技术依赖于闭源组件,更新必须由各自的制造商提供。 因此,重要的是,你要在一个有效的支持周期内购买设备。 高通公司三星 对其设备的支持期为4年而便宜的产品往往支持周期更短。 With the introduction of the Pixel 6, Google now makes their own SoC, and they will provide a minimum of 5 years of support. With the introduction of the Pixel 8 series, Google increased that support window to 7 years.

不再受SoC制造商支持的EOL设备无法从OEM供应商或后市场Android分销商处获得固件更新。 这意味着这些设备的安全问题将继续得不到解决。

Fairphone, for example, markets their Fairphone 4 device as receiving 6 years of support. 然而SoCFairphone 4上的高通骁龙750G的EOL日期要短得多。 这意味着高通公司为Fairphone 4提供的固件安全更新将在2023年9月结束无论Fairphone是否继续发布软件安全更新。

Android 权限

Android上的权限 ,让你控制哪些应用程序被允许访问。 谷歌定期在每个连续的版本中对权限系统进行 改善。 你安装的所有应用程序都是严格的 沙箱,因此,没有必要安装任何杀毒软件。

A smartphone with the latest version of Android will always be more secure than an old smartphone with an antivirus that you have paid for. It's better not to pay for antivirus software and to save money to buy a new smartphone such as a Google Pixel.

Android 10:

  • Scoped Storage gives you more control over your files and can limit what can access external storage. Apps can have a specific directory in external storage as well as the ability to store specific types of media there.
  • Tighter access on device location by introducing the ACCESS_BACKGROUND_LOCATION permission. This prevents apps from accessing the location when running in the background without express permission from the user.

Android 11:

Android 12:

Android 13:

  • A permission for nearby Wi-Fi access. The MAC addresses of nearby Wi-Fi access points was a popular way for apps to track a user's location.
  • More granular media permissions, meaning you can grant access to images, videos or audio files only.
  • Background use of sensors now requires the BODY_SENSORS permission.

An app may request a permission for a specific feature it has. For example, any app that can scan QR codes will require the camera permission. Some apps can request more permissions than they need.

Exodus can be useful when comparing apps that have similar purposes. If an app requires a lot of permissions and has a lot of advertising and analytics this is probably a bad sign. We recommend looking at the individual trackers and reading their descriptions rather than simply counting the total and assuming all items listed are equal.

!!! 推荐

If an app is mostly a web-based service, the tracking may occur on the server side. [Facebook](https://reports.exodus-privacy.eu.org/en/reports/com.facebook.katana/latest/) shows "no trackers" but certainly does track users' interests and behavior across the site. Apps may evade detection by not using standard code libraries produced by the advertising industry, though this is unlikely.

!!! note

Privacy-friendly apps such as [Bitwarden](https://reports.exodus-privacy.eu.org/en/reports/com.x8bit.bitwarden/latest/) may show some trackers such as [Google Firebase Analytics](https://reports.exodus-privacy.eu.org/en/trackers/49/). This library includes [Firebase Cloud Messaging](https://en.wikipedia.org/wiki/Firebase_Cloud_Messaging) which can provide [push notifications](https://en.wikipedia.org/wiki/Push_technology) in apps. This [is the case](https://fosstodon.org/@bitwarden/109636825700482007) with Bitwarden. That doesn't mean that Bitwarden is using all of the analytics features that are provided by Google Firebase Analytics.

Privacy Features

用户资料

多个用户配置文件可以在 设置系统多个用户 是Android中最简单的隔离方式。

通过用户个人资料,你可以对一个特定的个人资料施加限制,如:打电话、使用短信或在设备上安装应用程序。 每个用户资料使用自己的加密密钥进行加密,不能访问任何其他人的个人资料。 即使是设备所有者,如果不知道他们的密码,也不能查看其他人的个人资料。 多个个人资料是一种更安全的隔离方法。

工作身份

工作配置文件 是隔离单个应用程序的另一种方式,可能比单独的用户配置文件更方便。

A device controller app such as Shelter is required to create a Work Profile without an enterprise MDM, unless you're using a custom Android OS which includes one.

该工作档案依赖于设备控制器来运作。 诸如 文件穿梭接触搜索封锁 或任何种类的隔离功能必须由控制器实现。 You must also fully trust the device controller app, as it has full access to your data inside the work profile.

这种方法通常不如二级用户配置文件安全;但是,它确实允许你在工作和个人配置文件中同时运行应用程序的便利。

VPN Killswitch

Android 7 and above supports a VPN kill switch, and it is available without the need to install third-party apps. 如果VPN断开连接此功能可以防止泄漏。 可以在 ⚙️ 设置网络 & 互联网VPN⚙️阻止没有VPN的连接

全局切换

现代安卓设备有全局切换键,用于禁用蓝牙和定位服务。 安卓12引入了相机和麦克风的切换功能。 在不使用时,我们建议禁用这些功能。 在重新启用之前,应用程序不能使用被禁用的功能(即使被授予个别许可)。

Google Services

如果你使用的是带有谷歌服务的设备无论是你的原生操作系统还是像GrapheneOS这样的安全沙盒式的操作系统你可以做一些额外的改变来改善你的隐私。 我们仍然建议完全避免使用谷歌服务,或者通过将 Shelter 等设备控制器与GrapheneOS的沙盒化谷歌游戏结合起来将谷歌游戏服务限制在特定的用户/工作档案中。

高级保护计划

如果你有一个谷歌账户,我们建议注册 高级保护计划。 任何拥有两个或更多支持 FIDO 的硬件安全密钥的人都可以免费使用。

高级保护计划提供增强的威胁监控,并支持:

  • Stricter two-factor authentication; e.g. that FIDO must be used and disallows the use of SMS OTPs, TOTP and OAuth
  • 只有谷歌和经过验证的第三方应用程序可以访问账户数据
  • 在 Gmail 帐户上扫描收到的邮件以进行 钓鱼 尝试
  • 更严格的 安全的浏览器扫描 与谷歌浏览器
  • 对丢失凭证的账户有更严格的恢复程序

如果你使用非沙盒式的Google Play服务在股票操作系统上很常见高级保护计划还带有 额外的好处 ,例如。

  • Not allowing app installation outside the Google Play Store, the OS vendor's app store, or via adb
  • 强制性的自动设备扫描与 Play Protect
  • 警告你有未经验证的应用程序

Google Play 系统更新

在过去,安卓系统的安全更新必须由操作系统供应商来提供。 从安卓10开始安卓变得更加模块化谷歌可以通过特权游戏服务推送安全更新 一些 系统组件。

如果你有一个以安卓10或以上系统出厂的EOL设备并且无法在你的设备上运行我们推荐的任何操作系统你很可能最好坚持使用你的OEM安卓安装而不是这里没有列出的操作系统如LineageOS或/e/ OS。 这将允许你从谷歌获得 ,一些 安全修复,同时不会因为使用不安全的安卓衍生产品而违反安卓安全模式,增加你的攻击面。 我们仍然建议尽快升级到支持的设备。

广告 ID

所有安装了Google Play服务的设备都会自动生成一个 广告ID ,用于定向广告。 禁用此功能以限制收集到的关于你的数据。

在带有 Sandboxed Google Play的安卓发行上,进入 ⚙️ 设置应用程序Sandboxed Google Play谷歌设置广告,并选择 删除广告 ID

在拥有特权的谷歌游戏服务的安卓发行版上(如股票操作系统),该设置可能在几个位置之一。 查看

  • ⚙️ 设置谷歌广告
  • ⚙️ 设置隐私广告

你可以选择删除你的广告ID或者 ,选择退出基于兴趣的广告这在安卓的OEM发行中是不同的。 如果呈现出删除广告ID的选项那是首选。 如果没有那么请确保选择退出并重新设置你的广告ID。

SafetyNet和Play Integrity API

安全网Play Integrity APIs ,一般用于 银行应用程序。 许多银行应用程序在GrapheneOS中使用沙盒游戏服务可以正常工作但是一些非金融应用程序有自己的粗略防篡改机制可能会失败。 GrapheneOS通过了 basicIntegrity 检查,但没有通过认证检查 ctsProfileMatch。 安卓8或更高版本的设备有硬件认证支持如果没有泄露的密钥或严重的漏洞就无法绕过。

As for Google Wallet, we don't recommend this due to their privacy policy, which states you must opt out if you don't want your credit rating and personal information shared with affiliate marketing services.