I get the props of my Android virtual device in Android Studio with the following command:
adb shell getprop
[ro.serialno]: [EMULATOR33X1X24X0]
[ro.setupwizard.mode]: [DISABLED]
[ro.soc.manufacturer]: [AOSP]
[ro.soc.model]: [ranchu]
[ro.surface_flinger.supports_background_blur]: [1]
[ro.system.build.date]: [Thu May 4 01:52:23 UTC 2023]
I have full root access to my device
1- Now my question was, is there a command in the adb shell that can be used to replace the values of a prop without finding the file and trying to change it manually?
2- And if not, is there a command by which we can understand, for example, in which file prop:[ro.serialno] is located and get its path
I'm looking for a command that can make it easier for me to change the prop... I googled it but couldn't find anything.
yes & no: If you indeed have root, then you can (generally) use the corresponding setprop foo bar
However, none of these are eligible for this since they are all prefixed by ro
(which means read-only). In other words, these are properties managed by the system (obviously tweaking the build date
would not even make sense, as a user - even root. ro.serial
may especially be a concern from a regulatory standpoint, which is why it is read-only).