获取 Android 10
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
要开始使用 Android 10,您需要运行 Android 10 的硬件设备或模拟器以进行测试和开发。
您可以通过以下任一种方式获取 Android 10:
- 获取 Google Pixel 设备的 OTA 更新或系统映像
- 获取合作伙伴设备的 OTA 更新或系统映像
- 获取符合 Treble 标准的合格设备的 GSI 系统映像
- 设置要运行 Android 10 的 Android 模拟器
Google Pixel 设备
如果您使用的是合格的 Google Pixel 设备,则可以检查并更新 Android 版本,以便通过无线下载的方式获取 Android 10。
或者,如果您希望手动刷写设备,则可以在 Pixel 下载页面上获取设备的 Android 10 系统映像。请阅读有关如何将系统映像刷写到设备上的一般说明。当您需要更好地控制测试(例如自动测试或回归测试)时,此方法会很有用。
在大多数情况下,您无需重置所有数据即可切换到 Android 10,但建议您在注册设备前对数据进行备份。
Android 10 适用于以下 Google Pixel 设备:
- Pixel 和 Pixel XL
- Pixel 2 和 Pixel 2 XL
- Pixel 3 和 Pixel 3 XL
- Pixel 3a 和 Pixel 3a XL
合作伙伴设备
您可以使用我们合作伙伴生态系统中的任何设备在 Android 10 上进行开发和测试。请务必确保您使用的设备经过认证,以便为 Android 10 提供官方支持。
如需了解 Android 10 的设备可用性和官方支持,请与您的设备制造商联系或咨询您所在地区的运营商商店。如需获取设备方面的支持,请访问相应设备制造商的支持网站。
符合 Treble 标准的合格设备
如需在各种符合 Treble 标准的设备上进行更广泛的测试,您可以下载通用系统映像 (GSI) 并将其刷写到您的设备。如需详细了解如何将 GSI 映像刷写到您的设备,请访问 GSI 页面。
Android 模拟器
如果您无法访问可运行 Android 10 的硬件设备,建议您设置 Android 模拟器进行开发和测试。配置 Android 模拟器以运行 Android 10 是探索新功能和 API 以及测试 Android 10 行为变更的理想解决方案。
设置模拟器既快捷又方便,可让您模拟各种屏蔽网站和设备特性。您甚至可以模拟可折叠设备(在 Android Studio 3.5 及更高版本中)。
如需使用 Android 10 设置模拟器,请按下列步骤安装最新的系统映像并创建新的虚拟设备:
- 在 Android Studio 中,依次点击 Tools > SDK Manager
- 在 SDK Platforms 标签页中,选择窗口底部的 Show Package Details。
- 在 Android 10.0 (29) 下,选择系统映像(例如 Google Play Intel x86 Atom System Image)。
- 在 SDK Tools 标签页中,选择最新版 Android 模拟器。
- 点击 OK 开始安装。
- 安装完成后,依次选择 Tools > AVD Manager,然后按照说明创建新的 AVD。请务必选择不包含 Play 商店的设备定义,并为系统映像选择 29。
- 当您返回 AVD 管理器的虚拟设备列表时,双击新虚拟设备即可启动该设备。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-21。
[null,null,["最后更新时间 (UTC):2024-12-21。"],[],[],null,["# Get Android 10\n\nTo get started with Android 10, you'll need a hardware device or emulator\nrunning Android 10 for testing and development.\n\nYou can get Android 10 in any of these ways:\n\n1. Get an OTA update or system image for a [Google Pixel device](#on_pixel)\n2. Get an OTA update or system image for a [partner device](#on_partner)\n3. Get a GSI system image for a [qualified Treble-compliant device](#on_gsi)\n4. Set up an [Android Emulator](#on_emulator) to run Android 10\n\nGoogle Pixel device\n-------------------\n\nIf you have a qualified Google Pixel device, you can\n[check \\& update your Android version](https://support.google.com/pixelphone/answer/7680439)\nto receive Android 10 over the air.\n\nAlternatively, if you'd rather flash your device manually, you can get the\nAndroid 10 system image for your device on the\n[Pixel downloads page](https://developers.google.com/android/images).\nRead the general instructions for how to [flash a system\nimage](https://developers.google.com/android/images#instructions) to your\ndevice. This approach can be useful when you need more control\nover testing, such as for automated testing or regression testing.\n\nIn most cases, you don't need to do a full reset of your data to move to Android\n10, but it's recommended that you back up data before enrolling your device.\n\nAndroid 10 is available for the following Google Pixel devices:\n\n- Pixel and Pixel XL\n- Pixel 2 and 2 XL\n- Pixel 3 and 3 XL\n- Pixel 3a and 3a XL\n\nPartner device\n--------------\n\nYou can use any device from our ecosystem of partners for development and testing on Android 10. It's important to make sure the device you use is certified to provide official support for Android 10.\n\nFor device availability and official support for Android 10, please check with\nyour device manufacturer or a carrier store in your region. For support on your\ndevice, visit the device manufacturer's support site.\n\nQualified Treble-compliant device\n---------------------------------\n\nFor broader testing on a variety of Treble-compliant devices, you can download\nand flash a Generic System Image (GSI) to your device. Visit the\n[GSI page](/topic/generic-system-image) for details on how to flash a\nGSI image to your device.\n\nAndroid Emulator\n----------------\n\nIf you don't have access to a hardware device that can run Android 10, we\nrecommend setting up an Android Emulator for development and testing.\nConfiguring the Android Emulator to run Android 10 is a great solution\nfor exploring new features and APIs and testing with Android 10 behavior\nchanges.\n\nSetting up the emulator is fast and convenient and allows you\nto emulate various screen sites and device characteristics. You can even\nemulate a foldable device (in Android Studio 3.5 and later).\n\nTo set up an emulator with Android 10, install the latest system image\nand create a new virtual device as follows:\n\n1. In Android Studio, click **Tools \\\u003e SDK Manager**\n2. In the **SDK Platforms** tab, select **Show Package Details** at the bottom of the window.\n3. Below **Android 10.0 (29)** , select a system image such as **Google Play Intel x86 Atom System Image**.\n4. In the **SDK Tools** tab, select the latest version of **Android Emulator**.\n5. Click **OK** to begin the install.\n6. After install is finished, select **Tools \\\u003e AVD Manager** and follow the instructions to [create a new AVD](/studio/run/managing-avds#createavd). Be sure to select a device definition that does *not* include Play Store, and select **29** for the system image.\n7. When you return to the AVD Manager's list of virtual devices, double-click your new virtual device to launch it."]]