When you happen to think How To Root Android, technically, you have two solutions to follow in order to gain root access. You can either use one-click rooting apps or root binary flashing method to root your Android device. Although the two techniques are different, the same mechanism is implemented by both of them
Flashing Root Binaries In Recovery Method
In order to get root access in a certain Android firmware, there must be at least one Android vulnerability on the system. Because all the rooting solutions exploit one or more Android vulnerabilities to access the system files of the system. After Android vulnerabilities are exploited by app developers, users can flash a custom recovery image on their devices which can skip the digital signature of the firmware. Through the custom recovery, Android users can install modified firmware updates along with utilities (Su binary, SuperSU) which need to run the app as system files. Generally, the stock recovery image does not allow users to install such utilities since it does not allow skip the digital signature check for firmware updates. That is you cannot flash root files in the stock recovery. When it comes to CF-Auto-root the things change drastically. Because of CF-Auto-Root installs root binary files after flashing modified recovery image without flashing recovery image permanently. click How to Root Android (Samsung Galaxy/Note Complete Guide) to learn CF-Auto-Rooting. This is the general mechanism for the rooting process
One-Click Rooting Method
When it comes to One-click rooting apps, One-click rooting apps have been designed shrinking the whole heavy rooting process into a single app which allows you to root your device within a few taps or clicks. Generally, one-click apps are available in both PC and Android versions. Android version needs strong internet connection since it uses the database in its server dedicated to the app. The app checks the database when you run it on your device and pull the relevant root script for your device and run on the device to access root files.
Bootloader And USB debugging mode
These terms are frequently used when it comes to Android rooting. The bootloader is the programme which prevents your Android device from running the unauthorized software on your device. On the other hand, USB debugging mode is the first step to unlock the device bootloader. You do not need to unlock the device bootloader if you are going to use a one-click rooting app as it does not flash any modified partition or images on your device. But if you are going to use Magisk, CF-Auto-Root or SuperSU, it is essential unlocking the bootloader