added back threading to installers bruh

This commit is contained in:
Xinto 2020-11-15 21:13:27 +04:00
parent dc77080d37
commit 52bb26b3e0
3 changed files with 11 additions and 6 deletions

View File

@ -20,6 +20,9 @@ import com.vanced.manager.utils.AppUtils.sendRefresh
import com.vanced.manager.utils.AppUtils.vancedRootPkg
import com.vanced.manager.utils.InternetTools.music
import com.vanced.manager.utils.InternetTools.vanced
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import java.io.*
import java.text.SimpleDateFormat
import java.util.*
@ -161,7 +164,7 @@ object PackageHelper {
return false
}
fun installMusicRoot(context: Context) {
fun installMusicRoot(context: Context) = CoroutineScope(Dispatchers.IO).launch {
Shell.enableVerboseLogging = BuildConfig.DEBUG
Shell.setDefaultBuilder(
Shell.Builder.create()
@ -192,6 +195,7 @@ object PackageHelper {
}
}
}
fun installVanced(context: Context): Int {
@ -296,7 +300,7 @@ object PackageHelper {
}
}
fun installVancedRoot(context: Context) {
fun installVancedRoot(context: Context) = CoroutineScope(Dispatchers.IO).launch {
Shell.enableVerboseLogging = BuildConfig.DEBUG
Shell.setDefaultBuilder(
Shell.Builder.create()
@ -332,6 +336,7 @@ object PackageHelper {
}
private fun installSplitApkFiles(apkFiles: ArrayList<FileInfo>, context: Context) : Boolean {
var sessionId: Int?
val filenames = arrayOf("black.apk", "dark.apk", "blue.apk", "pink.apk", "hash.json")

View File

@ -1,6 +1,6 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="35dp"
android:height="35dp"
android:width="38dp"
android:height="38dp"
android:viewportWidth="35"
android:viewportHeight="35">
<path

View File

@ -1,6 +1,6 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="35dp"
android:height="35dp"
android:width="38dp"
android:height="38dp"
android:viewportWidth="35"
android:viewportHeight="35">
<path