manager: remove libksu

This commit is contained in:
tiann
2023-01-26 12:36:25 +08:00
parent ed86635b3c
commit f810ce2d0d
3 changed files with 2 additions and 15 deletions

View File

@@ -23,10 +23,9 @@ private fun getKsuDaemonPath(): String {
fun createRootShell(): Shell {
Shell.enableVerboseLogging = BuildConfig.DEBUG
val su = ksuApp.applicationInfo.nativeLibraryDir + File.separator + "libksu.so"
val builder = Shell.Builder.create()
return try {
builder.build(su)
builder.build(getKsuDaemonPath(), "debug", "su")
} catch (e: Throwable) {
builder.build("sh")
}