Is there a way to code-sign (to allow it to open only on a device with specific ID) your Android app when using ad-hoc distribution (sending app to testers or clients as a subcontractor)?
I know I can share apk file pretty easily, but what if I don’t want other people to redistribute the app before it is ready? I don’t want testers to be able to distribute not finished and buggy version of my app for example. Or I would like to show my client the final version of the app, but not allow them to distribute it until the payment is made.
I did something similar.
Previously i get the IMEI of the tester device
and then on the onCreate() function
UPDATE :
for devices without telephony support like tablets you will get null using TelephonyManager, is better to use Secure.ANDROID_ID for some devices…