From f4b6385f9f50a6fbf66125d6e50e8521c4a4f1d2 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 28 Aug 2023 22:54:55 -0700 Subject: [PATCH] Disable boot vbmeta patch when found vbmeta.img --- .../java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt index 3f6872b7f..feef679cd 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt @@ -218,6 +218,8 @@ abstract class MagiskInstallImpl protected constructor( ByteBuffer.wrap(rawData).putInt(120, 3) tarOut.putNextEntry(newTarEntry("vbmeta.img", rawData.size.toLong())) tarOut.write(rawData) + // vbmeta partition exist, disable boot vbmeta patch + Info.patchBootVbmeta = false } else if (entry.name.contains("userdata.img")) { continue } else {