In the Android system, there are some Initialization Configuration files, such:
/Init. RC
/Default. Prop
/System/build. Prop
The file contains the system attribute values configured for boot,
These property values can be obtained through getprop, setprop settings,
The format is as follows:
Getprop [Key]
Obtains the configuration value of the specified key. If the parameter is not included but getprop is used, all the configuration values of the system are displayed.
[Dalvik. VM. heapsize]: [24 m]
[Curlockscreen]: [1]
[Ro. SF. hwrotation]: [0]
[Ro. config. icationication_sound]: [onthehunt.ogg]
[Ro. config. alarm_alert]: [alarm_classic.ogg]
Setprop [Key] [value] sets the attribute value of the specified key. watchprops listens for system attribute changes, if the system attribute changes during this period, the changed value is displayed as/system # watchprops 1307501833 sys. settings_system_version = '37 '1307501836 sys. settings_system_version = '38' 1307501862 persist. SYS. timezone = 'Asia/hong_kong 'in fact, these three commands are all toolbox subcommands. If you are interested, you can see the corresponding source code in the android source code: System/CORE/toolbox/