├── Flash.png └── README.md /Flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/How-to-flash-Android-Kernel-and-Recovery/e0d2063a32b46170a733f52f7d71d613e68154eb/Flash.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 |

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

3 |
4 | 5 |

6 | 7 | 8 | 9 | 10 |

11 |
12 |
13 | 14 | ## Requirements: 15 | * Windows OS 16 | * USB Driver for your Device or Universal ADB Driver 17 | * Unlocked Bootloader 18 | * ADB & Fastboot++ - [GitHub](https://github.com/K3V1991/ADB-and-FastbootPlusPlus) 19 | 20 | ## Enable Developer Options & USB Debugging: 21 | 1. Install the USB Driver for your Phone or Universal Adb Driver 22 | 2. On your Phone, go to Settings > About Phone. Find the Build Number and tap on it 7 times to enable Developer Options 23 | 3. Now enter ```System``` > ```Developer Options``` and find ```USB debugging``` and enable it 24 | 4. Plug your Phone into the Computer and change it from ```Charge only``` to ```File Transfer``` Mode 25 | 5. On your Computer, browse to the Directory where you extracted/installed ADB & Fastboot++ 26 | 6. Use the Open CMD.bat or ADB & Fastboot++ Shortcut to launch a Command Prompt 27 | 7. Once you’re in the Command Prompt, enter the following Command: 28 | ``` 29 | adb devices 30 | ``` 31 | 8. 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.) 32 | 9. Succesful enabled USB Debugging 33 | 34 | ## Unable to connect to ADB: 35 | 1. AMD Bug - [XDA Thread](https://forum.xda-developers.com/t/fix-fastboot-issues-on-ryzen-based-pcs.4186321/) 36 | 2. Switch Device from "Charging" to "File Transfer" Mode 37 | 3. Install the latest Device Driver or Universal USB Driver 38 | 4. Try another USB Cable 39 | 5. Use another USB Port (USB 3.0 Port to USB 2.0) 40 | 6. Try to execute Fastboot Command without connecting your Phone and once it says "waiting for device" plug in your USB Cable 41 | 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 42 | 8. Try another PC 43 | 44 | ## How-To: 45 | 1. Download and extract/install ADB & Fastboot++ 46 | 2. Browse to the Directory where you extracted/installed ADB & Fastboot++ 47 | 3. Place the Kernel or Recovery Image in the Tool Folder 48 | 4. Plug your Phone into the Computer 49 | 5. Launch a Command Prompt with the Open CMD.bat or ADB & Fastboot++ Shortcut 50 | 6. Once you’re in the Command Prompt, enter the following Command: 51 | ``` 52 | adb devices 53 | ``` 54 | and hit Enter 55 | 56 | 7. Rebooting the Device to Bootloader: 57 | ``` 58 | adb reboot bootloader 59 | ``` 60 | and hit Enter 61 |
62 | 63 | ## Flash Kernel: 64 | ``` 65 | fastboot flash boot .img 66 | ``` 67 | and hit Enter 68 |
69 | 70 | ## Flash Recovery: 71 | ``` 72 | fastboot flash recovery .img 73 | ``` 74 | and hit Enter 75 | 76 | ## Reboot to System: 77 | ``` 78 | fastboot reboot 79 | ``` 80 | and hit Enter 81 | --------------------------------------------------------------------------------