KernelSU
KernelSU copied to clipboard
[Feature] Have module uninstall run at next boot like with magisk
Is your feature request related to a problem? Please describe.
It appears that in KSU, all uninstall actions are run immediately and modules_update.img is packed. The problem is that some modules may do things outside the module directory such as with data apps (like with jamesdsp). So what happens is that module files aren't actually removed until next boot but everything else is which can lead to problems before a reboot.
Due to this, the behavior is also different. The file path is /data/adb/modules for magisk but /data/adb/modules_update for ksu.
Describe the solution you'd like.
In magisk, when a module is "uninstalled" through the manager, other than the remove file placement, nothing is actually done until reboot. This method would be more optimal so everything can be truly uninstalled at the same time (during boot)
Describe alternatives you've considered.
Outline the differences in the wiki so module developers can adjust accordingly
Additional context
No response