I need to restrict app subscription to certain number of devices per user. For this I was trying to get unique id for android phone ( Hardware ). I found below options but all of them has certain problems. Is there any solutions which does'nt have these problems ?
- Imei / Mei numbers using TelephonyManager APIs ( getDeviceId ) - This will be problematic in case of dual sims there might be active and inactive sim slots.
- AndroidId - Will be reset upon factory reset
- Wifi mac number - Need wifi connected to get this number and this will not be there for non wifi devices.
- Advertaising id - Can be reset by user
- Instance id - Can be reset on factory reset
- Sim serial number - Not bind to device instead it is for sim