Android System Properties (systemproperties) settings analysis

Source: Internet
Author: User

1. Call between JAVA layer and internal so

Java layer permissions, Key,value definition rules and requirements

Http://www.blogjava.net/anymobile/articles/301989.html

Android systemproperties set/Get the usage summary of System Properties

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!

2. Whether it is persistent

3. How to Empty

3.

Android System Properties (systemproperties) settings analysis

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.