[BUG] Module cannot inject itself into the process
bug
## Environment
- **Device:** (e.g., One Plus Nord 5)
- **Android Version:** (Android 15 (kernel version: 14), API 34)
- **Root Method:** (KernelSU)
- **Root Version:** (KernelSU-Next 3.1.0)
- **Module Version:** (v2.2.3)
- **Zygisk:** (Zygisk Next)
## Description
The module fails to inject itself to the needed process to function, and thus the module doesn't work at all.
## Steps to Reproduce
1. Download module
2. Install module in KSU-Next
3. Reboot device
## Expected Behavior
Module would inject without errors
## Actual Behavior
Process injection fails
## Logs
<details>
<summary>Click to expand logs</summary>
--------- beginning of main
03-09 00:00:42.044 3520 3520 I CleveresTricky: injecting /data/adb/modules/cleverestricky/libcleverestricky.so and calling entry in 1353
03-09 00:00:42.044 3520 3520 D CleveresTricky: PTRACE_ATTACH successful for pid 1353
03-09 00:00:42.052 3520 3520 D CleveresTricky: Process 1353 stopped by SIGSTOP as expected.
03-09 00:00:42.052 3520 3520 D CleveresTricky: Successfully got registers for pid 1353
03-09 00:00:42.053 3520 3520 D CleveresTricky: libc return addr 0x7d09a87000
03-09 00:00:42.053 3520 3520 D CleveresTricky: sym close: 0x70a6d63dd8
03-09 00:00:42.053 3520 3520 D CleveresTricky: found local base 0x70a6cc7000 remote base 0x7d09a87000
03-09 00:00:42.053 3520 3520 D CleveresTricky: addr 0x7d09b23dd8
03-09 00:00:42.053 3520 3520 D CleveresTricky: sym socket: 0x70a6d5cc34
03-09 00:00:42.053 3520 3520 D CleveresTricky: found local base 0x70a6cc7000 remote base 0x7d09a87000
03-09 00:00:42.053 3520 3520 D CleveresTricky: addr 0x7d09b1cc34
03-09 00:00:42.053 3520 3520 D CleveresTricky: sym bind: 0x70a6dc3200
03-09 00:00:42.053 3520 3520 D CleveresTricky: found local base 0x70a6cc7000 remote base 0x7d09a87000
03-09 00:00:42.053 3520 3520 D CleveresTricky: addr 0x7d09b83200
03-09 00:00:42.053 3520 3520 D CleveresTricky: sym recvmsg: 0x70a6d72924
03-09 00:00:42.053 3520 3520 D CleveresTricky: found local base 0x70a6cc7000 remote base 0x7d09a87000
03-09 00:00:42.053 3520 3520 D CleveresTricky: addr 0x7d09b32924
03-09 00:00:42.053 3520 3520 D CleveresTricky: sym __errno: 0x70a6d5ce4c
03-09 00:00:42.053 3520 3520 D CleveresTricky: found local base 0x70a6cc7000 remote base 0x7d09a87000
03-09 00:00:42.053 3520 3520 D CleveresTricky: addr 0x7d09b1ce4c
03-09 00:00:42.053 3520 3520 V CleveresTricky: calling remote function 7d09b1cc34 args 3
03-09 00:00:42.053 3520 3520 V CleveresTricky: arg 0x1
03-09 00:00:42.053 3520 3520 V CleveresTricky: arg 0x80002
03-09 00:00:42.053 3520 3520 V CleveresTricky: arg 0x0
03-09 00:00:42.054 3520 3520 V CleveresTricky: write to 1353 addr 7fd1a9d340 size 19 use_proc_mem=0
03-09 00:00:42.054 3520 3520 D CleveresTricky: pushed mem 7fd1a9d340
03-09 00:00:42.054 3520 3520 V CleveresTricky: calling remote function 7d09b83200 args 3
03-09 00:00:42.054 3520 3520 V CleveresTricky: arg 0xa
03-09 00:00:42.054 3520 3520 V CleveresTricky: arg 0x7fd1a9d340
03-09 00:00:42.054 3520 3520 V CleveresTricky: arg 0x13
03-09 00:00:42.056 3520 3520 V CleveresTricky: write to 1353 addr 7fd1a9d320 size 24 use_proc_mem=0
03-09 00:00:42.056 3520 3520 D CleveresTricky: pushed mem 7fd1a9d320
03-09 00:00:42.056 3520 3520 V CleveresTricky: write to 1353 addr 7fd1a9d2e0 size 56 use_proc_mem=0
03-09 00:00:42.056 3520 3520 D CleveresTricky: pushed mem 7fd1a9d2e0
03-09 00:00:42.056 3520 3520 V CleveresTricky: calling remote function 7d09b32924 args 3
03-09 00:00:42.056 3520 3520 V CleveresTricky: arg 0xa
03-09 00:00:42.056 3520 3520 V CleveresTricky: arg 0x7fd1a9d2e0
03-09 00:00:42.056 3520 3520 V CleveresTricky: arg 0x100
03-09 00:00:42.057 3520 3520 E CleveresTricky: Invalid cmsg received from remote process
03-09 00:00:42.057 3520 3520 V CleveresTricky: calling remote function 7d09b23dd8 args 1
03-09 00:00:42.057 3520 3520 V CleveresTricky: arg 0xa
03-09 00:00:42.058 3520 3520 E CleveresTricky: Injection process failed.
03-09 00:00:42.109 3552 3552 I CleveresTricky: Daemon exited with code 1 (attempt 1/5)
03-09 00:00:53.312 6537 6537 I CleveresTricky: injecting /data/adb/modules/cleverestricky/libcleverestricky.so and calling entry in 3555
03-09 00:00:53.312 6537 6537 D CleveresTricky: PTRACE_ATTACH successful for pid 3555
03-09 00:00:53.314 6537 6537 D CleveresTricky: Process 3555 stopped by SIGSTOP as expected.
03-09 00:00:53.314 6537 6537 D CleveresTricky: Successfully got registers for pid 3555
03-09 00:00:53.315 6537 6537 D CleveresTricky: libc return addr 0x77d52d0000
03-09 00:00:53.315 6537 6537 D CleveresTricky: sym close: 0x71114acdd8
03-09 00:00:53.315 6537 6537 D CleveresTricky: found local base 0x7111410000 remote base 0x77d52d0000
03-09 00:00:53.315 6537 6537 D CleveresTricky: addr 0x77d536cdd8
03-09 00:00:53.315 6537 6537 D CleveresTricky: sym socket: 0x71114a5c34
03-09 00:00:53.315 6537 6537 D CleveresTricky: found local base 0x7111410000 remote base 0x77d52d0000
03-09 00:00:53.315 6537 6537 D CleveresTricky: addr 0x77d5365c34
03-09 00:00:53.315 6537 6537 D CleveresTricky: sym bind: 0x711150c200
03-09 00:00:53.315 6537 6537 D CleveresTricky: found local base 0x7111410000 remote base 0x77d52d0000
03-09 00:00:53.315 6537 6537 D CleveresTricky: addr 0x77d53cc200
03-09 00:00:53.315 6537 6537 D CleveresTricky: sym recvmsg: 0x71114bb924
03-09 00:00:53.315 6537 6537 D CleveresTricky: found local base 0x7111410000 remote base 0x77d52d0000
03-09 00:00:53.315 6537 6537 D CleveresTricky: addr 0x77d537b924
03-09 00:00:53.316 6537 6537 D CleveresTricky: sym __errno: 0x71114a5e4c
03-09 00:00:53.316 6537 6537 D CleveresTricky: found local base 0x7111410000 remote base 0x77d52d0000
03-09 00:00:53.316 6537 6537 D CleveresTricky: addr 0x77d5365e4c
03-09 00:00:53.316 6537 6537 V CleveresTricky: calling remote function 77d5365c34 args 3
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x1
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x80002
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x0
03-09 00:00:53.316 6537 6537 V CleveresTricky: write to 3555 addr 7fd6b36e70 size 19 use_proc_mem=0
03-09 00:00:53.316 6537 6537 D CleveresTricky: pushed mem 7fd6b36e70
03-09 00:00:53.316 6537 6537 V CleveresTricky: calling remote function 77d53cc200 args 3
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0xa
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x7fd6b36e70
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x13
03-09 00:00:53.316 6537 6537 V CleveresTricky: write to 3555 addr 7fd6b36e50 size 24 use_proc_mem=0
03-09 00:00:53.316 6537 6537 D CleveresTricky: pushed mem 7fd6b36e50
03-09 00:00:53.316 6537 6537 V CleveresTricky: write to 3555 addr 7fd6b36e10 size 56 use_proc_mem=0
03-09 00:00:53.316 6537 6537 D CleveresTricky: pushed mem 7fd6b36e10
03-09 00:00:53.316 6537 6537 V CleveresTricky: calling remote function 77d537b924 args 3
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0xa
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x7fd6b36e10
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0x100
03-09 00:00:53.316 6537 6537 E CleveresTricky: Invalid cmsg received from remote process
03-09 00:00:53.316 6537 6537 V CleveresTricky: calling remote function 77d536cdd8 args 1
03-09 00:00:53.316 6537 6537 V CleveresTricky: arg 0xa
03-09 00:00:53.316 6537 6537 E CleveresTricky: Injection process failed.
03-09 00:00:53.372 6551 6551 I CleveresTricky: Daemon exited with code 1 (attempt 2/5)
03-09 00:01:03.706 8837 8837 I CleveresTricky: injecting /data/adb/modules/cleverestricky/libcleverestricky.so and calling entry in 6563
03-09 00:01:03.707 8837 8837 D CleveresTricky: PTRACE_ATTACH successful for pid 6563
03-09 00:01:03.707 8837 8837 D CleveresTricky: Process 6563 stopped by SIGSTOP as expected.
03-09 00:01:03.707 8837 8837 D CleveresTricky: Successfully got registers for pid 6563
03-09 00:01:03.709 8837 8837 D CleveresTricky: libc return addr 0x71d8a49000
03-09 00:01:03.710 8837 8837 D CleveresTricky: sym close: 0x7291118dd8
03-09 00:01:03.710 8837 8837 D CleveresTricky: found local base 0x729107c000 remote base 0x71d8a49000
03-09 00:01:03.710 8837 8837 D CleveresTricky: addr 0x71d8ae5dd8
03-09 00:01:03.710 8837 8837 D CleveresTricky: sym socket: 0x7291111c34
03-09 00:01:03.710 8837 8837 D CleveresTricky: found local base 0x729107c000 remote base 0x71d8a49000
03-09 00:01:03.710 8837 8837 D CleveresTricky: addr 0x71d8adec34
03-09 00:01:03.710 8837 8837 D CleveresTricky: sym bind: 0x7291178200
03-09 00:01:03.710 8837 8837 D CleveresTricky: found local base 0x729107c000 remote base 0x71d8a49000
03-09 00:01:03.710 8837 8837 D CleveresTricky: addr 0x71d8b45200
03-09 00:01:03.710 8837 8837 D CleveresTricky: sym recvmsg: 0x7291127924
03-09 00:01:03.710 8837 8837 D CleveresTricky: found local base 0x729107c000 remote base 0x71d8a49000
03-09 00:01:03.710 8837 8837 D CleveresTricky: addr 0x71d8af4924
03-09 00:01:03.710 8837 8837 D CleveresTricky: sym __errno: 0x7291111e4c
03-09 00:01:03.710 8837 8837 D CleveresTricky: found local base 0x729107c000 remote base 0x71d8a49000
03-09 00:01:03.710 8837 8837 D CleveresTricky: addr 0x71d8adee4c
03-09 00:01:03.710 8837 8837 V CleveresTricky: calling remote function 71d8adec34 args 3
03-09 00:01:03.710 8837 8837 V CleveresTricky: arg 0x1
03-09 00:01:03.710 8837 8837 V CleveresTricky: arg 0x80002
03-09 00:01:03.710 8837 8837 V CleveresTricky: arg 0x0
03-09 00:01:03.711 8837 8837 V CleveresTricky: write to 6563 addr 7fc849f120 size 19 use_proc_mem=0
03-09 00:01:03.711 8837 8837 D CleveresTricky: pushed mem 7fc849f120
03-09 00:01:03.711 8837 8837 V CleveresTricky: calling remote function 71d8b45200 args 3
03-09 00:01:03.711 8837 8837 V CleveresTricky: arg 0xa
03-09 00:01:03.711 8837 8837 V CleveresTricky: arg 0x7fc849f120
03-09 00:01:03.711 8837 8837 V CleveresTricky: arg 0x13
03-09 00:01:03.711 8837 8837 V CleveresTricky: write to 6563 addr 7fc849f100 size 24 use_proc_mem=0
03-09 00:01:03.711 8837 8837 D CleveresTricky: pushed mem 7fc849f100
03-09 00:01:03.711 8837 8837 V CleveresTricky: write to 6563 addr 7fc849f0c0 size 56 use_proc_mem=0
03-09 00:01:03.711 8837 8837 D CleveresTricky: pushed mem 7fc849f0c0
03-09 00:01:03.711 8837 8837 V CleveresTricky: calling remote function 71d8af4924 args 3
03-09 00:01:03.712 8837 8837 V CleveresTricky: arg 0xa
03-09 00:01:03.712 8837 8837 V CleveresTricky: arg 0x7fc849f0c0
03-09 00:01:03.712 8837 8837 V CleveresTricky: arg 0x100
03-09 00:01:03.712 8837 8837 E CleveresTricky: Invalid cmsg received from remote process
03-09 00:01:03.712 8837 8837 V CleveresTricky: calling remote function 71d8ae5dd8 args 1
03-09 00:01:03.712 8837 8837 V CleveresTricky: arg 0xa
03-09 00:01:03.713 8837 8837 E CleveresTricky: Injection process failed.
03-09 00:01:03.757 8850 8850 I CleveresTricky: Daemon exited with code 1 (attempt 3/5)
03-09 00:01:14.049 10916 10916 I CleveresTricky: injecting /data/adb/modules/cleverestricky/libcleverestricky.so and calling entry in 8853
03-09 00:01:14.049 10916 10916 D CleveresTricky: PTRACE_ATTACH successful for pid 8853
03-09 00:01:14.052 10916 10916 D CleveresTricky: Process 8853 stopped by SIGSTOP as expected.
03-09 00:01:14.052 10916 10916 D CleveresTricky: Successfully got registers for pid 8853
03-09 00:01:14.053 10916 10916 D CleveresTricky: libc return addr 0x76b20d4000
03-09 00:01:14.053 10916 10916 D CleveresTricky: sym close: 0x7b47b49dd8
03-09 00:01:14.053 10916 10916 D CleveresTricky: found local base 0x7b47aad000 remote base 0x76b20d4000
03-09 00:01:14.053 10916 10916 D CleveresTricky: addr 0x76b2170dd8
03-09 00:01:14.053 10916 10916 D CleveresTricky: sym socket: 0x7b47b42c34
03-09 00:01:14.053 10916 10916 D CleveresTricky: found local base 0x7b47aad000 remote base 0x76b20d4000
03-09 00:01:14.053 10916 10916 D CleveresTricky: addr 0x76b2169c34
03-09 00:01:14.053 10916 10916 D CleveresTricky: sym bind: 0x7b47ba9200
03-09 00:01:14.053 10916 10916 D CleveresTricky: found local base 0x7b47aad000 remote base 0x76b20d4000
03-09 00:01:14.053 10916 10916 D CleveresTricky: addr 0x76b21d0200
03-09 00:01:14.053 10916 10916 D CleveresTricky: sym recvmsg: 0x7b47b58924
03-09 00:01:14.053 10916 10916 D CleveresTricky: found local base 0x7b47aad000 remote base 0x76b20d4000
03-09 00:01:14.053 10916 10916 D CleveresTricky: addr 0x76b217f924
03-09 00:01:14.053 10916 10916 D CleveresTricky: sym __errno: 0x7b47b42e4c
03-09 00:01:14.053 10916 10916 D CleveresTricky: found local base 0x7b47aad000 remote base 0x76b20d4000
03-09 00:01:14.054 10916 10916 D CleveresTricky: addr 0x76b2169e4c
03-09 00:01:14.054 10916 10916 V CleveresTricky: calling remote function 76b2169c34 args 3
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x1
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x80002
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x0
03-09 00:01:14.054 10916 10916 V CleveresTricky: write to 8853 addr 7fe9f8e4a0 size 19 use_proc_mem=0
03-09 00:01:14.054 10916 10916 D CleveresTricky: pushed mem 7fe9f8e4a0
03-09 00:01:14.054 10916 10916 V CleveresTricky: calling remote function 76b21d0200 args 3
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0xc
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x7fe9f8e4a0
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x13
03-09 00:01:14.054 10916 10916 V CleveresTricky: write to 8853 addr 7fe9f8e480 size 24 use_proc_mem=0
03-09 00:01:14.054 10916 10916 D CleveresTricky: pushed mem 7fe9f8e480
03-09 00:01:14.054 10916 10916 V CleveresTricky: write to 8853 addr 7fe9f8e440 size 56 use_proc_mem=0
03-09 00:01:14.054 10916 10916 D CleveresTricky: pushed mem 7fe9f8e440
03-09 00:01:14.054 10916 10916 V CleveresTricky: calling remote function 76b217f924 args 3
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0xc
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x7fe9f8e440
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0x100
03-09 00:01:14.054 10916 10916 E CleveresTricky: Invalid cmsg received from remote process
03-09 00:01:14.054 10916 10916 V CleveresTricky: calling remote function 76b2170dd8 args 1
03-09 00:01:14.054 10916 10916 V CleveresTricky: arg 0xc
03-09 00:01:14.054 10916 10916 E CleveresTricky: Injection process failed.
03-09 00:01:14.189 10974 10974 I CleveresTricky: Daemon exited with code 1 (attempt 4/5)
03-09 00:01:24.523 13854 13854 I CleveresTricky: injecting /data/adb/modules/cleverestricky/libcleverestricky.so and calling entry in 10945
03-09 00:01:24.523 13854 13854 D CleveresTricky: PTRACE_ATTACH successful for pid 10945
03-09 00:01:24.526 13854 13854 D CleveresTricky: Process 10945 stopped by SIGSTOP as expected.
03-09 00:01:24.526 13854 13854 D CleveresTricky: Successfully got registers for pid 10945
03-09 00:01:24.527 13854 13854 D CleveresTricky: libc return addr 0x7172cd2000
03-09 00:01:24.527 13854 13854 D CleveresTricky: sym close: 0x7986768dd8
03-09 00:01:24.527 13854 13854 D CleveresTricky: found local base 0x79866cc000 remote base 0x7172cd2000
03-09 00:01:24.527 13854 13854 D CleveresTricky: addr 0x7172d6edd8
03-09 00:01:24.527 13854 13854 D CleveresTricky: sym socket: 0x7986761c34
03-09 00:01:24.527 13854 13854 D CleveresTricky: found local base 0x79866cc000 remote base 0x7172cd2000
03-09 00:01:24.527 13854 13854 D CleveresTricky: addr 0x7172d67c34
03-09 00:01:24.527 13854 13854 D CleveresTricky: sym bind: 0x79867c8200
03-09 00:01:24.527 13854 13854 D CleveresTricky: found local base 0x79866cc000 remote base 0x7172cd2000
03-09 00:01:24.527 13854 13854 D CleveresTricky: addr 0x7172dce200
03-09 00:01:24.527 13854 13854 D CleveresTricky: sym recvmsg: 0x7986777924
03-09 00:01:24.527 13854 13854 D CleveresTricky: found local base 0x79866cc000 remote base 0x7172cd2000
03-09 00:01:24.527 13854 13854 D CleveresTricky: addr 0x7172d7d924
03-09 00:01:24.527 13854 13854 D CleveresTricky: sym __errno: 0x7986761e4c
03-09 00:01:24.527 13854 13854 D CleveresTricky: found local base 0x79866cc000 remote base 0x7172cd2000
03-09 00:01:24.527 13854 13854 D CleveresTricky: addr 0x7172d67e4c
03-09 00:01:24.527 13854 13854 V CleveresTricky: calling remote function 7172d67c34 args 3
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x1
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x80002
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x0
03-09 00:01:24.527 13854 13854 V CleveresTricky: write to 10945 addr 7fee663600 size 19 use_proc_mem=0
03-09 00:01:24.527 13854 13854 D CleveresTricky: pushed mem 7fee663600
03-09 00:01:24.527 13854 13854 V CleveresTricky: calling remote function 7172dce200 args 3
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0xf
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x7fee663600
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x13
03-09 00:01:24.527 13854 13854 V CleveresTricky: write to 10945 addr 7fee6635e0 size 24 use_proc_mem=0
03-09 00:01:24.527 13854 13854 D CleveresTricky: pushed mem 7fee6635e0
03-09 00:01:24.527 13854 13854 V CleveresTricky: write to 10945 addr 7fee6635a0 size 56 use_proc_mem=0
03-09 00:01:24.527 13854 13854 D CleveresTricky: pushed mem 7fee6635a0
03-09 00:01:24.527 13854 13854 V CleveresTricky: calling remote function 7172d7d924 args 3
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0xf
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x7fee6635a0
03-09 00:01:24.527 13854 13854 V CleveresTricky: arg 0x100
03-09 00:01:24.528 13854 13854 E CleveresTricky: Invalid cmsg received from remote process
03-09 00:01:24.528 13854 13854 V CleveresTricky: calling remote function 7172d6edd8 args 1
03-09 00:01:24.528 13854 13854 V CleveresTricky: arg 0xf
03-09 00:01:24.528 13854 13854 E CleveresTricky: Injection process failed.
03-09 00:01:24.553 13865 13865 I CleveresTricky: Daemon exited with code 1 (attempt 5/5)
03-09 00:01:24.563 13867 13867 I CleveresTricky: Max retries reached, giving up
</details>
## Integrity Check Result
If applicable, include the output from [Play Integrity API Checker](https://play.google.com/store/apps/details?id=gr.nickas.playintegrity):
- MEETS_BASIC_INTEGRITY: ❌
- MEETS_DEVICE_INTEGRITY: ❌
- MEETS_STRONG_INTEGRITY: ❌
## Additional Context
None
1 条评论