I\'m following this solution to use enetities in my string resource file:
Is it possible to do string substitution in Android resource XML files directly?
I\
Alternatively, if you still prefer avoiding resolving placeholders on Java/Kotlin and rather get them resolved in the XML files, then you could use this small library I created: https://github.com/LikeTheSalad/android-string-reference which will allow you to do something like this:
MyDeviceName
The name is ${devicename}
And then, you make/build the project, and a new file will be generated with:
The name is MyDeviceName
More info on the repo provided above.