Handbook for root permissions of the Android device. Admin in Ubuntu, or What is sudo.

  1. smartphone or tablet
  2. What is Root Android?
  3. What exactly give Root rights on Android:
  4. Cons when getting Root rights
  5. What you need to do before getting Root rights
  6. Kinds of Root
  7. Problems getting Root rights on new Samsung smartphones
  8. What happens when you get Root rights to Android?
  9. Why do I need SuperSu or SuperUser / Kinguser?
  10. If after receiving Root rights, Android is buggy
  11. Why disable antivirus when you get Root?
  12. So are there viruses or not?
  13. How to check for Root rights on Android?
  14. SuperOneClick
  15. Voting
  16. Linux Superuser Rights
  17. Login as root
  18. Switch to superuser in terminal
  19. Getting root without switching
  20. Graphically applications on behalf of the superuser
  21. findings
  22. What are root-rights and why are they needed at all?
  23. Basic ways to get root access
  24. USB debugging mode
  25. Full access with PC software
  26. Root access with Kingo Android Root
  27. Root access using the VROOT program
  28. Full access with Android programs
  29. Root access using the KINGROOT program
  30. Divide root rights into 3 types:
  31. Are Root rights granted to all smartphones?
  32. How to get Root-rights for android devices
  33. And in the end

What is Root Android? Why do they want to get it? Why is it needed on Android? Frequently asked questions that many newbies ask by choosing a smartphone or tablet on this OS and a lot of other useful information about Root! rights to your android

smartphone or tablet

For those who can not wait to get Root rights and no matter what it is, go to a special section of the site where you can find 1000 ways to get Root on your Android companies such as Samsung, HTC, Sony Lenovo, LG, Alcatel and other smartphones and tablets ! Or use the list of the best programs to get Root rights .

What is Root Android?

Root [root] or else as it is also called, the Super Polar is needed in order to expand the functionality of the Android operating system. This term originated from Unix-like systems and means this word:

In Unix and Android OS, in particular, users who perform actions (watching video, listening to audio, editing a document) work with Guest rights, that is, cannot edit or change / delete / modify system files, increase the functionality of the system, this feature only Chief Administrator, or as it should be correctly called Supercooler.
In Unix and Android OS, in particular, users who perform actions (watching video, listening to audio, editing a document) work with Guest rights, that is, cannot edit or change / delete / modify system files, increase the functionality of the system, this feature only Chief Administrator, or as it should be correctly called Supercooler

What exactly give Root rights on Android:

  • The ability to freeze and restore firmware on your Android device
  • Remove ads from apps
  • Delete embedded apps and ringtones
  • Embed apps and ringtones
  • Change the appearance of Android to not recognizability (change icons, change the background), in every possible way edit the apk, system applications
  • Extend the work from one charge (if you have enough charge for 1 day, then with getting root rights you can extend the autonomy by 1.5 - 2 days)
  • Increase Android performance and responsiveness
  • Overclock or slow CPU speed

and many other useful features and capabilities ...

You ask why then, on the Android OS, Root is not built in initially in order to immediately extend this functionality?

Root is not built in just because many people don’t know that they are editing system files , it’s possible to not greatly experience the processor’s frequency and the device will burn and will only function as a brick or hammer in the future, and also because free apps is advertising with which Google earns itself money , and by getting root rights you can delete it!

Cons when getting Root rights

In addition to the above minuses, you can also include:

  • Official firmware updates (you can do everything manually)
  • Disabling manufacturer branded chips

Also, having received Root, you automatically lose warranty repair! But do not despair, having received Root it can be and also not noticeably removed, then not one service center will not be able to refuse you repair.

What you need to do before getting Root rights

Certain manufacturers, such as Sony and HTC, are also putting extra sticks in their wheels, blocking the Android bootloader. How to unlock the bootloader can be found in these articles.

  • Unlock Sony bootloader
  • Unlock HTC bootloader
  • Unlock Huawei bootloader
  • Unlock Nexus bootloader
  • Unlock LG bootloader
  • Unlock bootloader xiaomi
  • Unlock Motorola bootloader

In addition to this HTC smartphones After unlocking the bootloader and getting root rights, you must perform the S-OFF procedure.

Kinds of Root

