# Android Pie

**Android Pie**（也称为 Android 9）是 Android 移动操作系统的第九个主要版本，由谷歌于 2018 年 8 月 6 日发布，API 级别为 28，并于同一天向 Pixel 手机推送 OTA 更新。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> 它是最后一个带有甜点代号的 Android 版本，终结了从 Cupcake（1.5）到 Oreo（8.0–8.1）的序列。<sup>[2](https://www.androidpolice.com/2019/08/22/androids-iconic-dessert-names-are-going-away-starting-with-android-10/)</sup> 其重点变化包括新的双按钮手势导航系统、与 DeepMind 合作构建的基于机器学习的电源管理、数字健康套件，以及包括带回滚保护的验证启动在内的一系列安全要求。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup><sup> • </sup><sup>[3](https://www.cnet.com/reviews/android-pie-preview/)</sup>

| 关键事实 | 详情 |
|---|---|
| 发布 | 2018 年 8 月 6 日；API 级别 28；发布当天向 Pixel 手机推送 OTA 更新<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> |
| 导航 | 首个采用谷歌手势导航的 Android 版本：单个药丸形主页按钮，上滑打开最近应用轮播，在药丸按钮上向右滑动可切换到上一个应用<sup>[3](https://www.cnet.com/reviews/android-pie-preview/)</sup> |
| 电源管理 | 与 DeepMind 合作构建的自适应电池；应用待机分组将每个应用放入五个优先级分组之一，从而设定作业和闹钟频率<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup><sup> • </sup><sup>[4](https://developer.android.com/about/versions/pie/power)</sup> |
| 数字健康 | 仪表盘、应用定时器、更新后的勿扰模式和睡前模式；2018 年秋季在 Pixel 手机上推出，Android One 和其他设备于同年晚些时候推出<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> |
| 安全 | CDD 要求 SELinux 强制访问控制和 seccomp 沙箱；在防篡改存储中提供带回滚保护的验证启动；默认启用 TLS 和 DNS over TLS<sup>[5](https://android.googlesource.com/platform/compatibility/cdd/+/android-9.0.0_r16/9_security-model/9_7_security-features.md)</sup><sup> • </sup><sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup><sup> • </sup><sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> |
| Treble | 所有搭载 Android 9 及更高版本发布的设备均符合 Treble 要求<sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup> |
| 最高采用率 | 2020 年 4 月占活跃 Android 设备的 31.3%，为当时各版本中最高份额<sup>[7](https://9to5google.com/2020/04/10/google-kills-android-distribution-numbers-web/)</sup> |
| 支持终止 | 最终安全更新于 2022 年 1 月 4 日；官方补丁支持于 2023 年 8 月 5 日结束<sup>[8](https://invgate.com/itdb/android-9-pie)</sup> |

## 开发与命名

Android P 最早于 2018 年 3 月作为早期开发者预览版出现，随后通过多个预览版本加入更多功能，最终于 2018 年 8 月 6 日公开发布。<sup>[9](https://www.androidpolice.com/2018/08/06/google-serves-hot-slice-android-9-pie-p-name-finally-goes-official-todays-public-release/)</sup> 甜点命名传统在 Pie 发布一年后终结：2019 年 8 月 22 日，谷歌宣布 Android Q 将直接以“Android 10”为名发布，使 Pie 成为最后一个以甜点命名的版本。<sup>[2](https://www.androidpolice.com/2019/08/22/androids-iconic-dessert-names-are-going-away-starting-with-android-10/)</sup> 谷歌给出的理由是规模：全球有 25 亿台活跃 Android 设备，它希望名称对所有人都“同样易懂”，于是原本一直位于操作系统名称与甜点代号之间的版本号成了完整名称。<sup>[10](https://9to5google.com/2019/08/22/android-10-dessert-name/)</sup> 这次改版还在数字品牌标识之外带来了新的标志和配色。<sup>[11](https://arstechnica.com/gadgets/2019/08/unsweetened-android-swaps-sugary-codenames-for-boring-numbers/)</sup>

## 主要功能

**手势导航。** Pie 引入了一种可选导航模式，用单个药丸形主页按钮取代传统的三按钮栏。从底部上滑会打开最近使用应用的轮播，以全屏预览显示；将药丸按钮向右拉会切换到上一个应用，反复切换可在最近应用之间循环。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup><sup> • </sup><sup>[3](https://www.cnet.com/reviews/android-pie-preview/)</sup> 返回按钮自 Android 诞生以来一直是标配，此时基本被移除，但该系统并未像 iPhone X 那样完全手势化，因为仍保留了一些返回导航。<sup>[12](https://www.androidcentral.com/pie-review)</sup><sup> • </sup><sup>[13](https://www.cnet.com/tech/mobile/google-android-pie-versus-apple-ios-12-guess-whos-winning-now/)</sup> 谷歌在发布前已为这套新导航研发了一年多。<sup>[14](https://android-developers.googleblog.com/2018/08/introducing-android-9-pie.html)</sup> 用户可选择是否使用手势，厂商也不必强制加入。<sup>[12](https://www.androidcentral.com/pie-review)</sup> 2019 年 9 月 3 日发布的 [Android 10](https://www.edgepedia.org/zh/android-10) 用全手势导航取代了这套双按钮系统。<sup>[15](https://www.androidcentral.com/pie)</sup>

**自适应电池与应用待机分组。** 谷歌与 DeepMind 合作开发自适应电池，它利用机器学习为用户最关心的应用优先分配系统资源。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> 其底层机制是应用待机分组：系统根据应用最近使用的时间和频率，将其放入五个优先级分组之一，而分组决定该应用的作业运行频率以及可触发闹钟的频率。这些限制仅在设备使用电池供电时生效。当使用机器学习预测时，分组的选择会预判用户接下来的操作，而不只是依据近期使用情况。<sup>[4](https://developer.android.com/about/versions/pie/power)</sup>

**自适应亮度。** Pie 会学习用户在不同环境中喜欢的亮度设置，并自动调整。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup>

**数字健康。** 该套件包括显示使用数据的仪表盘、在达到时限后将会把应用图标变灰的应用定时器、更新后的勿扰模式，以及睡前模式——后者会启用夜间灯光和勿扰模式，并在睡前让屏幕渐变为灰度。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> 发布时，数字健康在运行 Android 9 的 Pixel 手机上处于测试阶段，并于 2018 年秋季在 Pixel 手机上正式推出，[Android One](https://www.edgepedia.org/zh/android-one) 和其他设备于同年晚些时候获得。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup>

**其他面向用户的新增功能。** Pie 改进了通知，并新增用于管理多个摄像头镜头的 API。<sup>[15](https://www.androidcentral.com/pie)</sup> 省电模式被收紧：无论目标 API 级别如何，后台执行限制都适用于所有应用；屏幕关闭时定位服务可能被禁用；后台应用没有网络访问权限。<sup>[4](https://developer.android.com/about/versions/pie/power)</sup>

## 安全与隐私变更

Android 9 兼容性定义文档要求设备实现包含 Android 沙箱，并具备安全增强型 Linux（SELinux）强制访问控制、seccomp 沙箱以及其他 [Linux 内核](https://www.edgepedia.org/zh/linux-kernel)安全功能。<sup>[5](https://android.googlesource.com/platform/compatibility/cdd/+/android-9.0.0_r16/9_security-model/9_7_security-features.md)</sup> seccomp 将进程的内核入口点限制为系统调用的允许列表；谷歌将其应用于媒体框架中的进程以及所有应用，而且它是一道单向门：进程一旦放弃某些系统调用，就永远无法重新获得。<sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup>

**验证启动。** 通过 Android 的验证启动，信任从受硬件保护的信任根经由引导加载程序完整传递到已验证分区，而保存在防篡改存储中的回滚保护会阻止降级。<sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup> 自 [Android Nougat](https://www.edgepedia.org/zh/android-nougat) 起，验证启动一直是强制要求，但对无法以高于 50 MiB/s 的速度执行 AES 加密的设备予以豁免；自 2015 年 8 月起，Android 每月发布安全公告；2018 年，OEM 协议增加了 90 天安全更新保证的要求。<sup>[16](https://dl.acm.org/doi/10.1145/3448609)</sup>

**隐私。** Android 9 启用了硬件安全能力，通过安全专用芯片保护信用卡信息等敏感数据，并默认启用 TLS 和 [DNS over TLS](https://www.edgepedia.org/zh/dns-over-tls)。<sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> 自 Android 9 起，应用无法读取或写入另一个应用创建的文件，从而完成了 Android 6 开始的按应用文件隔离模型。<sup>[17](https://cs.unibg.it/seclab-papers/2021/USENIX/seapp.pdf)</sup>

## 面向开发者的变更

Android 9 的 API 级别为 28。神经网络 API 1.1 新增了九种操作：Pad、BatchToSpaceND、SpaceToBatchND、Transpose、Strided Slice、Mean、Div、Sub 和 Squeeze，通常通过 TensorFlow Lite 访问。<sup>[14](https://android-developers.googleblog.com/2018/08/introducing-android-9-pie.html)</sup> Kotlin 已是 Android 上的一等语言，并受益于改进的编译器优化，尤其是针对循环的优化。<sup>[14](https://android-developers.googleblog.com/2018/08/introducing-android-9-pie.html)</sup> 谷歌还发布了更新的 API 28 SDK（修订版 6），其中在常用 API 中包含可空性注解。<sup>[14](https://android-developers.googleblog.com/2018/08/introducing-android-9-pie.html)</sup>

Pie 增加了屏幕缺口（刘海）支持，提供用于检查缺口位置和形状的 API，以及可模拟多种缺口形状的开发者选项；它支持中央刘海、角落刘海，以及屏幕顶部和底部都有刘海。<sup>[14](https://android-developers.googleblog.com/2018/08/introducing-android-9-pie.html)</sup><sup> • </sup><sup>[13](https://www.cnet.com/tech/mobile/google-android-pie-versus-apple-ios-12-guess-whos-winning-now/)</sup> 图像处理新增了 HEIF（高效图像文件格式，也称 HEIC）编码，可改善压缩并减少存储和网络数据用量；MediaMuxer 和 MediaExtractor 类支持 HEIF 静态图像样本，可通过 ImageDecoder 或 BitmapFactory 进行 JPEG 到 HEIC 转换，HeifWriter 可写入 HEIF 静态图像。<sup>[18](https://developer.android.com/about/versions/pie/android-9.0)</sup>

## 采用情况与支持生命周期

以其同时代竞争对手的标准来看，推送速度较慢。2019 年 5 月，即发布九个月后，谷歌报告称 10.4% 的 Android 设备运行 Pie，这是其生命周期中第一个确凿的分发统计；相比之下，Oreo 在自身周期的同一时点仅为 5.7%，因此 Pie 的采用速度大约是其前代的两倍。<sup>[19](https://www.theverge.com/2019/5/7/18535811/google-android-9-pie-usage-numbers-10-percent-ios-comparison-io-2019)</sup> 到 2019 年 8 月，Pie 占生态系统的 22.6%，是前一年 Android 7 到 8 更新率的两倍多，但远低于 iOS 13——后者在发布后不到一个月就覆盖了一半的 iPhone。<sup>[20](https://www.theverge.com/2019/10/23/20927371/android-9-pie-google-install-base-percent-vs-iphone-updates-project-treble-mainline)</sup> 2020 年 4 月，Pie 占设备的 31.3%，为各版本中最高份额，领先于 Oreo 的 21.3% 和 Android 10 的 8.2%；谷歌当时停止在网页上发布分发数据。<sup>[7](https://9to5google.com/2020/04/10/google-kills-android-distribution-numbers-web/)</sup><sup> • </sup><sup>[21](https://www.androidauthority.com/android-version-distribution-748439/)</sup> 在通过 [Android Studio](https://www.edgepedia.org/zh/android-studio) 发布的 2023 年 4 月季度数据中，Pie 仍运行在 12.3% 的活跃 Android 手机和平板上，落后于 [Android 11](https://www.edgepedia.org/zh/android-11)（23.5%）、Android 10（18.5%）和 [Android 12](https://www.edgepedia.org/zh/android-12)（16.5%）。<sup>[22](https://www.phonearena.com/news/android-11-most-distributed-version_id146898)</sup>

发布时，Pie 可在 [Google Pixel](https://www.edgepedia.org/zh/google-pixel)、Pixel XL、Pixel 2 和 Pixel 2 XL 以及 Essential PH-1 上下载；来自[索尼移动](https://www.edgepedia.org/zh/sony-mobile)、小米、HMD Global、OPPO、[vivo](https://www.edgepedia.org/zh/vivo-technology-company)、一加和 Essential 的测试计划设备，以及符合条件的 Android One 设备，预计在 2018 年秋季结束前获得更新。<sup>[3](https://www.cnet.com/reviews/android-pie-preview/)</sup><sup> • </sup><sup>[1](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)</sup> 谷歌表示，多家 OEM 厂商应在 2018 年底前推出更新。<sup>[23](https://arstechnica.com/gadgets/2018/08/google-finalizes-android-p-as-android-9-pie-launching-today/)</sup>

在补丁方面，谷歌对 Android 9 安全补丁的官方支持于 2023 年 8 月 5 日结束，最终安全更新于 2022 年 1 月 4 日发布；最终版本为 9.0.0_r76（版本号 PSV1.210329.021）。<sup>[8](https://invgate.com/itdb/android-9-pie)</sup> 谷歌不再为 Android 9 提供官方安全维护，使仍运行该版本的设备暴露于支持结束后发现的漏洞之中。<sup>[8](https://invgate.com/itdb/android-9-pie)</sup>

## Treble、Mainline 与更新速度

随 [Android 8.0 Oreo](https://www.edgepedia.org/zh/android-8-0-oreo) 推出的 Treble 项目将操作系统模块化，使厂商代码与 Android 框架代码可以分别更新，从而让现有硬件上的更新更容易；Essential 报告称，仅用三天就将 [Essential Phone](https://www.edgepedia.org/zh/essential-phone) 更新到 Android P 预览版。<sup>[23](https://arstechnica.com/gadgets/2018/08/google-finalizes-android-p-as-android-9-pie-launching-today/)</sup> Pie 使 Treble 成为强制要求：每台搭载 Android 9 或更高版本发布的设备都必须符合 Treble，并充分利用其架构。<sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup> 其效果在后续推送中显现：一加 7 系列在谷歌发布日后仅 18 天就获得 Android 10，LG 在全球范围内用 139 天更新了 LG G8，而 G7 的 Android Pie 更新曾用 303 天。<sup>[21](https://www.androidauthority.com/android-version-distribution-748439/)</sup>

## 与 Oreo、Android 10 和 iOS 12 的比较

与 Oreo 相比，Pie 的差异在于手势导航系统、自适应电池及其背后的基于分组的电源管理、数字健康、屏幕缺口支持、HEIF 以及收紧的省电模式；搭载 Pie 发布的设备还必须符合 Treble，而搭载 Oreo 发布的设备则无此要求。<sup>[15](https://www.androidcentral.com/pie)</sup><sup> • </sup><sup>[4](https://developer.android.com/about/versions/pie/power)</sup><sup> • </sup><sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup> Android 10 随后移除了 Pie 的双按钮导航，改用全手势系统，引入了深色模式，并加强了权限管理。<sup>[15](https://www.androidcentral.com/pie)</sup>

与同时代发布的 iOS 12 相比，Pie 在接纳刘海和手势方面与苹果不相上下，但由于保留了返回按钮，其手势化程度仍不及 iPhone X。<sup>[13](https://www.cnet.com/tech/mobile/google-android-pie-versus-apple-ios-12-guess-whos-winning-now/)</sup> 在数字健康方面，iOS 12 的屏幕使用时间提供每周使用报告以及面向用户及其子女的使用限制，可与 Pie 的仪表盘和应用定时器相提并论；CNET 认为，由于厂商会自定义手势和刘海，Android 的实现会不够统一。<sup>[13](https://www.cnet.com/tech/mobile/google-android-pie-versus-apple-ios-12-guess-whos-winning-now/)</sup>

## 评价与影响

评测者将手势导航视为 Pie 整体上最大的变化，并认为它虽有前景但尚未完成：Android Central 认为该系统需要打磨，而打磨在 Android 10 中才到来；CNET 则认为保留返回按钮使体验不如 iPhone X 上那样完整。<sup>[12](https://www.androidcentral.com/pie-review)</sup><sup> • </sup><sup>[13](https://www.cnet.com/tech/mobile/google-android-pie-versus-apple-ios-12-guess-whos-winning-now/)</sup> 一些宣传中的功能在发布时并非对所有用户可用：数字健康需要加入测试版或等待后续更新，非 Pixel 设备的可用性也落后于发布日。<sup>[8](https://invgate.com/itdb/android-9-pie)</sup><sup> • </sup><sup>[3](https://www.cnet.com/reviews/android-pie-preview/)</sup> GSMArena 在运行最新公开 Pie 版本的 Pixel 2 XL 上重新运行了其标准基准测试套件，以量化该版本带来的性能变化。<sup>[24](https://www.gsmarena.com/android_9_pie-review-1802.php)</sup>

Pie 的设计选择延续了下来：其手势系统是 Android 10 全手势导航的直接前身，其 Treble 合规要求成为后来所有发布的基线，而它作为最后一个以甜点命名的版本，也成为从 Cupcake 到 Pie 这一命名传统的终点。<sup>[15](https://www.androidcentral.com/pie)</sup><sup> • </sup><sup>[6](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)</sup><sup> • </sup><sup>[2](https://www.androidpolice.com/2019/08/22/androids-iconic-dessert-names-are-going-away-starting-with-android-10/)</sup>

## References

1. [Android 9 Pie: Powered by AI for a smarter, simpler experience that adapts to you, Google blog](https://blog.google/products-and-platforms/platforms/android/introducing-android-9-pie/)
2. [Android's iconic dessert names are going away, starting with Android 10, Android Police](https://www.androidpolice.com/2019/08/22/androids-iconic-dessert-names-are-going-away-starting-with-android-10/)
3. [Android Pie review, CNET](https://www.cnet.com/reviews/android-pie-preview/)
4. [Power management, Android Developers](https://developer.android.com/about/versions/pie/power)
5. [Android 9 Compatibility Definition Document, section 9.7 Security Features](https://android.googlesource.com/platform/compatibility/cdd/+/android-9.0.0_r16/9_security-model/9_7_security-features.md)
6. [Android Security Paper 2023, Google](https://services.google.com/fh/files/misc/android-enterprise-security-paper-2023.pdf)
7. [Google kills Android distribution numbers on the web, 9to5Google](https://9to5google.com/2020/04/10/google-kills-android-distribution-numbers-web/)
8. [Android 9 Pie, ITDB (InvGate)](https://invgate.com/itdb/android-9-pie)
9. [Google serves up a hot slice of Android 9 Pie, Android Police](https://www.androidpolice.com/2018/08/06/google-serves-hot-slice-android-9-pie-p-name-finally-goes-official-todays-public-release/)
10. [Here's why Google is dropping dessert names w/ 'Android 10', 9to5Google](https://9to5google.com/2019/08/22/android-10-dessert-name/)
11. [Unsweetened: Android swaps sugary codenames for boring numbers, Ars Technica](https://arstechnica.com/gadgets/2019/08/unsweetened-android-swaps-sugary-codenames-for-boring-numbers/)
12. [Android 9 Pie review: Greater than the sum of its slices, Android Central](https://www.androidcentral.com/pie-review)
13. [Google Android Pie vs. Apple iOS 12, CNET](https://www.cnet.com/tech/mobile/google-android-pie-versus-apple-ios-12-guess-whos-winning-now/)
14. [Introducing Android 9 Pie, Android Developers Blog](https://android-developers.googleblog.com/2018/08/introducing-android-9-pie.html)
15. [Android Pie: Everything you need to know about Android 9, Android Central](https://www.androidcentral.com/pie)
16. [The Android Platform Security Model, ACM Transactions on Privacy and Security](https://dl.acm.org/doi/10.1145/3448609)
17. [SEApp: Bringing Mandatory Access Control to Android Apps, USENIX Security 2021](https://cs.unibg.it/seclab-papers/2021/USENIX/seapp.pdf)
18. [Android 9 features and APIs, Android Developers](https://developer.android.com/about/versions/pie/android-9.0)
19. [Google reveals that 10 percent of devices are using Android 9 Pie, The Verge](https://www.theverge.com/2019/5/7/18535811/google-android-9-pie-usage-numbers-10-percent-ios-comparison-io-2019)
20. [Android 9 was installed on less than a quarter of the ecosystem as Android 10 launched, The Verge](https://www.theverge.com/2019/10/23/20927371/android-9-pie-google-install-base-percent-vs-iphone-updates-project-treble-mainline)
21. [Android version distribution: Are Google's faster rollout initiatives working?, Android Authority](https://www.androidauthority.com/android-version-distribution-748439/)
22. [Latest data shows more Android devices running Android 9 than Android 13, PhoneArena](https://www.phonearena.com/news/android-11-most-distributed-version_id146898)
23. [Google finalizes Android P as Android 9 "Pie," launching today, Ars Technica](https://arstechnica.com/gadgets/2018/08/google-finalizes-android-p-as-android-9-pie-launching-today/)
24. [Android 9 Pie review, GSMArena](https://www.gsmarena.com/android_9_pie-review-1802.php)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems › Unix-like and Linux › Android and mobile variants

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/android-pie

English original: https://www.edgepedia.org/android-pie
