Skip to content

Commit

Permalink
scripts/post-fs-data: change KernelSU-Next kver for mode 6 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
rifsxd authored and backslashxx committed Jan 10, 2025
1 parent 9ee81a6 commit c055857
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Documentation/modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
### ksu_source_mod
- KernelSU try_umount assisted mount --bind
- Requires source modification: [reference](https://github.com/tiann/KernelSU/commit/2b2b0733d7c57324b742c017c302fc2c411fe0eb)
- Supported on KernelSU NEXT 12183+ [reference](https://github.com/rifsxd/KernelSU-Next/commit/9f30b48e559fb5ddfd088c933af147714841d673)
- Supported on KernelSU NEXT 12010+ [reference](https://github.com/rifsxd/KernelSU-Next/commit/2fffdbb33ac12fcc33b1bc81db88b9b938656ec7)
- **WARNING**: Conflicts with SuSFS. You don’t need this if you can implement SuSFS.
- Adaway compatible
- Hiding: good method but you can probably just implement susfs.
Expand Down
4 changes: 2 additions & 2 deletions Documentation/modes_dev_manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ mode=6
KernelSU only
requires source modification
https://github.com/tiann/KernelSU/commit/2b2b0733d7c57324b742c017c302fc2c411fe0eb
KernelSU NEXT 12183+
https://github.com/rifsxd/KernelSU-Next/commit/9f30b48e559fb5ddfd088c933af147714841d673
KernelSU NEXT 12010+
https://github.com/rifsxd/KernelSU-Next/commit/2fffdbb33ac12fcc33b1bc81db88b9b938656ec7
WARNING: conflicts with susfs, you dont need this if you can implement susfs
opt-in only (plain ksu) due to lack of heuristic if krenel has it
echo "mode=6" > /data/adb/bindhosts/mode_override.sh
Expand Down
4 changes: 2 additions & 2 deletions module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ susfs_clone_perm "$MODDIR/system/etc/hosts" /system/etc/hosts
# this assures that we have atleast a base operating operating_mode
mode=0

# ksu next 12183
# ksu next 12010
# ksu next added try_umount /system/etc/hosts recently
# lets try to add it onto the probe
if [ "$KSU_NEXT" = "true" ] && [ "$KSU_KERNEL_VER_CODE" -ge 12183 ]; then
if [ "$KSU_NEXT" = "true" ] && [ "$KSU_KERNEL_VER_CODE" -ge 12010 ]; then
mode=6
fi

Expand Down

0 comments on commit c055857

Please sign in to comment.