Skip to content

fix: preserve init domains for rooted Wi-Fi - #34

Open
david419kr wants to merge 1 commit into
hackintoanetwork:mainfrom
david419kr:fix/rooted-wifi-domain
Open

david419kr wants to merge 1 commit into
hackintoanetwork:mainfrom
david419kr:fix/rooted-wifi-domain

Conversation

@david419kr

Copy link
Copy Markdown

UID-0 exec refresh also catches init service children, erasing the pending SELinux exec transition. The supplicant then stays in shell:s0 and fails HIDL registration even though its VINTF entry exists.

Skip refresh and driver-FD injection for init-domain exec in both hooks. Rebuild the bundled module with the existing GCC 9.4 toolchain and update its integrity pins and corresponding-source mapping.

Verified automatic rooting after reboot and two STA reconnect cycles on SCR01KDU1AVK2 with enable_manager_fd still enabled. Payload verifiers, 76 Python tests, 52 Android JVM tests and lint pass.

Refs #8


UID 0 프로세스의 실행 시 자격 증명을 갱신하는 로직이 init에서 생성한 시스템 서비스에도 적용되면서, init이 준비한 SELinux 도메인 전환 정보가 사라지는 문제를 확인했습니다. 이 때문에 wpa_supplicant가 정상 도메인으로 전환되지 못하고 shell:s0에 남아, VINTF 선언이 존재하는데도 HIDL 서비스 등록에 실패했습니다.

execve와 execveat 두 훅 모두에서 init 도메인의 프로세스는 자격 증명 갱신과 드라이버 FD 주입을 건너뛰도록 수정했습니다. 기존 GCC 9.4 툴체인으로 번들 커널 모듈을 다시 빌드하고, 무결성 검증용 해시와 대응 소스 매핑도 함께 갱신했습니다.

SCR01KDU1AVK2 기기에서 재부팅 후 자동 루팅이 정상 완료되는 것을 확인했습니다. enable_manager_fd를 활성화한 상태로 Wi-Fi를 두 차례 껐다 켜 AP에 다시 연결되는 것도 확인했습니다. 페이로드 검증, Python 테스트 76개, Android JVM 테스트 52개 및 lint를 모두 통과했습니다.

관련 이슈: #8

UID-0 exec refresh also catches init service children, erasing the
pending SELinux exec transition. The supplicant then stays in shell:s0
and fails HIDL registration even though its VINTF entry exists.

Skip refresh and driver-FD injection for init-domain exec in both hooks.
Rebuild the bundled module with the existing GCC 9.4 toolchain and update
its integrity pins and corresponding-source mapping.

Verified automatic rooting after reboot and two STA reconnect cycles on
SCR01KDU1AVK2 with enable_manager_fd still enabled. Payload verifiers,
76 Python tests, 52 Android JVM tests and lint pass.

Refs hackintoanetwork#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant