Skip to content

Android runtime Signature verification native .so library

Notifications You must be signed in to change notification settings

n0ise9914/anguard

Repository files navigation

Protect your android app/game against reverse engineering with native .so library.


Building

Replace the AES key with yours

gradlew anguard:assembleRelease

Unity3D

AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaObject context = activity.Call<AndroidJavaObject>("getApplicationContext");
AndroidJavaClass anguardClass = new AndroidJavaClass("com.anguard.Anguard");
anguardClass.CallStatic("initialize", context);
string token = anguardClass.CallStatic<string>("getToken", "");

sample project anguard-unity3d.rar

Server

Use this Method to decrypt the token at your java backend.