You can use the code in this answer to get a unique device identifier.
However, you won’t be able to use this to restrict Google Play to restricting your application to this device only, instead, as @ThomasK suggests, you can add a check for that specific device identifier and end () if it is not a specific device.
You can limit the installation of an application from a game in different ways, but you cannot limit it to such an extent at the configuration level.
source
share