이 페이지에서는 빠른 부팅 및 adb 도구를 사용하여 기기에 Android 빌드를 플래시하는 방법을 자세히 설명합니다. Adb를 사용하면 개발 워크스테이션을 Android 지원 기기에 직접 연결하고 다양한 작업을 실행할 수 있습니다. 빠른 부팅을 사용하면 Android를 설치 (플래시)하고 기기의 부트로더와 상호작용할 수 있으므로 OS 및 앱 변경사항을 테스트할 수 있습니다. 앱 개발에 중점을 둔 adb 작동 방식에 관한 자세한 내용은 Android 스튜디오의 Android 디버그 브리지 (adb) 페이지를 참고하세요.
adb 코드에 관한 자세한 내용은 adb 리드미를 참고하세요.
빠른 부팅 및 adb가 있는지 확인
Android를 빌드하면 adb 및 빠른 부팅이 기본적으로 빌드됩니다. adb 및 빠른 부팅을 사용할 수 있는지 확인하려면 다음 명령어를 실행합니다.
OEM 잠금 해제 및 USB 디버깅을 사용 설정합니다. OEM 잠금 해제를 사용할 수 없는 경우 기기가 체크인할 수 있도록 인터넷에 연결합니다. 그래도 문제가 해결되지 않으면 강제로 체크인할 수 있습니다. 다이얼러 앱에서 *#*#CHECKIN#*#* (*#*#2432546#*#*)을 입력하세요(SIM이 필요하지 않음). 번호를 입력한 후(통화를 누를 필요가 없음) 텍스트가 사라지고 성공 알림이 표시됩니다.
OEM 잠금 해제를 계속 사용할 수 없는 경우 이동통신사에서 기기의 SIM을 잠갔을 수 있으며 부트로더를 잠금 해제할 수 없습니다.
기기를 워크스테이션의 USB 포트에 연결합니다.
빠른 부팅 모드로 부팅
Android를 기기에 플래시하려면 기기가 빠른 부팅 모드(Fastboot mode)여야 합니다.
기기를 빠른 부팅 모드로 부팅하는 방법에는 두 가지가 있습니다.
2015년 이후에 제조된 Nexus 또는 Pixel 기기를 업데이트하는 경우 fastboot flashing unlock를 실행합니다.
Pixel 2의 경우: 부트로더를 플래시하려면 Pixel 2의 부트로더가 Oreo MR1 버전 이상으로 업데이트되었는지 확인합니다. Pixel 2를 이 버전으로 업데이트하려면 무선 업데이트 (OTA)를 적용하거나 전체 OTA를 사이드로드하세요.
로더 버전이 TMZ20a 이전인 Pixel 2 XL만 해당: 플래시하기 전에 중요한 파티션을 잠금 해제해야 할 수 있습니다. Pixel 2 XL에서만 중요한 파티션을 잠금 해제하려면 fastboot flashing unlock_critical를 실행합니다.
2015년 이전 기기를 잠금 해제하는 경우 fastboot oem unlock를 실행합니다.
대상 기기에 확인 화면이 표시됩니다.
모든 사용자 데이터를 삭제하고 기기를 잠금 해제할 것인지 확인합니다.
기기 플래시
한 번의 명령으로 전체 Android 시스템을 플래시할 수 있습니다. 한 번의 명령으로 전체 시스템을 플래시하면 플래시 중인 시스템이 설치된 부트로더 및 라디오와 호환되는지 확인하고 부팅, 복구, 시스템 파티션을 모두 쓴 다음 시스템을 재부팅합니다.
기기를 플래싱하려면 다음 단계를 따르세요.
부팅 시 적절한 키 조합을 누르거나 다음 명령어를 사용하여 기기를 빠른 부팅 모드로 전환합니다.
adbrebootbootloader
기기가 빠른 부팅 모드이면 다음을 실행합니다.
fastbootflashall-w
-w 옵션은 기기의 /data 파티션을 완전 삭제하며 특정 기기를 처음으로 플래시하는 데 유용합니다.
부트로더 다시 잠금
부트로더를 다시 잠그려면 다음 단계를 따르세요.
2015년 이후 기기의 경우 fastboot flashing lock 명령어를 실행합니다.
2014년 이전 기기의 경우 fastboot oem lock 명령어를 실행합니다.
기기를 초기화 상태로 복원
Nexus 및 Pixel 기기의 공장 출고 시 이미지에서 Google 기기의 공장 출고 시 이미지를 사용할 수 있습니다.
Motorola Xoom의 공장 출고 시 이미지는 Motorola에서 직접 배포합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","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"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Flash with Fastboot\n\nThis page provides details for flashing Android builds onto devices using the\n*fastboot* and *adb* tools. Adb lets you connect your\ndevelopment workstation directly to your Android-powered device and\nperform a variety of operations. Fastboot lets you install (flash) Android\nand interact with the device's bootloader so you can test your OS and app\nchanges. For additional information on how adb works, with emphasis on app\ndevelopment, see\n[Android Studio's Android Debug Bridge (adb) page](https://developer.android.com/studio/command-line/adb).\nIf you want details on the code for adb, see the adb\n[README](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/adb/README.md).\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.\n| **Note:** Fastboot is also the name of a bootloader module and mode.\n\nVerify that you have fastboot and adb\n-------------------------------------\n\nWhen you build Android, adb and fastboot is built by default. To confirm\nthe availability of adb and fastboot, run the following commands: \n\n adb --version\n fastboot --version\n\nIf you see version numbers, you have fastboot and adb installed. If you\ndon't see version numbers, ensure you\n[built Android](/docs/setup/build/building).\nsuccessfully. Continue to\n[Enable your USB connection](#enable-usb).\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\nBoot into Fastboot mode\n-----------------------\n\nBefore Android can be flashed to a device, a device must be in Fastboot mode.\nThere are two ways to boot a device into Fastboot mode:\n\n- Use the `adb` command: From the command-line, type `adb reboot bootloader`.\n- Use a key combination:\n 1. Determine the key combination for your device. For a table of Fastboot key combinations, see [Fastboot key combinations](/docs/setup/reference/fastboot-keys).\n 2. Turn the device off.\n 3. Turn the device on and immediately hold down the key combination for your device (determined in step 1).\n\nUnlock the bootloader\n---------------------\n\nAfter booting into fastboot mode, you must unlock the bootloader.\n| **Warning:** For privacy reasons, unlocking the bootloader deletes user data. After unlocking, all data on the device is erased, including both private app data and shared data accessible over USB (including photos and movies).\n\nTo unlock the bootloader:\n\n1. (Optional) Back up any important files on the device.\n2. Run the unlock command for your device:\n\n - If you're updating a Nexus or Pixel device that is manufactured in 2015 or later, run `fastboot flashing unlock`.\n - For Pixel 2: To flash the bootloader, verify that the Pixel 2's bootloader is updated to at least Oreo MR1's version. To update to a Pixel 2 to this version, apply the over-the-air (OTA) update or sideload a [full OTA](https://developers.google.com/android/ota).\n - For Pixel 2 XL only with loader version prior to TMZ20a: The critical partitions might need to be unlocked before flashing. To unlock the critical partitions on Pixel 2 XL only, run `fastboot flashing unlock_critical`.\n - If you're unlocking a pre-2015 device, run `fastboot oem unlock`.\n\n The target device displays a confirmation screen.\n3. Confirm that you want to erase all user data and unlock the device.\n\n | **Tip:** If your device is shown in the output before reboot, but Fastboot or the flash script are misbehaving, it might be an issue with your USB cable. Try a different port or switching connectors. For example, if you're using a USB C port on your workstation try a USB A port instead.\n\n| **Note:** On Nexus 10, after unlocking the bootloader, the internal storage remains unformatted. You can format the device using `fastboot format cache` followed by `fastboot format userdata`.\n\nFlash a device\n--------------\n\nYou can flash an entire Android system in a single command. Flashing an entire\nsystem with a single command verifies that the system being flashed is\ncompatible with the installed bootloader and radio, writes the boot, recovery,\nand system partitions together, and reboots the system.\n\nTo flash a device:\n\n1. Place the device in fastboot mode by holding the appropriate\n key combination at boot or using the following command:\n\n adb reboot bootloader\n\n2. After the device is in fastboot mode, run:\n\n fastboot flashall -w\n\nThe `-w` option wipes the `/data` partition on the device, which is useful\nfor your first time flashing a particular device.\n| **Note:** File systems created with `fastboot` on Motorola Xoom don't function optimally. Google recommends that you recreate file systems through recovery using `adb reboot recovery`. While in recovery, open the menu (press **Power + Volume Up**), wipe the cache partition, then wipe the data.\n\n### Re-locking the bootloader\n\nTo re-lock the bootloader:\n\n- For 2015 or later devices, run the command `fastboot flashing lock`\n- For 2014 or earlier devices, run the command `fastboot oem lock`\n\nRestore device to factory state\n-------------------------------\n\nFactory images for Google devices are available from\n[Factory Images for Nexus and Pixel Devices](https://developers.google.com/android/nexus/images).\nFactory images for the Motorola Xoom are distributed directly by Motorola."]]