mirror of
https://github.com/YTVanced/VancedManager
synced 2025-01-06 23:41:00 +00:00
more logging
This commit is contained in:
parent
1ceb53d2d4
commit
ce1cf2fdb4
2 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ object DownloadHelper : CoroutineScope by CoroutineScope(Dispatchers.IO) {
|
|||
} else {
|
||||
onError("Could not save file")
|
||||
downloadProgress.value?.downloadProgress?.postValue(0)
|
||||
Log.d("VMDownloader", "Failed to download file: $url")
|
||||
Log.d("VMDownloader", "Failed to save file: $url")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -196,6 +196,7 @@ object PackageHelper {
|
|||
val modApk: FileInfo? = fileInfoList.lastOrNull { modApkBool(it.name) }
|
||||
if (modApk != null) {
|
||||
if (overwriteBase(modApk, fileInfoList, appVerCode, pkg, app, context)) {
|
||||
Log.d(INSTALLER_TAG, "Finished installation")
|
||||
sendRefresh(context)
|
||||
sendCloseDialog(context)
|
||||
}
|
||||
|
@ -465,7 +466,7 @@ object PackageHelper {
|
|||
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")
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue