Search code examples
javaandroidservletsphishing

Prevent phishing Android apps communicating with server


I have created and published on Google Play an Android app that communicates with my server. I want to check that my server (Java Servlet) only accepts requests from this Android app, so that if someone clones my code and creates a new app, when it tries to communicate with the server, the requests are rejected.

Is there a way to do that? Perhaps with domain names, or signed apps,...? This is to prevent phishing attacks.


Solution

  • You can get your app's signing key and check it on your server, but someone can get this information. If you use https for your connection, and use proguard, I think it's disincentive enough.