Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release thay vì aosp-main để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để kiểm thử bản dựng, bạn có thể chạy bản dựng trên trình mô phỏng hoặc chạy (đẩy) bản dựng trên một thiết bị thực.
Kiểm thử bản dựng trên trình mô phỏng
Cuttlefish là một trình mô phỏng thiết bị ảo dùng để kiểm thử bản dựng. Để biết thông tin về cách chạy bản dựng trên Cuttlefish, hãy xem hướng dẫn Bắt đầu.
Để kiểm thử ứng dụng, bao gồm cả ứng dụng Dịch vụ Google Automotive (GAS), hãy sử dụng Trình mô phỏng Android.
Kiểm thử bản dựng trên thiết bị
Công cụ fastboot cho phép bạn cài đặt ROM nhiều loại thiết bị hơn so với Android Flash Tool và có thể dùng để cài đặt ROM các bản dựng cục bộ của riêng bạn cho thiết bị để kiểm thử.
Để biết thông tin về cách sử dụng công cụ dòng lệnh fastboot, hãy xem phần Cài ROM bằng Fastboot
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# Test a build\n\nTo test your build, you can either run your build on an emulator or run (flash)\nit on an actual device.\n| **Note:** If you intend to test your build on a device, remember to obtain the proprietary binaries or your build won't boot successfully. Sometimes the source might have different binaries for different builds and branches. If you obtain binary blobs at this point, you need to unpack them, `m installclean`, and rebuild. For more information on this process, see [Download proprietary binaries](/docs/setup/download#downloading-proprietary-binaries).\n\nTest your build on an emulator\n------------------------------\n\n*Cuttlefish* is a virtual device emulator used to test your builds. For\ninformation on running a build on Cuttlefish, see\n[Get started](/docs/devices/cuttlefish/get-started)\nguide.\n\nFor app testing, including Google Automotive Services (GAS) apps, use\n[Android Emulator](/docs/automotive/start/what_automotive#google-automotive-services-gas).\n\nTest your build on a device\n---------------------------\n\nThe *fastboot* tool lets you to flash more device types than the Android\nFlash Tool and can be use to flash your own local builds to devices for testing.\n\nFor information on using the fastboot command-line tool, see\n[Flash with Fastboot](/docs/setup/test/running)\n| **Note:** Google provides an additional flash tool, called [*Android Flash Tool*](/docs/setup/test/flash) that is intended for use only with prebuilt builds. Android Flash Tool is easier to use than the fastboot, but supports fewer devices."]]