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 try to use getprop
command to read the value back I seem to be getting a blank value instead.
However, when I set the property via adb shell setprop
in the root mode and then unroot the emulator and read the value using code, I am able to get the proper value.
What I don't understand is, if the value is set via adb shell setprop
then why does it not get written to the build.prop
file? Then where does getprop
read the values from?