User Activity

Dear Android Community,I am currently working on an Android application where I need to fetch the IMEI (International Mobile Equipment Identity) number programmatically. However, I am facing some challenges in implementing this functionality, especia...
 How to get IMEI number in android version 10 or above? We had also implemented the permissions for getting IMEI number i.n. READ_PRIVILEGED_PHONE_STATE but we receive error in code. So is there any other option to fetch the IMEI number?