edgepedia

技术与人造世界 / 计算技术与数字系统 / 软件与编程 / Development tools and collaboration infrastructure / Frameworks, libraries, and APIs / Mobile and platform frameworks

综合 · Edgepedia阅读需 7 分钟

Google Play 服务

阅读英文原文

Google Play 服务(Google Play services)是一项专有的后台服务和软件平台,包名为 com.google.android.gms,运行于经过 Google 认证的 Android 设备上,为 Android 应用提供可共享、自动更新的 Google API 完整实现。应用只包含轻量级客户端库;在运行时,这些库与 Google Play 服务应用中运行的完整实现进行通信。1 Alphabet 自身将其描述为“一项核心系统软件,为每一台经过认证的 Android 设备提供关键功能”,欧盟委员会则认定,欧洲经济区内几乎所有 Google Android 设备都在使用它。2

关键事实详情
包名com.google.android.gms3
运行位置所有经过 Google 认证的 Android 设备上的一组核心设备端后台服务;可用于手机、平板电脑、笔记本电脑、电视、手表和汽车1
更新机制自动更新独立于运营商、操作系统或 OEM 系统镜像更新进行分发;运行 Android 7.0 或更高版本的设备在存储空间充足时通常会自动接收更新1
向后兼容性SDK 为各种设备形态提供对 Android 7.0(API 级别 24)的向后兼容性1
应用侧占用每个 SDK 都附带一个轻量级客户端库;R8 代码缩减优化器会移除未使用的代码以减小包体积1
采用情况根据欧盟委员会 2018 年引用的 AppBrain 数据,下载量最高的 Play 商店应用中超过 60% 使用了 Google Cloud Messaging 库,所有 Android 应用中有 45% 包含 AdMob 广告库4
监管状态2023 年 9 月 5 日被欧盟委员会根据《数字市场法案》指定为 Google Android 操作系统核心平台服务的一部分5

工作原理

Google Play 服务将开发者发布的代码与设备上运行的代码分离。每个 Google Play 服务 SDK 都包含一个轻量级客户端库,其 API 与主 Google Play 服务应用中运行的服务进行交互。这些库还提供用于处理运行时问题的辅助工具,例如服务缺失、被禁用或版本过旧的情况。1

这一架构有三项明确的好处。它优化存储和内存等设备端资源,因为实现由各应用共享,而非捆绑进每一个应用。它独立于操作系统、OEM 或应用更新接收自动更新,因此改进和缺陷修复能更快送达用户。它还提供对 Android 7.0(API 级别 24)的向后兼容性,使单次构建即可覆盖广泛的设备和设备形态。1

可用性检查。 没有 Google Play 商店的设备也未安装 Google Play 服务。开发者被引导在使用 Google API 之前调用 isGooglePlayServicesAvailable() 方法,GoogleApiAvailability 类会返回 SERVICE_MISSING、SERVICE_DISABLED 和 SERVICE_VERSION_UPDATE_REQUIRED 等状态码,以便应用做出适当反应。6 • 3

API 与 SDK

Google Play 服务为构建应用、增强隐私与安全、吸引用户和拓展业务提供了一整套广泛的 SDK。有文档记录的 API 领域包括位置(具有电池效率优化的精确实时定位)、用于媒体流传输和屏幕镜像的 Cast、用于社交和竞技游戏的 Play 游戏服务、用于设备端机器学习的 ML Kit、身份验证,以及用于支付和数字钱包的 Wallet。7

开发者从 Google Maven 仓库向应用的模块级 build.gradle 文件添加依赖;例如,位置库通过 implementation 'com.google.android.gms:play-services-location:21.4.0' 引入。带有缺陷修复和新功能的新 SDK 版本会定期发布并在发行说明中公布。6 com.google.android.gms 命名空间下的包索引涵盖广告、分析、应用索引、应用搜索、身份验证、Cast、Fitness、Games、Maps、Wallet、设备性能、位置、附近交互、ML Kit 和视觉 API。8

历史

Google 于 2012 年推出 Google Play 服务,称其为“我们的新平台,为您提供与 Google 产品更好的集成”,并在推出新能力方面更加敏捷。2012 年 12 月,2.0 版本将 Google Maps Android API 引入该平台,提供基于矢量的 2D 和 3D 地图、手势倾斜和旋转,以及面向主要机场和购物中心的室内地图,支持从 Froyo(API 级别 8)起的设备。9 2012 年 9 月,该平台还向访问 Google API 的 Android 应用提供了 OAuth 2.0 授权。10

Google Play 服务 4.0 于 2013 年 10 月发布,取消了对 Android 2.2(Froyo)的支持,因为当时超过 97% 的设备运行 Android 2.3(Gingerbread)或更新版本。同一版本引入了用于广告目的的新匿名标识符,取代 Android ID,并在 Google 设置中提供用户控制,可重置该标识符或选择退出基于兴趣的广告。11