Root on Android is distinguished as:

  • Full Root - are permanent root rights that are not deleted after a reboot or randomly, with the possibility of recording and rewriting the system
  • Shell Root - permanent root rights as well, but in contrast to Full Root there is no possibility of writing and rewriting to the system partition
  • Temporary Root - temporary Root rights. Unfortunately, Root rights disappear (fly off) after the first restart of Android

Problems getting Root rights on new Samsung smartphones

Problems getting Root on Android 4.3 and above

Starting with Android 4.3, there is an extra security layer in the Linux kernel called SeLinux . When installing root rights and the first boot of the Android device, SeLinux simply simply corrupts the su and busybox binaries, that is, there is no root right.

What happens when you get Root rights to Android?

On Android, a smartphone or tablet is installing a binary file SU , which is responsible for root rights. This file is installed on the path / system / xbin / su . Also for correct Android work after its rutting, a busybox file is sometimes needed, which increases many times the capabilities of the rooted device.

Why do I need SuperSu or SuperUser / Kinguser?

On the Internet, Android users often ask questions:

And so if you read the previous previous paragraph, you already know that root rights appear when the file / system / xbin / su is embedded in the system, and when installing these applications, this file is not registered in the system! These applications are administrators of ROOT access - SuperSu and SuperUser or KingUser are needed in order to control who and what to provide root or, on the contrary, prohibit.

If after receiving Root rights, Android is buggy

In very rare situations, it happens that the Android smartphone or tablet is buggy (frequent errors occur, some functions do not work) after getting root rights. To solve this problem, you can help reset the data or as it is called in Android environment "wipe" (wipe). You can reset the data by going to the settings menu -> Restore and Reset, or from the Recovery menu select wipe data / factory reset.

Why disable antivirus when you get Root?

On the network, you can often find complaints from newbies who have just purchased Android and already want to get Root rights, which they swear when downloading Google chrome , and after that, the anti-virus program on your computer swears for viruses! This happens because the Android system is hacked through various vulnerabilities found in the system (for example, Framaroot exploits a vulnerability in the camera), naturally Google does not approve of such actions and does not want you to interfere with the Android system (see above).

So are there viruses or not?

There are no viruses! So feel free to turn off the antivirus program, nothing with your computer or Android smartphone or a tablet does not happen!

How to check for Root rights on Android?

Quite a frequent question from users who have just purchased Android tablet or a smartphone, or not interested in the work of the operating system at all.

The first option to find out if you managed to get Root rights is to go to the / system / xbin partition using the file manager and find the su file, if it is, then root is obtained.

The second option is to download the Root Checker application, which notifies you of the presence or absence of root rights.


Greetings to you, dear reader. In this article I will give a list of the most popular programs for Android, which allow you to get on your Android mobile gadget (be it mobile phone or tablet computer) Root rights.

Before I go to the list of programs, I’ll give a definition of what Root rights are and why they are actually needed.

Root rights - sometimes they are also called super user rights (superuser). Permissions that allow you to make changes to system files and folders. These rights can be obtained in several ways: independently (rather complicated procedure) or with the help of special software, both installed on the Android device itself and on Personal Computer .

Below we look at the most popular and, of course, work programs that allow you to get Root rights on your Android mobile device: a smartphone or tablet.

Warning: by and large, the use of such programs is nothing more than a hacking device. For this reason, the site administration is not responsible for the actions you perform. Be careful.

The most popular program for obtaining Root rights is Framaroot. By and large, this program It is an intermediary between you (or your gadget) and the SuperSU tool. The only difference is that Framaroot allows you to use the above software without using a personal computer. To get root rights, do the following: install the application and click the “Install SuperSU” button .

After a few minutes, you will receive a notification about the success or failure of obtaining Root rights on your Android device.


After a few minutes, you will receive a notification about the success or failure of obtaining Root rights on your Android device

Another program to get root (root) rights to your mobile device. This program will allow you to get the desired result without using a personal computer (as it happens when using most programs to get root (root) rights). The application is installed on your smartphone or tablet.

I want to remind you that if any program from this list helped you, for example SuperUser, you can vote for it below.


A good and convenient application for obtaining root rights. You can use it without a personal computer by simply installing a gadget on your Android device: a tablet computer or a smartphone. The process of rutting looks like this:

  1. Download the application to your device;
  2. After starting, you need to select the version of the firmware you need;
  3. Now it remains to press the GET ROOT button.

