To check if your application is the same or not, it is easy to get .apk files. Then you can calculate the hash code from the binary data of the file. How to do it: How to calculate MD5 file .
If you don’t have apk files to compare, as some users hacked your application, it’s basically too late, and the only thing you can do is add some server-side validation, but it still won’t stop the hacker from generating any valid inquiries.
As a prevention for the future, you can use ProGuard / DexGuard to confuse your application and make it more difficult (but not impossible) for a hacker to crack your application.
In general, you can never be sure that your customers have not been hacked. You need to apply server-side validation and be paranoid all the time.
noone source share