http://blog.csdn.net/ameyume/article/details/8056492
1.Android systemproperties Introduction
Describes the permissions that are required to set a property, and how permissions are set. The
Systemproperties class is under Android.os, but the class is hidden and the upper-level program development cannot be used directly. In fact, the reflection mechanism using Java can use this class. What is the Java reflection mechanism, please self-study, do not introduce, in the following articles. In a JNI way, you can bypass the Systemproperties class and call directly locally to implement the creation, acquisition, and modification of system properties. Do not introduce here, also put in the following articles.
This article mainly describes the naming of Android System Properties:
Create and modify Android properties with Systemproperties.set (name, value), To get Android properties with Systemproperties.get (name), it is important to note that the name of the Android attribute is in a certain format, as follows: The prefix must be used System\core\init\property_ The prefix defined in the SERVICE.C, the program that makes the system property settings must have either system or root permissions,
How do I elevate the permissions of the Android program to the system permissions? The method is this:
1, in Androidmanifest.xml, add android:shareduserid= "Android.uid.system" to manifest.
2, in Android.mk, local_certificate: = XXX modified to local_certificate: =platform. The
Can elevate the AP's permissions to the system permissions after two steps. However, there are two drawbacks to elevate permissions in this way, as follows:
1, the owner of the program must have the source code of the program,
2, the owner of the program must also have an Android development environment, that is, they can make the entire Android system.
Can usually do these two points, basically are developers!