Here you will learn how to use Heimdall to install kernels and other similar important things on your Samsung android device.
If you own a Samsung phone and want to root it or install a custom ROM, you may have found an app called Odin. This is a simple tool. to flash custom code on a Samsung phone. The downside for Linux users is that it only works on Windows. Linux users, however, are not excluded from the wonderful world that a rooted Android phone or custom ROM runs in. Echidna has developed a command-line tool called Heimdall (I think it’s called that because Heimdall was Odin’s servant in the Marvel Comics universe) that does everything Odin can but on an open-source platform. available for Linux, Windows, and OSX.
Installation is simple. Most distributions have a package that can be installed from the main repositories or traditional alternate repositories. If you can’t find a package for your distribution, Debian packages can be found on the Glass Echidna website. There is no need to install special drivers as is required for Odin. Heimdall is based on libusb-1. Glass Echidna also created an interface for the command-line tools that are usually found as a package alongside the Heimdall package. What to do when using Heimdall / Odin to update something on your Samsung device. The first is to upgrade a new kernel, upgrade a custom recovery (such as a CWM recovery), or upgrade to a completely new firmware. As an example, you are flashing a kernel
This is pretty easy. The first thing you need to do is download a kernel image, which is often in a compressed format. You want to extract this (there may be some levels of compression) and find a file named image. You need to put your device into download mode. This is usually done with a key combination: on my GS3 and earlier on my GS2, the volume is reduced + start + power. You may need to use Google to find out how the combination works for your device. Connect your device to your computer via USB. Make sure you are in the directory where the image file is located and type the following command:
It’s that simple.
Flashing a Custom Recovery Samsung devices have a recovery menu that allows you to perform low-level tasks on the phone. However, there are custom recovery menus (e.g., CWM recovery) that offer much greater functionality, including full backups of the current state of your phone (Android backup), installing custom firmware, fixing permissions, and clearing various caches. Again, you’ll need to download a custom restore from somewhere – cf-root is a popular one. Extract it and locate two files, one named recovery. img and one named cache.img. Put your phone in download mode, connect to your computer and run the following command:
Flash a full ROMIn this example, I’ll show you how to flash a standard ROM. After flashing multiple custom ROMs with CWM, for some reason, you may want to go back to stock. This is usually done with Heimdall / Odin. If you do this at Heimdall, you will need to download a ROM image for your phone. You can google where to find them, but xda-developers.com usually has a thread with links to all of the standard ROMs for a specific Samsung. Once you have the ROM file you will need to unzip it to get all the bits you need to update it with Heimdall. Put your phone in download mode, connect to the computer and run the command: ROMS, you may not have all of these bits in it. Just show what’s in the ROM package. Files are generally well labeled.