Localization on real-time device and identifying if connected device is emulator or real-time device

Hi All,

I am working on localization of an application that runs on a browser. I’m able to change the Locale of the emulator however looking for a solution to change on a real-time device. Android does have in-built library and I will have to use it as Android project than Java project.
Secondly, has anyone come across java library using which we can identify if the connected device is emulator or real-time device? Here again, I can use android.os library, however it has to be a android project.

Thank you,
Sowrabha