数据收集

Google 表示,Google Play 服务在经过认证的 Android 设备上收集数据以支持核心设备功能。收集 IP 地址等有限的基本信息被描述为向设备、应用或浏览器传递内容所必需,设备制造商授予 Google Play 服务访问某些数据(如位置和联系人)的权限以支持这些功能。Google 表示,在许多情况下,该服务在本地访问数据,而不将其收集到设备之外。12

所述目的分为三类。为保障安全和防止欺诈,Google 收集验证请求来自真实用户的信息、有关已安装应用的数据(包括恶意软件扫描结果)、Google 账户和登录信息,以及 IMEI、MAC 地址和序列号等硬件标识符;Google 的设备配置服务(收集数据以保持设备更新)是 Google Play 服务的一部分。为支持 Android 生态系统,Google 收集有关 API 使用方式的信息,并且在启用 Google 位置精确度时,定期收集设备观测到的无线信号和传感器信息,以众包方式估算位置。为提供 Google 服务,它收集联系人和书签等数据以跨设备同步,同步 Google 账户设置,并启用 Google Maps 等嵌入式功能。12

欧盟的监管处理

Google Play 服务处于两起重大欧洲反垄断事务的中心。在 2018 年根据《欧盟运行条约》第 102 条作出的 Android 裁决中,委员会因 Google 要求制造商将 Google 搜索和 Chrome 预装作为授权 Play 商店的条件等行为,对其处以 43.43 亿欧元罚款;普通法院于 2022 年基本维持该裁决,但将罚款降至 41.25 亿欧元。13 • 14

根据《数字市场法案》,委员会 2023 年 9 月 5 日的指定决定将 Google Android 和 Alphabet 的相关中间件——“特别是 Google Play 服务——不要与应用商店 Google Play 混淆”——指定为单一核心平台服务,指定范围限于其有助于控制 Google Android 平板电脑和智能手机的基本功能并使软件应用能够在这些设备上运行的部分。5 委员会的理由是,Alphabet 的中间件应被视为操作系统的一部分,因为它控制基本功能并确保 Google Android 的有效运行。2

随后的 DMA 程序已深入到该平台所提供的能力。2026 年 1 月 27 日启动、2026 年 7 月 16 日决定的规范程序要求 Google 为第三方 AI 服务提供与 11 项 Google Android 功能的有效互操作性,包括热词检测、Gemini Nano 等设备端模型和后台执行,实施工作应在 Android 18 中完成,最迟不晚于 2027 年 8 月 1 日。15 另外,2026 年 7 月,委员会因 Google 在搜索中的自我优待以及限制开发者引导客户使用替代购买渠道等 DMA 违规行为,对其处以 8.9 亿欧元(约 10 亿美元)罚款。16

microG 与替代方案

microG 服务(GmsCore)是一个自由开源软件框架,允许为 Google Play 服务设计的应用在 Play 服务不可用的系统上运行,重新实现了云消息传递、身份验证、地图和位置等接口。17 配套的 GoogleServicesFramework 提供了一个基础层,第三方应用依赖它在没有官方 Google Play 服务的设备上正常运行。19

References

  1. Overview of Google Play services, Google for Developers
  2. European Commission, DMA Case DMA.100002 – Alphabet – OIS App stores, Decision of 5 September 2023
  3. GoogleApiAvailability reference, Google Play services
  4. European Commission, Case AT.40099 Google Android, decision documents
  5. EUR-Lex, Summary of Commission Decision of 5 September 2023 (DMA designation, Alphabet)
  6. Set up Google Play services, Google for Developers
  7. Google Play services, Google for Developers
  8. Package Index, Google Play services
  9. New Google Maps Android API now part of Google Play services, Android Developers Blog (3 December 2012)
  10. Google Play services and OAuth Identity Tools, Android Developers Blog (26 September 2012)
  11. Google Play Services 4.0, Android Developers Blog (October 2013)
  12. Learn about Google Play services, Android Help
  13. Focus – Record fine of EUR 4.125 billion imposed on Google (Android), Court of Justice of the EU
  14. The General Court largely confirms the Commission's Android decision, press release (September 2022)
  15. Alphabet specification proceedings – Interoperability for AI services, Digital Markets Act
  16. Commission fines Google €890 million for breaches of the Digital Markets Act
  17. microg/GmsCore: Free implementation of Play Services, GitHub
  18. microG GmsCore: install the Play Services replacement, Hysen Labs
  19. microg/GoogleServicesFramework overview, DeepWiki

Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026

© 2026 Biostate AI。依据 Edgepedia Community License,注明出处即可免费使用。 嵌入参考卡片。

报告错误

Google Play 服务

请至少选择一个原因。