Android: Where does android store system properties key/value I want to change device's serial number. I have researched and finding some places that android stores prop file:

/default.prop
/system/build.prop
/system/default.prop
/vendor/build.prop
/data/local.prop
/factory/factory.prop


On my device, there are just 2 places for storing prop file:

/default.prop
/system/build.prop


But I view those two files and don't see serial number storing here. I also see that serial number is storing at: /data/property/. But as I researched, this directory is just a memory mapping. So I have tried modify and reset device, all values come back to normal value.

Please tell me where android store imei/serial number ...

Thanks
Device Serial

I have several devices sharing the same serial (namely the phantastic 0123456789ABCDEF), so I've been looking for a solution as well a few years ago, and found it. Of course, it requires a rooted device.

adb shell
su
mount -o remount,rw /system
vi /system/etc/install-recovery.sh
# edit, save and exit
mount -o reount, ro /system


And here comes the line to add to /system/etc/install-recovery.sh to make the magic happen:

echo -n NEWSERIAL123 &gt; /sys/class/android_usb/android0/iSerial


Of course, replace NEWSERIAL123 by the serial you want the device to use. After the next reboot, this should be in effect.



Device IMEI

As for the IMEI, you'd better not touch that. Legal issues – apart from the fact that different brands deal with it differently.