more logging
This commit is contained in:
parent
1ceb53d2d4
commit
ce1cf2fdb4
|
@ -55,7 +55,7 @@ object DownloadHelper : CoroutineScope by CoroutineScope(Dispatchers.IO) {
|
||||||
} else {
|
} else {
|
||||||
onError("Could not save file")
|
onError("Could not save file")
|
||||||
downloadProgress.value?.downloadProgress?.postValue(0)
|
downloadProgress.value?.downloadProgress?.postValue(0)
|
||||||
Log.d("VMDownloader", "Failed to download file: $url")
|
Log.d("VMDownloader", "Failed to save file: $url")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -196,6 +196,7 @@ object PackageHelper {
|
||||||
val modApk: FileInfo? = fileInfoList.lastOrNull { modApkBool(it.name) }
|
val modApk: FileInfo? = fileInfoList.lastOrNull { modApkBool(it.name) }
|
||||||
if (modApk != null) {
|
if (modApk != null) {
|
||||||
if (overwriteBase(modApk, fileInfoList, appVerCode, pkg, app, context)) {
|
if (overwriteBase(modApk, fileInfoList, appVerCode, pkg, app, context)) {
|
||||||
|
Log.d(INSTALLER_TAG, "Finished installation")
|
||||||
sendRefresh(context)
|
sendRefresh(context)
|
||||||
sendCloseDialog(context)
|
sendCloseDialog(context)
|
||||||
}
|
}
|
||||||
|
@ -465,7 +466,7 @@ object PackageHelper {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun linkApp(apkFPath: String, pkg:String, path: String): Boolean {
|
private fun linkApp(apkFPath: String, pkg: String, path: String): Boolean {
|
||||||
Log.d(INSTALLER_TAG, "Linking app")
|
Log.d(INSTALLER_TAG, "Linking app")
|
||||||
Shell.su("am force-stop $pkg").exec()
|
Shell.su("am force-stop $pkg").exec()
|
||||||
Shell.su("""for i in ${'$'}(ls /data/app/ | grep $pkg | tr " "); do umount -l "/data/app/${"$"}i/base.apk"; done """).exec()
|
Shell.su("""for i in ${'$'}(ls /data/app/ | grep $pkg | tr " "); do umount -l "/data/app/${"$"}i/base.apk"; done """).exec()
|
||||||
|
|
Loading…
Reference in New Issue