mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-16 16:25:11 +00:00
Revert "added back a fix for split installer"
This reverts commit aeaa0d445e
.
This commit is contained in:
parent
29158e7c9a
commit
f82dc4eecf
1 changed files with 1 additions and 8 deletions
|
@ -302,14 +302,7 @@ object PackageHelper {
|
||||||
private fun installSplitApkFilesRoot(apkFiles: List<File>?, context: Context) : Boolean {
|
private fun installSplitApkFilesRoot(apkFiles: List<File>?, context: Context) : Boolean {
|
||||||
val filenames = arrayOf("black.apk", "dark.apk", "blue.apk", "pink.apk", "hash.json")
|
val filenames = arrayOf("black.apk", "dark.apk", "blue.apk", "pink.apk", "hash.json")
|
||||||
log(INSTALLER_TAG, "installing split apk files: ${apkFiles?.map { it.name }}")
|
log(INSTALLER_TAG, "installing split apk files: ${apkFiles?.map { it.name }}")
|
||||||
val sessionId = Shell.su("pm install-create -r").exec().out.joinToString(" ").filter { it.isDigit() }.toIntOrNull()
|
val sessionId = Shell.su("pm install-create").exec().out.joinToString(" ").filter { it.isDigit() }.toInt()
|
||||||
|
|
||||||
if (sessionId == null) {
|
|
||||||
sendFailure("Session ID is null", context)
|
|
||||||
sendCloseDialog(context)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
apkFiles?.filter { !filenames.contains(it.name) }?.forEach { apkFile ->
|
apkFiles?.filter { !filenames.contains(it.name) }?.forEach { apkFile ->
|
||||||
val apkName = apkFile.name
|
val apkName = apkFile.name
|
||||||
log(INSTALLER_TAG, "installing APK: $apkName")
|
log(INSTALLER_TAG, "installing APK: $apkName")
|
||||||
|
|
Loading…
Reference in a new issue