Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

Universal Android 15/16 Pseudo-Terminal (/dev/pts) & SELinux Permission Fixer

Magisk & KernelSU module designed to resolve pseudo-terminal allocation failures (/dev/pts/0 TTY unavailable) and SELinux denial rules on Android 15 & 16 (AOSP & Custom ROMs).


πŸ” Technical Root Cause

Android 15+ mounts /dev/pts (pseudo-terminal slave) with restricted permissions (mode=600). This prevents external terminal applications, debugging binaries, and background root utilities from allocating pseudo-terminal file descriptors.


πŸ›  Fix Mechanism

This module automatically applies runtime mount re-permissions and SELinux policy rules during boot:

chmod 666 /dev/ptmx
mount -o remount,gid=5,mode=666,ptmxmode=0666 /dev/pts
chmod 666 /dev/pts/*

SELinux Policy Injections:

  • allow untrusted_app devpts chr_file { read write open ioctl getattr }
  • allow magisk devpts chr_file { read write open ioctl getattr }

πŸ“¦ Installation

  1. Download Fix_TTY_Access_v6.0.zip from Releases.
  2. Install via Magisk / Kitsune Mask / KernelSU Manager.
  3. Reboot device.

πŸ“„ License

GPL-3.0 License

About

Universal Android 15/16 Pseudo-Terminal (/dev/pts) & SELinux Permission Fixer Magisk Module

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages