Caller ID Identification in Android NDK

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.

+3
source share
1 answer

JNI Java . , Java private static final JNI.

+2

Source: https://habr.com/ru/post/1756672/


All Articles