Just to ellaborate and support you point
It is extremely easy to change such info as it is present in a file called build.prop which is easily accessible after rooting. After that all you have to do is change values and names.
I did this with my old HTC Wildfire S to check it. I changed it's name to HTC One M8 and some other related info as well to that of One M8 and after a reboot everywhere the name changed to One M8. Even third party apps like Antutu Benchmark showed it to be HTC One M8 