ByNameModding / BNM-Android

Modding il2cpp games by classes, methods, field names on Android.
MIT License
196 stars 38 forks source link

Any chance to call Java method of hooked game? #29

Closed dvgmdvgm closed 6 months ago

dvgmdvgm commented 6 months ago

Hello. I want to call some Java method of hooking game from BNM. How can i achieve it? For example: class = com.game..Util; methodToast = class.showToast; methodToast("MOD by Bruno");

BNM-Dev commented 6 months ago

2 ways:

  1. BNM less - JNI.
  2. With BNM - Unity's AndroidJNI, that just wrapper for JNI, so better is just use JNI.