Root

If you're completely new to Android, you're in for a treat with all of the software tweaks and customization options that your smartphone or tablet offers out of the box. But if you really want to take things to the next level, the ability to mod your device expands exponentially when you're rooted.
There are a lot of misconceptions about rooting, and many of these stem from a general lack of knowledge about the subject. So to help clear things up a bit, I'll go over the basic concept of root, as well as all of the benefits and drawbacks of rooting an Android device.
What Is Root?
In the most basic sense, "root" refers to the topmost folder in a device's file system. If you're familiar with Windows Explorer, root by this definition would be similar to the C:\ drive, which can be accessed by going up several levels in the folder tree from the My Documents folder, for instance. In Mac OS X and Linux, it would be a / (slash) instead of a C:\ directory.
But unlike Windows, Android has an artificial barrier about halfway up the folder tree—meaning you can only go up so many levels in the file system before you hit a virtual wall of sorts. This is done to prevent novice users from deleting or making changes to critical operating system files that are stored on the other side of this artificial wall.

But if you want to make system-level tweaks to your phone's software, you'll need to be able to modify the operating system files on the root side of this virtual barrier. Being able to fully access and modify these files is known as having "root access" or being "rooted."


There are several different procedures that allow users to gain access to the root directory of their device, and the process of executing one of these procedures is known as "rooting." Depending on the device, rooting can be as easy as installing an app, but some root methods are a bit more complicated and involve connecting the device to a computer and sending terminal commands.

What Can I Do if I'm Rooted?

If we consider that root is the topmost folder in a device's file system where all of the files that make up the Android operating system are stored, and rooting allows you to access this folder, then being rooted means that you can change just about any aspect of your device's software.
For instance, bloatware apps that come pre-installed on Android devices are generally stored in the system folder inside of the root directory—normal users can't uninstall these apps, but rooted users can simply navigate to the folder and delete them.









Deleting bloatware apps from the /system/apps/ folder in the root directory.

As another example, the vast majority of your phone's main interface is controlled by a single app called SystemUI, which is stored in the root directory. If you know how to program an Android app, you could modify SystemUI to completely change the look and feel of your device. But even if you don't, there are thousands of Android developers who do, so you could simply use root access to replace this file with a pre-modified version.

Android KitKat themed to look like Android Lollipop with a modified SystemUI app.
Aside from manually deleting, modifying, and replacing system files, there are thousands upon thousands of apps that use root access to help you modify your device's software at the press of a button.
Root apps can do things like block all ads in every app, hibernate background apps to save battery, install a custom recovery to flash ZIPs and create backups, and so much more.

(1) Adaway (block ads). (2) Greenify (hibernate apps). (3) Flashify (install custom recovery).


What Are the Drawbacks of Rooting?

As awesome as rooting is, there are definitely a few drawbacks involved. The biggest downside is that most devices will no longer be able to accept an over-the-air firmware update if they're rooted, which means you'll have to manually apply any future updates using Fastboot, Odin, or Smart Switch.
On top of that, there are some potential security risks involved with rooting, but these will never be realized if you exercise a bit of caution. Considering that a rooted user has access to all of the system files on their device, this means that apps the user installs can also gain access to anything on the phone or tablet. This issue can easily be overcome by install installing a root management app like Chainfire's SuperSU, which blocks all access to the root directory by default, and only allows apps to modify these files if the user explicitly grants root access to the app.










SuperSU root access prompt (Root Explorer app requesting root).

Then finally, because of the risks described above, certain apps will simply refuse to run on a rooted device. Generally, this is limited to apps that deal with financial payments or DRM copyright-protected media—most notably Android Pay, Samsung Pay, and the Redbox streaming app.

How Do I Root My Device?

Now that you have a good understanding of root as well as the benefits and drawbacks involved, you'll probably want to know exactly how to go about rooting your device. As I mentioned earlier, there are different methods for different Android devices, but one of the easiest and widely available methods is CF Auto Root.
  • How to Root Over 300 Devices with CF Auto Root
Chances are, your device is supported by CF Auto Root. But if not, we've covered many of the various alternative root methods for quite a few devices, which you can check out at the link below.
Samsung


REQUESTS AND DISCUSSION

The central CF-Auto-Root thread can be found here on XDA-Developers.com. Use that thread for requests for new roots and generic discussion. Most device models have their own dedicated threads on XDA, please keep discussion about those specific models in that dedicated thread, and don't litter the central thread with them.



NO REDISTRIBUTION

Please link directly to this page, or use the link you find in the table below.



NO WARRANTY

Use at your own risk, I'm not responsible for bricking your device.



GET THE RIGHT FILE

Make sure you get the correct file. Using the incorrect file may brick your device.



FLASH COUNTER

If your target device has a custom firmware flash counter, CF-Auto-Root will trigger it. If you're lucky, Triangle Away has support for your device and can be used to reset the counter.



KNOX WARRANTY

If you have a KNOX-enabled device, using CF-Auto-Root will trip the KNOX WARRANTY VOID status !



ENCRYPTION

Warning: If your device storage is encrypted, using CF-Auto-Root will wipe your data !



ANDROID VERSION

When newer firmwares are released for a certain device, sometimes that firmware includes new bootloaders that prevent kernels based on the old firmwares from booting. This usually coincides with a transition to a newer Android version. In that case, the CF-Auto-Root for download here may no longer work - flashing or booting might fail. It is too much work for me to keep track of all these firmwares, so if you encounter this issue, it is up to you to submit the recovery.img file from the latest firmware for your device to the CF-Auto-Root thread on XDA-Developers.com.

To be clear, just because you have a newer Android version than listed here, does NOT mean the CF-Auto-Root will not work - there's a good chance that it will!


ODIN flashable devices


BASIC INSTRUCTIONS
All downloads contain .tar.md5 files flashable in ODIN as PDA.

Make sure your device is in ODIN download mode (usually you can get there by holding VolDown+Home+Power when the device is turned off), then start the included Odin3-v1.85.exe file, press the PDA button, select the .tar.md5 file, and click Start.

A modified recovery and cache partition will be flashed, which will install (only) SuperSU, then clean-up the cache partition and re-flash the stock recovery.

For the root to work, the device must reboot into recovery. Most devices will do this automatically after flashing these files, but in case that does not happen, please boot into recovery manually.

UNLOCK BOOTLOADERS
If you have locked bootloaders, flashing one of these will probably brick your device - with the exception of Nexus devices, which will usually automatically "OEM unlock" and wipe your data !


No comments: