Refine relocate heuristics

This commit is contained in:
Mygod
2022-05-20 21:18:48 -04:00
parent 1adf767607
commit 3fea5cc1dd
4 changed files with 18 additions and 17 deletions

View File

@@ -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())
}
}