mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
Request Shizuku permission before enter Shizuku screen
Bind Shizuku service automatically after enter Shizuku functions page
This commit is contained in:
@@ -2,6 +2,7 @@ package com.bintianqi.owndroid
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import android.os.IBinder
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
@@ -9,6 +10,7 @@ import kotlinx.coroutines.launch
|
||||
|
||||
class MyViewModel: ViewModel() {
|
||||
val theme = MutableStateFlow(ThemeSettings())
|
||||
val shizukuBinder = MutableStateFlow<IBinder?>(null)
|
||||
|
||||
var initialized = false
|
||||
fun initialize(context: Context) {
|
||||
|
||||
Reference in New Issue
Block a user