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:
@@ -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
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user