Fix root server crash on certain LG Android 8.1 devices

See also: https://github.com/Chainfire/librootjava/issues/20
This commit is contained in:
Mygod
2020-07-29 03:49:58 +08:00
parent 63060a17d7
commit b8ba293ee0
3 changed files with 6 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ class App : Application() {
deviceStorage.moveSharedPreferencesFrom(this, PreferenceManager(this).sharedPreferencesName)
deviceStorage.moveDatabaseFrom(this, AppDatabase.DB_NAME)
} else deviceStorage = this
Services.init(this)
Services.init { this }
// overhead of debug mode is minimal: https://github.com/Kotlin/kotlinx.coroutines/blob/f528898/docs/debugging.md#debug-mode
System.setProperty(DEBUG_PROPERTY_NAME, DEBUG_PROPERTY_VALUE_ON)