Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.
/ WSA-Kernel-SU Public archive

A kernel module to provide /system/xbin/su to Android Kernel (especially to WSA)

Notifications You must be signed in to change notification settings

LSPosed/WSA-Kernel-SU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

WSA-Kernel-SU

Intro

This is a kernel module to provide /system/xbin/su to Android Kernel (especially to WSA). This is the best root solution if hiding is required. When GKI is ready, kernelsu is definitely the next generation of root.

Only works on 4.17+ kernel (both WSA and GKI is 5.0+). For older kernel, you can refer to the origin repo.

How it works

  • Replace syscall newfstatat, faccessat and execve on /system/xbin/su to /system/bin/sh
  • When execve on /system/xbin/su, change SELinux to permissive, set all kinds of uids and gids to 0 and permit all capabilities
  • Set SELinux context su to permissive
  • Set the selinux context of the current process to u:r:su:s0

License

GPLv2

Credits

Jason A. Donenfeld for the original implementation