Learn about how to get root permission in android, we have the largest and most updated how to get root permission in android information on alibabacloud.com
We all know that the default user of Apache is nobody.
Some External commands, nobody, can hardly do anything.
If you want to get the permission
1: Modify httpd. conf and set
User nobody
Group nobody
Change
User xxx
Group xxx
The xxx here cannot be root. Once it is root, congratulations, your Apache will no lo
First, to ensure that users have permissions
Users of Windows Windows:windows 7 and later need to right-click Hoststool.exe and select "Run as Administrator".
Linux: You need to execute hoststool.py with root permissions.
Mac OS X: Enter a user's password to get permissions when the application is started.
Second, close the security software
To modify the Hosts file will trigger 360, Jinshan and other
Preparatory work
Install a root wizard on your computer
Specific steps
1 We first download a good "Root Wizard" installed in the computer, if not Baidu search "Root Wizard" Download installation can be installed, after the installation of our mobile phone and computer connection (must be on the phone to open the USB debug mode, recommended Open method: USB deb
access to the/data directory. You can see through the permission settings of the data directory, other users do not have the read permission.Therefore, if you press the LS command in the data directory under the general permission of ADB, you will get the opendir failed and permission denied errors. You cannot
Android permission 1.0 SDK records the changed access permission.ProgramTo read security-sensitive items, you must declare relevant permission requests in androidmanifest. xml. The Android Development Network has translated and used Chinese and English comparisons. The complete list is as follows:
The file is from the Dark Count of cnblogs,ArticleAddress: http://www.cnblogs.com/hangxin1940/archive/2011/07/10/2102087.html
Previously, it was a Windows shell, and the dark count was changed to the Linux version. This is the complete package:/files/super119/androidrootandrecovery.zip
From the script point of view, the most important thing is thisProgramNow: rageagainstthecage. It seems that this program restarts the adbd daemon process running on the terminal device in the form of ha
Some Huawei mobile phones are improperly configured with/data/drm permissions, so that malicious apps can escalate their permissions through a few steps.Drwxrwxr-x system sdcard_rw 2013-04-15 drm installs a malicious app (android is allowed. permission. WRITE_EXTERNAL_STORAGE ), after modifying the permission, encrypt-x drm system 2013-03-26 IDM drwx ------ drm s
Android also limits the use of system resources, such as network devices, SD cards, recording devices, and so on. If your application wants to use any system resources, we have to apply for Android permissions. This is the role of A permission usually has the following format, with a string named Name to guide the permissions we want to use.
Copy Code cod
, it indicates that you have the corresponding permissions.
2) If not, go to PackageManagerService. mSystemPermissions. This information is read from/system/etc/permissions/platform. xml at startup. Permission corresponding to uid of some system-level applications is recorded here.
3) return results.
4.2. CheckUriPermission1. if the uid is 0, it indicates that it is a root user, and the
author : Wan Jing, the absolute dustReprint Please famous source : http://blog.csdn.net/shulianghan/article/details/36438365Sample code Download :-- CSDN : http://download.csdn.net/detail/han1202012/7639253;-- GitHub : https://github.com/han1202012/TracerouteAndBusybox;1. Principles and Ideasfile permission modification cannot be implemented : If No root privileges , you cannot change the file permissions
What is an Android root privilege:
The Android administrator user is called Root, which has the highest right of the entire system to access and modify almost all files in the system, and only Root has the highest level of administrative authority.
Common uses:
1. Delet
permission mechanism of Android, we can know:1. Android APK is equivalent to the UID of Linux.2. Android permission is the equivalent of a Linux gid.3. Android signature is used to control the UID and GID allocation of the APK.Th
when the application is installed. When an application is installed on a device, the program requests the set of permissions required to complete the task. The requested permission list appears on the device screen for the user to review only after the user agrees to authorize the program will be installed and the application obtains all the requested permissions. So the main security rule that the Android
, you can give/system root permission first, and then replace this app. (It can also be installed as a user app, but it will not be available after restart)Run the command # Mount-T ubifs-O remount ubi0: System/system or # Mount-O remount ubi0: System/system to grant the/system RW permission.Then, use ADB push to push downloadprovider.apk to/system/APP. The system automatically replaces this app.
4) Write a
) First it finds the list of permissions for the UID (that is, the package) by calling GETUSERIDLP, going to the PackageManagerService.Setting.mUserIds array, and depending on the UID. Once found, the corresponding permission is indicated.2) If not found, then go to Packagemanagerservice.msystempermissions to find. This information is read from the/system/etc/permissions/platform.xml when it is started. This records some of the system-level applicatio
I don't know if you have any discovery, from cainiao's growth history: http://blog.csdn.net/zjbpku/article/details/25161131,
Later versions of KitKat do not support write operations on external SDcard (Secondary Storage. If you want to copy files to your mobile phone
It is stored in internal storage, but cannot be stored in external sdcard, and cannot create new folders, which makes it inconvenient for users and developers. Location
The external Sdcard cannot be operated in Versions later than K
UID. Once found, the corresponding permission is indicated.2) If not found, then go to Packagemanagerservice.msystempermissions to find. This information is read from the/system/etc/permissions/platform.xml when it is started. This records some of the system-level application UID corresponding to the permission.3) returns the result.4.2, CheckUriPermission1. If the UID is 0, the description is the
this way, the android. permission. WRITE_EXTERNAL_STORAGE, "sdcard_rw", and the 1015 groups are associated.
Let's look at the directory permission after the SD card is mounted:
Ls-l
Drwxr-xr-x root system 1970-01-01 08:00 obb
Drwxr-xr-x root system 1970-01-01 08:00 asec
Dr
Objectivealways curious about the fundamentals of Android Root, and just recently ran into a problem with the Android default with Root, and here's how the Android system root works.
PrincipleAndroid is an Open-source operating s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.