How does adb shell getprop and setprop work?

后端 未结 1 1369
耶瑟儿~
耶瑟儿~ 2021-02-14 15:21

I would like to understand how adb shell setprop mypropertykey mypropertyvalue works. In other words, I edited the /system/build.prop file, but when I

相关标签:
1条回答
  • 2021-02-14 15:33

    Android system properties are being managed by special property_service. The /system/build.prop is just one out of 4-6 (depending on the version) read-only files containing the default values that property_service uses to populate its internal in-memory database with during start-up. So changes to the files during run time would not propagate until after reboot.

    The setprop and getprop commands are used to access the data in that database. Unless the property name starts with persist. - then the value gets stored in /data/property folder.

    0 讨论(0)
提交回复
热议问题