Prerequisite
- adb 설치
- fastboot 설치
- Bootloader Unlock
fastboot flashing unlock
- 안드로이드 디바이스 Developer option 활성화
- Settings -> About phone -> Build number 7번 누른다.
- Settings -> Developer options로 진입 가능
- OEM Unlock: 디바이스 Settings > Developer option > OEM Unlock 활성화
- USB Debugging: Developer options > USB Debugging 활성화
Google USB Driver 설치
- Android Studio 내 SDK Manager -> SDK Tools에서 Google USB Driver를 설치
- Google USB Driver 설치 경로:
C:\Users\<username>\AppData\Local\Android\Sdk\extras\google\usb_driver\
- 장치 관리자(device manager)에서 기타 장치 -> 안드로이드 디바이스명에서 우클릭 후
드라이버 업데이트 -> 로컬 경로에서 찾기 선택 후 Google USB Driver 경로를 선택해준다.
- fastboot에 디바이스를 인식시키는데 필요하다.
fastboot mode
adb reboot bootloader
- bootloader를 리부팅하여 fastboot 모드로 진입한다.또는 power off 후 전원 버튼과 volume down 버튼을 동시에 누르면 fastboot mode에 진입할 수 있다.
fastboot devices
- 위의 명령어로 연결한 디바이스가 뜨면 정상적으로 fastboot를 사용할 수 있다.
Download Factory Image
- Settings -> About phone에서
Model & hardware에서 모델명을, Build number에서 빌드 버전을 확인한다.
- 링크에서 우측의 모델명에 대한 Build number로 설치하려는 factory image를 확인한다.
Flash를 선택하면 Android Flash Tool을 통해 디바이스에 이미지를 설치할 수 있고, link를 선택하면 수동으로 설치를 진행해야 한다.
Install factory image with wiping data
- 데이터를 초기화하지 않고는 factory image 설치에 계속 실패해서, wipe data 옵션을 추가한 상태로 이미지 설치를 진행한다.
- 다운받은 factory image zip 파일을 압축해제 후, 압축해제한 파일 경로의 zip 파일까지 압축해제한다.
@ECHO OFF
:: Copyright 2012 The Android Open Source Project
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
PATH=%PATH%;"%SYSTEMROOT%\System32"
fastboot flash bootloader bootloader-flame-c2f2-0.2-5940465.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-flame-g8150-00041-191016-b-5945070.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot -w update image-flame-qq1b.200205.002.zip
echo Press any key to exit...
pause >nul
exit
- 위의 `flash-all.bat` 파일을 통해 이미지 설치를 진행한다.
adb reboot bootloader
flash-all.bat
Install Image using Android Flash Tool
- 링크에서 이미지 선택 시
flash를 선택하면 연결된 디바이스로 build를 선택하여 이미지를 설치할 수 있다.
