TIMISONG-dev / kernel_xiaomi_sm8250

MagicTime Kernel (WIP)
Other
22 stars 11 forks source link

[Feature Request] susfs4ksu #6

Closed PlatFlat closed 2 months ago

PlatFlat commented 2 months ago

An addon root hiding kernel patches and userspace module for KernelSU. This help prevent mounts and other root related leaks from being detected Potential help bypass root detector app.

TIMISONG-dev commented 2 months ago

Well, I'll think about it

PlatFlat commented 2 months ago

@TIMISONG-dev I think adding susfs4ksu to existing KernelSU would be a great addition for hiding root. I hope you will reconsider adding this.

Nowadays banking/financial apps such as Kotak Neo or Bet365 are blocking access to their app if it is rooted phone.

For reference: This is how another dev natsumerinchan, does for oneplus_sm8350:

https://github.com/natsumerinchan/android_kernel_oneplus_sm8350/commit/69b5a59b7548aa8c94f4b836b5ed45fb06e4a88c https://github.com/natsumerinchan/android_kernel_oneplus_sm8350/commit/89dab19743ac776e421edc76beb0f45e8bc3e0b6 https://github.com/natsumerinchan/android_kernel_oneplus_sm8350/commit/92e72a4e49e15a181c41ab3426f8875f732850e0

Note: Since MagicTime is using 4.19 kernel, you'll need to pick "select 50_add_susfs_in_kernel-4.19.patch" in kernel_patches folder in susfs4ksu to patch according based on kernel version.

TIMISONG-dev commented 2 months ago

Well, I check it later. Thanks

TIMISONG-dev commented 1 month ago

I imported and added all the configs, but there were problems with the network, apparently something broke. Can you check what's wrong?

PlatFlat commented 1 month ago

I tested the new build, I didn't experience any network issue for now:

image

But KernelSU Zygisk Shamiko module is disabled automatically after installing this build.

Are you using the last KernelSU v0.9.5 kernel commits? Because official repo tag, it states Non-GKI devices can only stay on version 0.9.5 (the manager can update).

TIMISONG-dev commented 1 month ago

yeap i use 0.9.5 but for me wifi and bluetooth didnt work. Weird

PlatFlat commented 1 month ago

@TIMISONG-dev Did you manage to fix the wifi and bluetooth issue?

I realized Zygisk Shamiko module is by default disabled when having susfs4ksu built in. It is intended and you have to use the susfs4ksu module instead. All detector apps seems to pass the checks.

At the moment I don't have a good kernel building PC to build your kernel and test it. I was thinking maybe if you got the time, could you perhaps fork and modify this https://github.com/silvzr/bootlegger_kernel (which uses Git CI Action to build your kernel) for a separate susfs4ksu build so that It doesn't interfere with your main build then perhaps you could open it for testing.

I tried building your repo from that fork but unfortunately got some error on my end:

../scripts/lld-version.sh: 23: ld.lld: not found
drivers/Kconfig:239: can't open file "drivers/kernelsu/Kconfig"
make[2]: *** [../scripts/kconfig/Makefile:104: alioth_defconfig] Error 1

Using this Workflow based on your build.sh

TIMISONG-dev commented 1 month ago

Ok, I will check it later, bcz now I working for release and stability, maybe I will check it when I start 1.0.8

PlatFlat commented 1 day ago

Posting this for awareness. Might not need to build the susfs4ksu ksu module manually. Thanks to sidex15, has provided their own scripts to hide mounted path, etc. - https://github.com/sidex15/ksu_module_susfs