9,801 questions
-6
votes
0
answers
59
views
How do I Edit offset and Hook in runtime memory in kotlin project using JNI [closed]
I am creating an Injector for game modding and a newbie and want the code that like i am having aimbot offset so how do I literal hook the function and modify its behavior in runtime.
3
votes
1
answer
101
views
Create a RawPacket with a byte array
I'm creating an Android app that can capture the internet traffic to analyze later. Through a VPN tunnel, I can get the packets in a byte[] array.
Is it possible to create a pcpp::RawPacket in ...
1
vote
0
answers
324
views
How do I call Java code from C in a plugin and avoid random fails
Then my plugin, written in C, is loaded it makes an initial call to JNI_CreateJavaVM(). It seems to fail completely at random. Running it one time might fail but the next time it might succeed. It ...
4
votes
2
answers
213
views
How to load native libraries with a long path?
My Java application is installed to another application's "test area", resulting in longer absolute file paths than usual.
I can load native libraries from a short file path:
System.load(&...
5
votes
1
answer
74
views
Lookup for a constant from a native library
I'm writing a demo Java app that interacts with libpq. For this, I'm using java.lang.foreing package. My problem is, I can easily pick up functions but not integer enum constants:
System.load("...
0
votes
0
answers
46
views
Qt 6 Android: Camera intent opens but image is not saved to device when using FileProvider
I am developing an Android application using Qt 6 (C++) and trying to open the system camera and save the captured image to device storage.
The camera app opens correctly, the photo is taken, but the ...
0
votes
0
answers
119
views
SIGABRT in libfbjni.so: facebook::jni::JNativeRunnable::run() crash on arm64-v8a (React Native)
I’m seeing a native crash (SIGABRT) on arm64-v8a devices in a React Native Android app on Android 15 and 16. The crash originates from libfbjni.so while executing facebook::jni::JNativeRunnable::run()....
0
votes
0
answers
65
views
React Native Android: BLE audio packets received but no continuous live sound using AudioTrack + JNI (.so SDK)
I am building a React Native (Android) application that connects to a Bluetooth LE fetal doppler device.
The BLE connection works correctly and I receive live packets (0x71 command) that contain audio ...
0
votes
0
answers
79
views
Portaudio is recording a weird distorted waveform when recording jack devices and firefox
I am not sure why this is happening so I am coming here to look for any sort of help I can get. Basically when recording any jack device such as firefox in my app it comes out as distorted. But it ...
3
votes
0
answers
159
views
Memory leak in JNI with AttachCurrentThread() and DetachCurrentThread()
I have a Java application that calls a native function. That native function contains a loop, and in each iteration it launches 10 threads and waits for them to complete. Each thread performs a number ...
6
votes
0
answers
474
views
When should I use name resolution vs. RegisterNatives in JNI?
In System.c, the JVM function corresponding to Java’s System.currentTimeMillis() is registered using RegisterNatives.
In contrast, System.identityHashCode(Object) calls a JVM function directly based ...
0
votes
1
answer
79
views
AWS Kinesis Video Streams Producer JNI times out (StatusCode: 0xf) in Ubuntu container running gRPC service; REST container works
gRPC service consistently fails with KVS Producer JNI “producer stream creation time out StatusCode: 0xf” about ~15s after “Creating Kinesis Video stream”.
REST service (same repo, same JNI .so, same ...
3
votes
1
answer
145
views
What is a .so file in Java projects, and how can I use an old JAR that depends on .so files in Spring Boot?
I have an old Java JAR file that depends on .so files (shared object libraries).
I understand .so files are native libraries (written in C/C++), and the JAR uses JNI (Java Native Interface) or JNA to ...
0
votes
0
answers
81
views
Link third party C library through the JNI
I'm trying to add the wasmtime c-api library to my app. But I'm getting the following error at runtime:
java.lang.UnsatisfiedLinkError: dlopen failed: library "/Users/tufekoi/Repos/...
0
votes
0
answers
24
views
LOCAL_MODULE_FILENAME must not contain a file extension (Implementing GStreamer in Andriod Studio Project)
I am trying to integrate GStreamer via JNI into an existing Android Studio project.
My Android.mk file looks like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := rtsp-...