Ui automator does not provide element locator(ID and Name) in "Xiaomi Note"

Hi All,

Ui automator isn’t providing element locator Id and Name in “Xiaomi Note”,But its working fine in Samsung devices. So i want to know that is it device issue ? and also how to automate app without element locators. In this device only Class Name is available.

Please let me know how to handle it.

Thanks in advance.