How to Flash Samsung Firmware Using Odin The Best Guide by Christian Ihechi
Set up a build environment — Ubuntu 18.04 is the recommended build OS. You will need to install various development-related packages like gcc, git, python, etc. The master branch of Android in AOSP comes with a pre-built version of OpenJDK, so no additional installation is required. However, older versions of Android require a separate installation of the JDK. Full instructions on setting up your build environment can be found here….