Refine relocate heuristics
This commit is contained in:
@@ -8,6 +8,7 @@ import be.mygod.librootkotlinx.*
|
||||
import be.mygod.vpnhotspot.App.Companion.app
|
||||
import be.mygod.vpnhotspot.util.Services
|
||||
import be.mygod.vpnhotspot.util.UnblockCentral
|
||||
import com.google.firebase.crashlytics.FirebaseCrashlytics
|
||||
import kotlinx.parcelize.Parcelize
|
||||
import timber.log.Timber
|
||||
|
||||
@@ -45,7 +46,10 @@ object RootManager : RootSession(), Logger {
|
||||
|
||||
override suspend fun initServer(server: RootServer) {
|
||||
Logger.me = this
|
||||
server.init(app.deviceStorage)
|
||||
AppProcess.shouldRelocateHeuristics.let {
|
||||
FirebaseCrashlytics.getInstance().setCustomKey("RootManager.relocateEnabled", it)
|
||||
server.init(app.deviceStorage, it)
|
||||
}
|
||||
server.execute(RootInit())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user