Use Android in command getprop

(1)getprop

In the Android system, using getprop command reads the device information files, for example from the system properties:

init.rc
default.prop
/system/build.prop

All inquiries Android device configuration information:

adb shell getprop

On Android terminal running the above command lists all the configuration information, as follows:

In the configuration of all listed among ro at the beginning of the read-only attribute.

View a single Android device configuration information:

adb shell getprop <prop-name>

For example, to view the board information, you can use the following command:

adb shell getprop ro.product.board

In addition, and also Pipe command symbol | combination filter output configuration:

Access to information about the virtual machine configuration dalvik, you can use the following command:

adb shell getprop | grep dalvik

 

(2)setprop

On Android setprop terminal device can be set for some of the configuration of the device, but the premise, these configurations can be written, instead ro type, configuration setting command follows:

setprop <prop-name> <value>

For example, modify the default allocation process can be used heap memory size:

adb shell setprop dalvik.vm.heapgrowthlimit 128m

 

(3)watchprops

In the Android system, used to monitor changes in the command watchprops system properties, in the meantime, if the system changes the attribute value change will be displayed, as follows:

adb shell watchprops

 

Guess you like

Origin www.cnblogs.com/Cqlismy/p/11779295.html