I'm developing an Android App on an open protocol.

It'll be open source but I want the server (closed source) to be able to check whether the client is the original app or a modification ( compiled by someone else ).

Is that possible on Android?