Due to legal restrictions and for privacy reasons, on more recent android devices the computed device ID will always be diferent from phone to phone, and also everytime you change the app key, delete & reinstall the app or reset the device.
For the purpose you want, you must develop your own solution.