取得 Android 10
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如要開始使用 Android 10,您需要使用執行 Android 10 的硬體裝置或模擬器進行測試和開發。
您可以透過下列任一方式取得 Android 10:
- 取得 Google Pixel 裝置的 OTA 更新或系統映像檔
- 取得合作夥伴裝置的 OTA 更新或系統映像檔
- 取得符合 Treble 規範的合格裝置的 GSI 系統映像檔
- 設定 Android Emulator 以執行 Android 10
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 和 3a XL
合作夥伴裝置
您可以使用合作夥伴生態系統中的任何裝置,在 Android 10 上進行開發和測試。請務必確認您使用的裝置已通過認證,可提供 Android 10 的官方支援。
如要瞭解 Android 10 的裝置供應情形和官方支援情形,請洽詢裝置製造商或當地電信業者的商店。如需裝置支援服務,請造訪裝置製造商的支援網站。
符合 Treble 規範的合格裝置
如要對各種符合 Treble 規範的裝置進行更廣泛的測試,您可以下載通用系統映像檔 (GSI),並將其刷新至裝置。請參閱 GSI 頁面,進一步瞭解如何將 GSI 映像檔刷新至裝置。
Android Emulator
如果您無法取得可執行 Android 10 的硬體裝置,建議您設定 Android Emulator 進行開發和測試。設定 Android Emulator 以執行 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 系統映像檔。
- 在「SDK Tools」分頁中,選取最新版本的 Android Emulator。
- 按一下「OK」開始安裝。
- 安裝完成後,請依序選取「Tools」>「AVD Manager」,然後按照操作說明建立新的 AVD。請務必選取「不」包含 Play 商店的裝置定義,並選取 29 做為系統映像檔。
- 返回 AVD Manager 的虛擬裝置清單後,請連按兩下新的虛擬裝置以啟動裝置。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間: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."]]