Repository navigation
Conversation
Stop surviving Vector daemons and detach their compiler mounts before starting a replacement. Cover the first update before Android restarts, preserve unrelated mounts, and retain the existing service arguments. Builds on the lifecycle diagnosis in JingMatrix#878 and JingMatrix#914 and the stale compiler mounts reported by ManiaciaChao in JingMatrix#878. Include isolated Linux process/mount regression tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
KernelSU replays module startup while Vector's detached daemon can survive. Starting another daemon can collide with the survivor and inherit its compiler bind mounts, causing a wrapper to be cached as the stock dex2oat.
This change prepares the next startup in the module scripts:
emulated-soft-reboot.sh, inpost-fs-data.shfor the first update from a version without that hook, and beforeservice.shstarts a replacement. Install both new stage scripts.The production diff is limited to four shell files. It adds no application hooks, persistent PID markers or SELinux mode changes; non-KernelSU startup and existing daemon arguments are preserved.
Related to #878. This builds on H3XDaemon's lifecycle hook in #914 and ManiaciaChao's stale-mount diagnosis. It is a standalone implementation against master that overlaps #914, not a patch to apply on top of it. #1008 provides a separate compiler recursion guard and remains useful for failures outside this managed restart path.
Validation evidence: Sanitized diagnostic archive (ZIP). Includes selected device log excerpts, host test results, installer checks and the source patch.
Validation and limits
Reproduce:
python3 tests/soft-reboot/run_tests.py(Linux; requirements intests/soft-reboot/README.md).