system_server: LSPlant init fails (mmap dual mapping EACCES) — module handleLoadPackage never runs there
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- mobile-dev, operating-systems
Research direction
Start with the system_server injection path and the LSPlant dual-mapping failure reported as EACCES. Reproduce on the stated Android 15 and Magisk/Zygisk setup, then compare system_server behavior with regular app injection while collecting relevant logs. Done means either module loading works in system_server or the required kernel and SELinux prerequisites are documented.
Written by the indexing model from the issue text.
Description
Environment
- Device: moto g54 5G (MTK Dimensity 6020), Android 15, stock-ish ROM
- Root: Magisk 30.7 + Zygisk, SELinux Enforcing
- Vector v2.2 (3110-c4a701aa)
Symptom
The framework injects into system_server and logs Loading Vector/Xposed for system (UID: 1000), but immediately after:
E/LSPlant: mmap dual mapping failed with 13: Permission denied
I/VectorNative: Injected Vector framework into system_server.
After this, module handleLoadPackage is never invoked for the system_server process (zero module logs from the system_server pid), while injection into regular apps works perfectly on the same device and boot.
Diagnosis attempts
- Kernel audit is functional (other unrelated avc denials from system_server are logged at boot), but no avc denial corresponds to the LSPlant mmap failure — so this appears to be something other than a SELinux policy denial (memfd/seccomp/kernel restriction on system_server?).
- Applying
allow system_server system_server process execmemvia magiskpolicy (live + module sepolicy.rule) and rebooting has no effect — same error. dmesg -n 8+ reboot also produced no avc line for this operation.
Expected
Either system_server module loading works (module entry point invoked), or the failure mode is documented with the required kernel/SELinux prerequisites.
Question
Is system_server module loading supported on this combination, and if so what kernel/SELinux prerequisites does the LSPlant dual mapping need there? Happy to test canary builds or provide more logs.
- Dominant language
- Kotlin
- Stars
- 12.6k
- Forks
- 850
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JingMatrix/Vector
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
JingMatrix/Vector#999 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
JingMatrix/Vector#997 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JingMatrix/Vector#996 ·
Maintainers usually reply within 1 day
-
Modules not visibleOpenbug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
JingMatrix/Vector#991 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JingMatrix/Vector#990 · 1 comment ·
Maintainers usually reply within 1 day
All issues in JingMatrix/Vector
Similar issues
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Source: c7 Type: bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
navikt/esyfo-narmesteleder#654 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nonbili/meron#79 · 1 comment ·
Maintainers usually reply within 1 day
-
Source is down
Difficulty 1/5 Under an hour Newbie friendliness 70/100
keiyoushi/extensions-source#19728 ·
Maintainers usually reply within 1 day