Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release, bukan aosp-main, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Browser yang mendukung WebUSB,
seperti Chrome atau Edge 79+
Mengaktifkan koneksi USB
Sebelum menjalankan Android di perangkat, Anda harus mengaktifkan koneksi USB:
Aktifkan pembukaan kunci OEM dan proses debug USB di opsi developer:
Di aplikasi Setelan, ketuk Tentang ponsel.
Ketuk Build number tujuh kali.
Saat Anda melihat pesan You are now a developer!, ketuk <-.
Ketuk System, lalu ketuk Developer options.
Aktifkan Buka kunci OEM dan Proses debug USB. Jika
pembukaan kunci OEM tidak tersedia, hubungkan ke internet agar perangkat dapat
melakukan check in. Jika masih tidak berhasil, Anda dapat memaksa check-in: Di aplikasi Telepon, masukkan *#*#CHECKIN#*#* (*#*#2432546#*#*)
(tidak memerlukan SIM). Setelah memasukkan nomor (tidak perlu menekan tombol panggil),
teks akan menghilang dan notifikasi berhasil akan muncul.
Jika buka kunci OEM tetap tidak tersedia, perangkat Anda mungkin terkunci SIM oleh
operator dan bootloader tidak dapat dibuka kuncinya.
Hubungkan perangkat ke port USB di workstation.
Mem-flash perangkat
Jika Anda memiliki
Android Debug Bridge (adb)
yang berjalan di komputer, hentikan layanan adb sebelum melanjutkan sehingga
tidak mengganggu proses flashing. Untuk menghentikan adb, jalankan:
adbkill-server
Di browser pada workstation pengembangan, buka
flash.android.com. Halaman Selamat Datang akan muncul.
Klik Izinkan akses ADB untuk mengizinkan alat berkomunikasi dengan perangkat
pengujian Anda melalui adb.
Klik Tambahkan perangkat baru.
Pilih perangkat Anda dari daftar, lalu klik Connect. Daftar ini mungkin
tidak berisi nama perangkat lengkap.
Di layar perangkat, pilih Selalu izinkan dari komputer ini
dan klik Oke untuk menerima koneksi proses debug USB.
Pilih perangkat yang terhubung di browser Anda.
Telusuri dan pilih build Anda dari daftar. Anda juga dapat memilih
opsi, seperti menghapus total perangkat atau memaksa flashing semua partisi.
Untuk mulai mem-flash, klik Instal. Perangkat akan dimulai ulang dan memasuki mode
fastboot.
Setelah Flash Complete muncul, putuskan sambungan perangkat dari kabel USB.
Perangkat flash tidak dapat melakukan booting
Jika perangkat tidak dapat melakukan booting secara normal, Anda mungkin tidak dapat mem-flash
perangkat menggunakan petunjuk sebelumnya. Sebagai gantinya, Anda dapat mencoba mem-flash dengan
Fastboot.
Untuk melakukannya, Anda harus mem-booting perangkat ke mode Fastboot terlebih dahulu menggunakan
kombinasi tombol:
Tentukan kombinasi tombol untuk perangkat Anda. Untuk tabel kombinasi tombol
Fastboot, lihat
Kombinasi tombol Fastboot.
Nonaktifkan perangkat.
Nyalakan perangkat dan segera tahan kombinasi tombol untuk
perangkat Anda (ditentukan pada langkah 1).
Setelah perangkat Anda dalam mode Fastboot, buka
flash.android.com dan ikuti
petunjuk flashing sebelumnya, dengan mengabaikan langkah-langkah yang terkait dengan
ADB.
Mengatasi error transfer USB
Terkadang perangkat Android mengalami masalah saat berkomunikasi melalui port atau hub USB tertentu
karena throughput data yang tinggi. Untuk mengatasi error transfer:
Jangan gunakan hub USB. Hal ini mencakup koneksi melalui monitor.
Jangan gunakan kabel ekstensi atau adaptor USB jika memungkinkan.
Coba port USB lain. Port belakang sering kali lebih andal daripada
port depan.
Jika Anda menggunakan port USB C, coba gunakan port USB A.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Flash with Android Flash Tool\n\n[Android Flash Tool](https://flash.android.com/)\nis a web-based tool that lets you flash a pre built Android build to your\ndevice for development and testing.\n| **Note:** If you need to flash and test your own AOSP changes, refer to [Flash your device with Fastboot](/docs/setup/test/running).\n\nAndroid Flash Tool supports these devices:\n\n- Pixel 2 and newer\n- [DragonBoard RB3 (also known as db845c)](https://wiki.linaro.org/AOSP/db845c)\n- [HiKey 960](https://www.96boards.org/product/hikey960/)\n- [HiKey](https://www.96boards.org/product/hikey/)\n\nMeet requirements\n-----------------\n\nTo run the Android Flash Tool, you must meet these requirements:\n\n- [Hardware requirements](/docs/setup/start/requirements#hardware-requirements)\n- A browser supporting [WebUSB](https://caniuse.com/#search=Webusb), such as [Chrome](https://www.google.com/chrome/) or Edge 79+\n\nEnable your USB connection\n--------------------------\n\nBefore running Android on a device, you must enable your USB connection:\n\n1. Enable OEM unlocking and USB debugging in the developer options:\n\n 1. In the Settings app, tap **About phone**.\n 2. Tap **Build number** seven times.\n 3. When you see the message **You are now a developer!** , tap **\\\u003c-**.\n 4. Tap **System** , then tap **Developer options**.\n 5. Enable **OEM unlocking** and **USB debugging** . If OEM unlocking is unavailable, connect to the internet so the device can check in. If that still doesn't work, you can force a check in: In the Dialer app, enter **\\*#\\*#CHECKIN#\\*#\\*** (\\*#\\*#2432546#\\*#\\*) (no SIM required). After entering the number (no need to press call), the text disappears and a success notification appears.\n\n If OEM unlocking remains unavailable, your device might be SIM locked by\n your carrier and the bootloader can't be unlocked.\n2. Connect your device to a USB port on your workstation.\n\nFlash your device\n-----------------\n\n1. If you have\n [Android Debug Bridge (adb)](https://developer.android.com/studio/command-line/adb)\n running on your machine, stop the adb service before proceeding so that\n it doesn't interfere with the flashing process. To stop adb, run:\n\n adb kill-server\n\n2. In a browser on your development workstation, open\n [flash.android.com](https://flash.android.com/). The Welcome page appears.\n\n3. Click **Allow ADB access** to allow the tool to communicate with your test\n device through adb.\n\n4. Click **Add new device**.\n\n5. Select your device from the list and click **Connect**. This list might\n not contain the full device name.\n\n6. On your device's screen, select **Always allow from this computer**\n and click **OK** to accept the USB debugging connection.\n\n7. Select the connected device in your browser.\n\n8. Search for and select your build from the list. You can also select\n options, such as wiping the device or force flashing all partitions.\n\n9. To start flashing, click **Install**. The device reboots and enters fastboot\n mode.\n\n10. After **Flash Complete** appears, disconnect the device from the USB cable.\n\n| **Note:** If this is the first time flashing this device from this development workstation, the workstation loses the connection to the device and asks you to find it again. The next time you flash the same device on this workstation, you won't see the request to find the device. After reconnecting, the flashing resumes by downloading the images and performing all the required steps.\n\n### Flash devices unable to boot\n\nIf your device is unable to boot normally, you might not be able to flash your\ndevice using the previous instructions. Instead, you can try flashing with\nFastboot.\n\nTo do this, you need to first boot your device into Fastboot mode by using a\nkey combination:\n\n1. Determine the key combination for your device. For a table of Fastboot key combinations, see [Fastboot key combinations](/docs/setup/reference/fastboot-keys).\n2. Turn the device off.\n3. Turn the device on and immediately hold down the key combination for your device (determined in step 1).\n\nOnce your device is in Fastboot mode, open\n[flash.android.com](https://flash.android.com/) and follow the earlier\n[flashing instructions](#flashing-your-device), ignoring the steps related to\nADB.\n\n### Resolve USB transfer errors\n\nSometimes Android devices have trouble communicating through certain USB ports\nor hubs due to the high throughput of data. To resolve transfer errors:\n\n- Don't use USB hubs. This includes connections through monitors.\n- Don't use USB extension cables or adapters if possible.\n- Try a different USB port. Rear ports are often more reliable than front ones.\n- If you're using a USB C port, try a USB A port instead.\n\nReturn Pixel to public build\n----------------------------\n\nIf you want to return your Pixel device to a public build, use the\n[Android Flash Tool back-to-public option](https://flash.android.com/back-to-public)."]]