Skip to content

Commit

Permalink
Do not show sus_su is not available message when the kernel is NON-GKI
Browse files Browse the repository at this point in the history
SUS SU is deprecated and will not support NON-GKI kernels starting v1.5.4
This commit is also affects SUSFS v1.5.3

Why?
Because NON-GKI kernels have so-called "KernelSU Manual Hooks". It's in the documentation of KernelSU
What SUS_SU 2 is doing is just do the KernelSU Manual Hooks method of NON-GKI for GKI kernels.
Which prevents it from using the kprobes hooking method which is detected by most detectors out there.

Basically:
Manual hooks of NON-GKI > Kprobe hooks

That's why SUS_SU is not needed in NON-GKI kernels.
  • Loading branch information
sidex15 committed Feb 7, 2025
1 parent 5ada05e commit 3a48ede
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@ const sus_su_154 = document.getElementById("sus_su_154");
const sus_su_142 = document.getElementById("sus_su_142");
const sus_su_1 = document.getElementById("sus_su_1");
const sus_su_NOS = document.getElementById("sus_su_NOS");
const sus_su_msg = document.getElementById("sus_su_msg");
//toast(`is_sus_su_exists: ${is_sus_su_exists}`);
if (is_sus_su_exists==-1){
sus_su.removeAttribute("checked");
sus_su.setAttribute("disabled","");
enable_sus_su.removeAttribute("checked");
enable_sus_su.setAttribute("disabled","");
sus_su_NOS.classList.remove("hidden");
if(susfs_version_decimal>=154 && kernel_variant=="NON-GKI"){
sus_su_msg.innerHTML="sus su is not supported on NON-GKI kernels"
if(susfs_version_decimal>=153 && kernel_variant=="GKI"){
sus_su_NOS.classList.remove("hidden");
}
}
else{
Expand Down

0 comments on commit 3a48ede

Please sign in to comment.