Use libsu's Shell API instead of Runtime.exec("su -c ...") for root detection. The previous approach assumed su is in PATH, which works for Magisk but not for KernelSU where su has a different path.