MJx0 / AndKittyInjector

Inject a shared library into a process using ptrace
MIT License
152 stars 60 forks source link

An error occurred while using injection within the speed of light virtual machine #15

Open SKININ opened 8 months ago

SKININ commented 8 months ago

When I use the Speed of Light virtual machine in Android 13

An error occurred while using injection within the speed of light virtual machine

The following is the error message content

Library Path: /data/local/tmp/libSk.so I: Use memfd dlopen: 1 I: Hide lib from maps: 0 I: Hide lib from solist: 0 I: Use app watch: 0 I: Inject delay: 1500000 I: inject_lib: Stopped target process threads. I: inject_lib: Attaching to target process... I: inject_lib: Attached successfully. I: injectLibrary: [native=arm64 | lib=arm64]. I: nativeInject: memfd_rand(11) = vEbrkV1r7Xu. E: nativeInject: Failed to open remote memfd file, errno = Read-only file system. W: nativeInject: android_dlopen_ext failed. I: nativeInject: falling back to legacy dlopen. I: getJavaVM: JNI_GetCreatedJavaVMs = 0x7052d9b9d0. I: injectLibrary: lib handle = 0x3922324f2b59889. I: injectLibrary: lib Base = 0x6e72563000. I: inject_lib: Continuing target process... I: callEntryPoint: JavaVM(0x70d8f9c1c0) | SecretKey(1337) | JNI_OnLoad(0x6e725e8a58). E: callFunction: Target process exited (0). I: callEntryPoint: Calling JNI_OnLoad(0x70d8f9c1c0, 1337) returned 0. W: callEntryPoint: Unexpected returned value 0. E: callFunction failed, Not attached to 1599. E: callFunction failed, Not attached to 1599. E: callFunction failed, Not attached to 1599. E: PTRACE_SETREGS failed, Not attached to 1599. E: injectLibrary: failed to restore registers. I: Injection took 198.252709 MS. I: Injection succeeded.