I have a native android library (.so) I am contacting some application. In the native code, I want to check the name of the subscriber / package of the calling application.
The reason is that currently anyone can open the .apk file, take my .so file and use it to create their own applications.
Is there a way to safely identify the calling application from Java? It could be a package name, signature, or something else that could uniquely identify an Android application.
source
share