MJx0 / AndKittyInjector

Inject a shared library into a process using ptrace
MIT License
161 stars 66 forks source link

Couldn't initialize injector #5

Closed slavadynasty closed 1 year ago

slavadynasty commented 1 year ago

E: KittyInjector: Failed to find syscall, remote lib not found. E: KittyInjector: Failed to initialize remote syscall.

im use ld emulator

MJx0 commented 1 year ago

Did you enable root in your emulator settings?

slavadynasty commented 1 year ago

root is enabled, magisk delta is installed. injecting from termux with root. lib and AndKittyInjector are located in data/local/tmp

MJx0 commented 1 year ago

Which architecture did you use for the injector? For emulators If your target app is 64bit then use x86_64, If 32bit use x86

slavadynasty commented 1 year ago

application and library are equal to arm7

slavadynasty commented 1 year ago

I changed the arch of the app with this script pkg=com.YonoProduction.ProjectEvolution pm path $pkg|sed -E 's/(.*):(.*)/\2/'|xargs pm install -r --abi armeabi-v7a sleep 1 echo "Installed"

MJx0 commented 1 year ago

If you want to inject an emulated armv7 then use the x86 version of the injector

slavadynasty commented 1 year ago

hide inject not working

W: injectLibrary: Library EMachine is not native. I: injectLibrary: [native=0x3 | lib=0x28]. I: injectLibrary: Searching for native bridge... I: injectLibrary: Found native bridge "libhoudini.so" version 3. I: injectLibrary: lib handle = 0xd1d75400 I: Injection took 14.872076 MS. I: Injection successed.

MJx0 commented 1 year ago

https://github.com/MJx0/AndKittyInjector/blob/27de6040a0a1b73fce824fef587af7dadf7f7b6e/AndKittyInjector/src/Injector/KittyInjector.cpp#L169

-hide is not implemented for emulated injection yet, I'm still working on it