BNM-Dev
BNM-Dev
Calling unity methods outside of main thread is dangerous. This is reason of crash. And you can't call it using AddOnLoadEvent too, this event is too early. Hook sth, like...
Try use BNM v2.1.0
> Cannot find class 'android/app/ActivityThread' in project. This should be only warning, because BNM relays on `unsupported` Android API ([docs](https://developer.android.com/guide/app-compatibility/restrictions-non-sdk-interfaces)). That class always exists on devices, but not included to...
You skipped a lot of things: 1. You don't added hooking softaware to [GlobalSettings.hpp](https://github.com/ByNameModding/BNM-Android/blob/3edeec43d74fc4392ba1b1eb9d5002e1b2ef2a67/include/BNM/UserSettings/GlobalSettings.hpp#L123). 2. You skipped [Main.cpp](https://github.com/ByNameModding/BNM-Android/blob/3edeec43d74fc4392ba1b1eb9d5002e1b2ef2a67/examples/Main.cpp#L23), that shows how to load BNM into target app using JNI. 3....
This is intended behavior. BNM logs `[SetupBNM]` have debug level, so them won't show on real devices unless you meat some conditions (debugable app, or some global prop). And BNM...
Try remove `AllowLateInitHook`. It not needed for TryLoadByJNI. About logs in event - idk. It should work. I always had other problem - logs worked on real devices, but glitched...
Can you send apk with mod lib? I will check on my devices
1. Add `BNM::Loading::AddOnLoadedEvent(initializeUnityHooks);` and `initializeUnityHooks` method back to lib. In your precompiled version I can't see both. 2. Remove `pthread_create(&ptid, 0, hack_thread, 0);` and `pthread_create(&newthread, 0, background_task, 0);` from `void...
How have useless thing and wrong calls. Fixed version: ```cpp #include // need to make a common.h that contains all these headers cuz this is nasty #include #include #include #include...
> BNM::Structures::Mono::String *originalText = GetTextMethod(descObj); Here you trying to call method incorrectly. To call instance method, instance should be passed in `[]`, not as an argument. ```cpp BNM::Structures::Mono::String *originalText =...