From 55b33df842530d38fd5d6984d37475a414d56cd2 Mon Sep 17 00:00:00 2001 From: ostajic Date: Fri, 18 Sep 2020 18:55:05 +0200 Subject: [PATCH] Unmount older mounts --- .../vanced/manager/core/installer/RootSplitInstallerService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt b/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt index 9887833a..829492b3 100644 --- a/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt +++ b/app/src/main/java/com/vanced/manager/core/installer/RootSplitInstallerService.kt @@ -218,6 +218,7 @@ class RootSplitInstallerService: Service() { private fun linkVanced(apkFPath: String, path: String): Boolean { Shell.su("am force-stop $yPkg").exec() + val umountv = Shell.su("""for i in ${'$'}(ls /data/app/ | grep com.google.android.youtube | tr " "); do umount -l "/data/app/${"$"}i/base.apk"; done """) val response = Shell.su("""su -mm -c "mount -o bind $apkFPath $path"""").exec() Thread.sleep(500)