Is there an ID available that is unique to the installation of an app?

Unique across devices I mean, so if the same app is installed on 10 different devices then there are 10 different ids. And two different apps on the same device must give two different IDs.

Needs to remain constant following app updates and would ideally change if you uninstalled and reinstalled the app.

And for security reasons I don't want to generate a UUID and write it to a file in app-private storage.

Source: View source