Hide experimental VPN tethering feature on CalyxOS
CalyxOS and LineageOS have a customized implementation to support tethering over VPN. Calyx wants us to hide our experimental tethering over VPN feature which requires root privileges.
It is possible to distinguish CalyxOS from stock ROM by checking
!SystemProperties.get("ro.calyxos.version").isEmpty()
The key for LineageOS is ro.lineage.version
.
CalyxOS supports the system-level tethering over VPN feature since Android 11, LineageOS since Android 9.
Edited by cyberta