Repository navigation
fix: 避免已退出实例的损坏身份记录阻塞启动 - #295
Draft
lzh2034855417-beep wants to merge 2 commits into
Draft
lzh2034855417-beep wants to merge 2 commits into
lzh2034855417-beep wants to merge 2 commits into
Conversation
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.
问题与结果
合法 PID 对应的旧进程已经退出、或内核已证实该编号属于其他 UID 时,停止和启动前退出确认仍先解析旧 identity。文件损坏或超限会阻塞本来可以证明已结束的实例。
本改动复用既有 GONE / 不同 UID 退休判据,只在出生内容已无必要时跳过解析;仍验证非链接、常规文件和本应用所有者。活 Web、同 UID 其他或未知进程、元数据/扫描失败、仍存活的启动器或本 UID Web 均继续阻塞,不增加信号或端口反查权限。
另修退出确认扫描期间 PID 记录被替换后的误报:保留新记录并返回未确认,不将静默跳过当成已停止。普通配置、聊天、插件和工作区不修改。
Related to #270 / #274。只处理合法PID加损坏identity、且已有退出证明的分支;不声称解决损坏PID、活实例强停或全部启动/备份问题。
验证
候选 c4befa6,基于官方 main cf2a6a9。完整8文件差异已独立逐行复审 APPROVE,原生产测试缺口P1已补,无剩余P0/P1/P2;不是维护者批准或设备验收。
边界
保留Draft,未合并、未构建或安装本候选APK,未操作手机正式数据。实际Android进程树、厂商/proot行为仍需设备验收。同PID新出生与后续文件替换的完整原子性不在本补丁保证范围,不将此修复扩写为完整的文件事务或所有历史实例恢复方案。
说明:docs/startup-stale-identity-recovery.md。