Everything, reboot the device.


If the programs described above do not suit you, you can use another popular tool for rutting your Android device - z4root. Below you can find a small instruction on working with this program:

  1. Debug your mobile device via USB;
  2. When you first start the program, select one of the two options for obtaining root rights: Temporary Root (temporary) or Permanent Root (permanent);
  3. After the rutting process is complete, you need to restart the device.

As many users claim, this program will be very useful if you need to get root rights on old devices.

Another well-known application for obtaining the rights to root mobile devices . According to the developers, this program supports about 15,000 devices . Those. There is a large share of the likelihood that this application will help you get root rights specifically for your Android gadget. Perform the following steps:

  1. You need to download and install a special apk file with the application;
  2. Next, run the program;
  3. Press the Root button and restart the device;
  4. Enjoy Root rights.

SuperOneClick


SuperOneClick

If for some reason it is not possible to get root rights, you can use the programs on a personal computer. One of these programs is called SuperOneClick . So, to get the desired result, use the following instructions:

  1. Download and install the program, connect your Android device to a personal computer;
  2. Disable USB debugging on the device;
  3. Launch the program and click the “Root” button;
  4. After the appearance of "Waiting for Device", you need to enable USB debugging on the device;
  5. Wait for the appearance of "Starting ADB Server ...";
  6. Disable USB debugging and turn it on again;
  7. Repeat the previous operation until you see the inscription - "Waiting for device ...".

Voting

If you took advantage of one of the programs proposed in the list above and successfully obtained Root rights, then please share your results - vote for the working version.

As you know, Linux is very serious about managing users and giving them rights to work with the system. A regular user can write files only to his / her directory and / tmp / directory. It is also possible to read some files in the root file system. But you cannot install programs, for this you need the right to write, you cannot change the attributes of files, you cannot start services, you cannot read some log files, and you cannot do much more.

In Linux, only the root user is allowed to manage the root file system and create files there.

In this article we will look at what programs are needed in order to get root privileges for the linux user, how they work, how to run the program with root privileges from a regular user, and how to run graphic programs as root. And also find out what sudo is, what is the difference between su or sudo.

Linux Superuser Rights

It’s a very long time to list what a regular Linux user cannot, it’s easier to say what he has a right to, namely with the standard configuration of permissions for files in Linux, an ordinary user can:

  • Read, write and change file attributes in your directory
  • Read, write, change file attributes in the / tmp directory
  • Run programs where it is not prohibited with the noexec flag
  • Read files for which the read flag is set for all users.

If we need to do something more, we need linux user root rights. Root has the right to do everything on your file system, regardless of what rights are set on the file.

Login as root

To log in as root you can switch to one of the virtual consoles, for example, using the keyboard shortcut Ctrl + Alt + F1 and then enter the root login and the root password of the user.

You will get a full root environment with the ability to perform all actions, but this method is very impractical, since you lose all the benefits of using the graphical interface.

You can do the exact opposite way, enter the root username and password in the graphical login manager so that the desktop environment works as root, and we get all the root rights of linux, but this option is not recommended and very dangerous, you can accidentally damage the whole the system. Therefore, this method has been disabled in many input managers.

Switch to superuser in terminal

Now we come to the more interesting and practical. Using special utilities, you can switch the current terminal emulator to the superuser's environment and execute all the following commands not on its own behalf, but on its own, thus giving the program root privileges linux. For this there is a utility su. Generally speaking, this utility allows you to not only switch to the root user but also to any other user, but by default it is root. Consider it in more detail. The su linux command has the following syntax:

$ su options user

Here are its main options:

  • -c, –command - execute the command
  • -g, –group - set the user's main group (only for root)
  • -G —supp-group - additional user groups (only for root)
  • -, -l, —login - login mode, all environment variables will be cleared and initialized to reflect the new user, and the home directory will be changed
  • -p, —preserve-environment
  • -s, –shell - set the shell to enter
  • —Version — display the version of the program.

Now let's experiment a bit to understand how the su linux command works.

First, we execute su with no parameters, but first we create an environment variable to check how this command manages them:

Now we execute:

Now we look what happened:

