mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 19:15:58 +00:00
ViewModel refactoring: Permissions part
Add MyDbHelper and MyRepository, use database to store dhizuku clients, fix #168
This commit is contained in:
@@ -5,12 +5,14 @@ import android.os.Build.VERSION
|
||||
import org.lsposed.hiddenapibypass.HiddenApiBypass
|
||||
|
||||
class MyApplication : Application() {
|
||||
lateinit var myRepo: MyRepository
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
if (VERSION.SDK_INT >= 28) HiddenApiBypass.setHiddenApiExemptions("")
|
||||
SP = SharedPrefs(applicationContext)
|
||||
val dbHelper = MyDbHelper(this)
|
||||
myRepo = MyRepository(dbHelper)
|
||||
Privilege.initialize(applicationContext)
|
||||
Privilege.updateStatus()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user