manager: several updates (#510)

+ update deps
+ update app profile page
+ don't show su and module page if no root
This commit is contained in:
Nullptr
2023-05-16 22:32:48 +08:00
committed by GitHub
parent 9cf8ac9c51
commit 76612b9cf7
19 changed files with 503 additions and 342 deletions

View File

@@ -0,0 +1,13 @@
package me.weishu.kernelsu.profile
import android.os.Parcelable
import androidx.compose.runtime.Immutable
import kotlinx.parcelize.Parcelize
@Immutable
@Parcelize
data class AppProfile(
val profileName: String,
val allowRootRequest: Boolean = false,
val unmountModules: Boolean = false,
) : Parcelable

View File

@@ -0,0 +1,23 @@
package me.weishu.kernelsu.profile
import android.os.Parcelable
import androidx.compose.runtime.Immutable
import kotlinx.parcelize.Parcelize
@Immutable
@Parcelize
data class RootProfile(
val profileName: String,
val namespace: Namespace = Namespace.Inherited,
val uid: Int = 0,
val gid: Int = 0,
val groups: Int = 0,
val capabilities: List<String> = emptyList(),
val context: String = "u:r:su:s0",
) : Parcelable {
enum class Namespace {
Inherited,
Global,
Individual,
}
}