Skip to content

K3V1991/How-to-flash-Android-Kernel-and-Recovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

How to flash a Android Kernel and Recovery with ADB & Fastboot




Requirements:

  • Windows OS
  • USB Driver for your Device or Universal ADB Driver
  • Unlocked Bootloader
  • ADB & Fastboot++ - GitHub

Enable Developer Options & USB Debugging:

  1. Install the USB Driver for your Phone or Universal Adb Driver
  2. On your Phone, go to Settings > About Phone. Find the Build Number and tap on it 7 times to enable Developer Options
  3. Now enter System > Developer Options and find USB debugging and enable it
  4. Plug your Phone into the Computer and change it from Charge only to File Transfer Mode
  5. On your Computer, browse to the Directory where you extracted/installed ADB & Fastboot++
  6. Use the Open CMD.bat or ADB & Fastboot++ Shortcut to launch a Command Prompt
  7. Once you’re in the Command Prompt, enter the following Command:
adb devices
  1. System is starting the ADB Daemon (If this is your first Time running ADB, you will see a Prompt on your Phone asking you to authorize a Connection with the Computer. Click OK.)
  2. Succesful enabled USB Debugging

Unable to connect to ADB:

  1. AMD Bug - XDA Thread
  2. Switch Device from "Charging" to "File Transfer" Mode
  3. Install the latest Device Driver or Universal USB Driver
  4. Try another USB Cable
  5. Use another USB Port (USB 3.0 Port to USB 2.0)
  6. Try to execute Fastboot Command without connecting your Phone and once it says "waiting for device" plug in your USB Cable
  7. Windows: Click "Change advanced power setting" on your chosen Plan and expand "USB Settings". Under "USB Settings" Section, expand "USB selective suspend setting" and change it to "Disabled" for On Battery and Plugged In
  8. Try another PC

How-To:

  1. Download and extract/install ADB & Fastboot++
  2. Browse to the Directory where you extracted/installed ADB & Fastboot++
  3. Place the Kernel or Recovery Image in the Tool Folder
  4. Plug your Phone into the Computer
  5. Launch a Command Prompt with the Open CMD.bat or ADB & Fastboot++ Shortcut
  6. Once you’re in the Command Prompt, enter the following Command:
adb devices

and hit Enter

  1. Rebooting the Device to Bootloader:
adb reboot bootloader

and hit Enter

Flash Kernel:

fastboot flash boot <kernel file name>.img

and hit Enter

Flash Recovery:

fastboot flash recovery <recovery file name>.img

and hit Enter

Reboot to System:

fastboot reboot

and hit Enter