$ whoami
$ pwd
$ echo $ var
$ echo $ PATH
$ exit


From these commands, we see that we are now the root user, but the home directory is the directory of our previous user and our variable has not been saved. The PATH variable has also changed, now the path / sbin has been added there.

Now use login in login mode:

And repeat the same combination:

Obtaining superuser rights in this way is used in many distributions, for example, Debian, OpenSUSE, ArchLInux, Gentoo, etc. But in Ubuntu, as a distributive for beginners, logging in as root is disabled. This is done because it is also not very safe, you can forget that you are running the command from root and messing things up with the system. Therefore, we proceed to the next program.

Getting root without switching

To implement the most secure interface for working with superuser rights in Linux, the sudo command was developed. Let's take a look at what sudo is. This command is written before each command that needs to be executed on behalf of the superuser, and to execute it, you must enter the password no longer root, but only your user. Just as in the previous one, this utility has its own options. First, consider the syntax:

$ sudo options command

Program options:

  • -b - run the utility in the background
  • -E - save environment variables
  • -g - run a command from the group
  • -H - use home directory
  • -l - show sudo list for current user
  • -r - use the SELinux role for the command
  • -s - use shell
  • -u - run the command on behalf of the user, if not specified, it is used as root
  • -i - do not execute the command, but enter the shell, equivalent to su -

You can perform the same experiments, only for this command to figure out how to use the sudo command. For example:

$ sudo -u test ls

Using sudo is the recommended way to execute commands on behalf of the superuser on Linux. So you will not forget what you are dealing with and the least risk to damage the system. But there is still one unresolved question - how to deal with graphic utilities? After all, the sudo command does not launch them, and it is not safe to launch the GUI as root. This is what we will look at next.

Graphically applications on behalf of the superuser

There are special utilities for running graphic applications on behalf of the superuser. They retain all necessary environment variables and permissions. In KDE, this is the kdesu command, and in Gnome, the gksu command.

Just type gksu or kdesu and then the command you need:

This command will launch a KDE file manager with superuser privileges. In Gnome, it will look like this:

The program will request a password, already in the graphics window, and then the file manager will open.

findings

That's all. Now you know how to get root permissions in Linux, know how to use the sudo command, and what is the difference between sudo and su. Now programs that require additional privileges in the system will not cause you problems. If you have any questions, write in the comments!

