Mac command line to obtain root privileges
1. The Mac system does not provide a root account by default, so you need to create it first at this time.
2. Create a root account
3. Done!
How to get root privileges?
Use ROOT software on your phone or ROOT software on your computer to obtain ROOT permissions
Get to know ROOT
ROOT authority is a super administrator user account (Superuser) in UNIX/Linux system. This account has absolute control over the entire system and can operate on all objects.
It is analogous to the super administrator user account (Administrator) in the Windows NT kernel system. ROOT role
After obtaining the ROOT authority, you can access and modify the areas in the system that require authorization, and delete or change the components of the system conveniently. For example, software such as ROOT Explorer (system file management) and Task Manager (process management), Marketenable (view paid software in various countries).
Install language packs, change themes. More importantly, for players, they can "refresh" their phones as much as they want, DIY their favorite phones as they like, and enjoy various cool functions of the new system and new UI.
General steps of ROOT 3.1, mobile phone software method
Download ROOT software: Z4ROOT
Execute the ROOT steps: install Z4ROOT to the mobile phone, and click to obtain the ROOT permission.
3.2. Computer-side software
Download ROOT software: FascinateRoot, Universal Androot, One Click Root/UnRoot I9000, Easy Root of foreign software company Unstable Apps, SuperOneClick.
Execute the ROOT step: FascinateRoot
①Open "START_ROOT.bat" (XP and below systems support, win7 and above do not support BAT batch processing commands), pop up the CMD window and press any key to start;
②Then the phone restarts automatically, unlocks after entering the desktop, and automatically enters the next step;
③After waiting for about 3 minutes, the phone will restart again, and the command prompt prompts to complete the ROOT step. At this time, press any key to exit the command prompt line, and you're done.
Execute ROOT steps: SuperOneClick, double-click SuperOneClick.exe to open the software, and click the ROOT button.
如:One Click Root/UnRoot I9000如:One Click Root/UnRoot I9000 on MAC
3.3. Computer command mode
Download ROOT software: ADB (included in the general Android SDK package)
Execute ROOT steps: command line mode (you must be familiar with Linux/Unix commands, those who are not familiar with them should use them with caution)
adb remount
adb shell rm /system/app/PCSCII*
The adb remount here is to remount your partition. Then make the system partition from read-only to read-write.
To uninstall applications, such as TryTry software, use the following command: www.fafau.com
adb remount
adb shell rm /system/app/Try*
Precautions
Download the corresponding software such as FascinateRoot, z4root
Check Settings-Application-Development-USB Debugging
Sufficient power and make sure to install the mobile phone driver (mobile phone forum or use tools such as "pea pod mobile phone wizard" to download)
Special emphasis: flashing is risky, flashing is very bright, timid don’t experiment
Some models require specific software, for example, z4root one-key secure root tool 1.3.0 supports models:
Samsung Galaxy S (All variants)
Backflip
Sony X10
Xperia Mini
Drod 2
Galaxy Tab
Galaxy I5700
Galaxy 3 I5800
Droid X
Samsung Acclaim
Cricket Huawei Ascend
Motorola Cliq
Huawei 8120
Hero
Optimus T
Droid 1 (z4root 1.2.1)
Garmin Asus A50
Motorola Defy
LG Ally
How to execute commands as root
1. Start the system first, and log in as a guest, as shown in the figure below.
2. There will be a prompt after logging in, and the operations performed will disappear after logging out. At this time, open the terminal and want to switch to root mode, as shown in the figure below.
3. Then click the icon in the upper right corner, select root user or select switch user, as shown in the figure below.
4. Then find that on the opened page, log in as a user with root authority, execute the sudo su command, and enter the user password, as shown in the figure below, and it is completed.