Access Signing Key from Android

Does anyone know how to access the key that signed the APK via C++ in Android?

I’d like to check to make sure that the APK is signed with my production key. This will annoy pirates, and doing it in C++ will be harder to work around then Java.

The file is located in META-INF, but I’m not sure exactly how to read those files from C++.

You can use cocos console: cocos run -p android -m release

Try this

You can use JNI to call the Java code from C++

That’s very similar to the approach I need to use, but I need a purely C++ implementation.

The Java only approach has already been automatically worked around by pirates – they’ve got it fully scripted.

The only want to keep them from modifying the Dex is to use C++