I think many of you have heard this expression, but not many understand what it is (I'm not talking about how to do it). Now I will help you figure it out.

The article consists of the following sections:

What are root-rights and why are they needed at all?

When you buy a new smartphone, you notice a lot of programs on it that, say, as it is - you don’t need them at all. But what happens is you cannot delete them. At the same time, they also occupy a place in the memory!
So, root-rights - this is full access to the system. You can do whatever you want from changing the icon to system application before removing it.


The main advantages of full access:

  • the ability to work with system applications;
  • the ability to "give" any of the applications full access to the system;
  • unlimited work with the interface: change icons, themes, system sounds, greeting, and a picture or animation when turned on;
  • full access to the bootloader, which allows you to change the firmware without difficulty;
  • the ability to install applications directly on the memory card;
  • backup with all applications that are currently installed on the system;
  • special system manager that allows you to see and edit previously hidden system files.

And the last thing to tell you before going into the practical part is a warning:

  • you lose the warranty on the device;
  • you can hurt operating system if you do actions in which you are not sure. Therefore: delete, add, change, but only if you are sure of your actions.

Basic ways to get root access

Naturally, there are special programs that facilitate this matter. I conditionally divide them into two types:

  • programs on the PC;
  • programs on android device.

Below I will tell you about the main ones and teach you how to use them. But first you have to learn how to perform the actions that you need in any of the ways:

  • connect the device in debug mode via USB;
  • allow installation of applications from unknown sources.

USB debugging mode

The action algorithm is quite simple and similar on devices with any version of Android OS.
1. Go to the settings of your device and select the " Special abilities "Item" For Developers ".

2. Set the switch to the “on” position opposite the “USB debugging” item. Confirm your decision.

Confirm your decision

3. After connecting the device to the PC, in the notification line you will see a message about debugging enabled.

Permission to install from unknown sources
Enter the settings in the security section. Set the switch to the “on” position opposite the “Unknown sources” item.

All finished with the preparation, now go directly to root-rights All finished with the preparation, now go directly to root-rights.

Full access with PC software

In this section, I will talk in detail about how to get root-rights to your android device using some PC software.

Root access with Kingo Android Root

1. Download the Kingo Android ROOT program to your PC.

2. Install the program.


one of the screenshots when installing the program KingoRoot


4. Next, run the program Kingo Android ROOT. Only then connect your device to the PC via USB-cable.


5 5. When the device is detected and all drivers are installed, click “ROOT”. The process of hacking the system begins. When it is executed, restart your device.



I hope you understand everything I hope you understand everything. We proceed to the next method.

Root access using the VROOT program

If you failed to get root-access using the previous program, then, most likely, your android-device is made in China. So try doing the same thing with the VROOT program. Below instruction.
1. Download the program from the official site on your PC. Yes, it is worth noting that it is in Chinese, so be careful. Click to download the green button, as shown in the picture.


2. Now install the program. The installation process is identical to any other, just look at the pictures and follow. Do not forget to put a tick to launch the application (last screenshot).

3

3. Now you need to enable USB debugging on your device and allow installing applications from unknown sources.

4. Connect the device via USB cable. And click the "Root" button. Wait until the process of getting root access is complete.


This, in my opinion, two   best programs   this category This, in my opinion, two best programs this category. Just perform all the steps as described above and you will succeed.

Full access with Android programs

In this section, I will show how to get root-rights with the help of programs on android. All actions will need to be performed directly from your android device.

Root access using the KINGROOT program

This is a fairly easy to use program, and therefore the most popular.
1. First, download the installation file from the official site directly from your device (it will be easier than from a computer). Click "Free Download". Confirm saving the file. The screenshot clearly shows the address of the site, and also shows what needs to be done. In the notification line you can see the status of the download.

Note: when downloading the installation file, it is desirable to have a high-speed Internet connection via WiFi Note: when downloading the installation file, it is desirable to have a high-speed Internet connection via WiFi.
2. Now you need to install the application. Before that, allow installation from unknown sources. Then go to the download directory and click on the appropriate file. All shown in the pictures, be careful.

Remember, if you are not a very advanced user and have not figured out why and how to use root-rights, it is better to refrain from gaining access to the android system, as there is a risk to lose the functionality of your device irrevocably and it will simply become a “brick”.

Divide root rights into 3 types:

1. Full Root - constant action of root-rights without restrictions.

2. Shell Root - root-rights, without access to the / system folder.

3. Temporary Root - temporary root-rights.

Are Root rights granted to all smartphones?

Some smartphones have a NAND lock function that does not allow making any changes to the files / system and, accordingly, the ability to install SuperUser. In this case, you have the opportunity to obtain temporary rights of Shell Root or Temporary Root.

How to get Root-rights for android devices

In fact, there are a huge number of ways to get root rights, for their various android smartphones they are their own. Here are the 5 most universal ways Suitable for most android phones:

  1. Framaroot - the application that has the largest list of supported smartphones;
  2. Kingo Android ROOT is a universal utility;
  3. z4root - application, the process of obtaining is simple and has only two clicks, the possibility of obtaining both permanent and temporary rights;
  4. SuperOneClick is a PC program that allows you to install root-rights via USB;
  5. Universal AndRoot is a simple application that works on many devices.

And in the end

All the above programs and applications necessary for obtaining root rights will be determined by antivirus programs as Trojan viruses. In truth, this is a virus program that penetrates the system. So do not be alarmed and disable the antivirus program in advance.

Of course, being an advanced user does not mean that you have to hack the system, you can use without hacking, the most open OS in the world and get more features than in other mobile systems. And if you decide to use administrator rights, think three times and ask yourself if you need superuser rights, since incorrect changes in the OS can lead to irreparable consequences, in other words, your smartphone will turn into a “brick”.

views

Why do I need SuperSu or SuperUser / Kinguser?
So are there viruses or not?
How to check for Root rights on Android?
Why do they want to get it?
Why is it needed on Android?
What is Root Android?
You ask why then, on the Android OS, Root is not built in initially in order to immediately extend this functionality?
What happens when you get Root rights to Android?
Why do I need SuperSu or SuperUser / Kinguser?
Why disable antivirus when you get Root?