KernelSU
                                
                                
                                
                                    KernelSU copied to clipboard
                            
                            
                            
                        kernel, ksud: collect binaries into /data/adb/ksu
When the directory is created? /data/adb is created by Android, if you use its subdirectory, you should create it.
When the directory is created?
/data/adbis created by Android, if you use its subdirectory, you should create it.
It is created before usage.
I will test it with my device later
Please keep /data/adb/ksud the same, this command is useful for developers, we don't like to type more words.
Other modification is OK.
Please keep
/data/adb/ksudthe same, this command is useful for developers, we don't like to type more words. Other modification is OK.
Would you like to move it to somewhere in PATH?
Or we can modify PATH for the commands which are executed by su.
Please keep
/data/adb/ksudthe same, this command is useful for developers, we don't like to type more words. Other modification is OK.Would you like to move it to somewhere in
PATH?
We don't want to put it in $PATH, it is an internal implementation, not an API.
And it maybe move to some other place(such as /dev), we are planning to embed ksud to kernel, so don't do that.
Would you like to embed busybox to gain some compatibility with magisk?
Would you like to embed
busyboxto gain some compatibility with magisk?
we should do that
@tiann BusyBox is licensed under GPLv2, so embedding it breaks the license. Also the linux kernel is licensed under GPLv2, so linking kernelsu with it also breaks license.
I suggest to license kernelsu under GPLv2 or GPLv2-or-later.
KernelSU is GPL-3 Isn't it compatible ?
KernelSU is GPL-3
GPLv3 is not compatible with GPLv2.
Magisk is also GPL3
Magisk is also GPL3
Because magisk isn't linked with Linux kernel or GPLv2 libraries, they don't have to deal with the license problem.
GPLv2-or-later should be Ok?Magisk is GPL3 and we use its reserprop
GPLv2-or-later should be Ok
I think it should be. However, I am not a lawyer, so I can not give legal advices.
I consulted the layer, kernel is gpl2 without later, so the kernel part of KernelSU must be gpl2 without later. So, I will relicense it under gpl2.
The binaries are directly taken from Magisk v25.2 apk.