Skip to content

Instantly share code, notes, and snippets.

@mohamad-supangat
Forked from silvae86/script.sh
Created October 11, 2022 07:04
Show Gist options
  • Save mohamad-supangat/a9f872fb8dd481425a3f60e3bc4eff22 to your computer and use it in GitHub Desktop.
Save mohamad-supangat/a9f872fb8dd481425a3f60e3bc4eff22 to your computer and use it in GitHub Desktop.
Flashing a boot.img (Kernel, for example) in an Android mobile phone via adb shell
#Tested with Samsung Galaxy Note 3 (your mobile phone may have different paths and partitions!!)
#check adb connection...
adb devices
#copy the boot.img image to the mobile phone (in this case, the root of the SD Card)
adb push <path_to_your_boot.img_extracted_from_custom_rom_zip>/boot.img /external_sd/boot.img
#open shell
adb shell
#flash the image into the /boot partition
```bash
dd if=/external_sd/ROMS/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot
```bash
#Clean Cache and Dalvik Cache, Reboot into System!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment