1
0
mirror of https://github.com/ChonDoit/treble_superior_patches.git synced 2024-11-22 08:46:23 +00:00
treble_superiorOS/patches/trebledroid/platform_system_vold/0003-Don-t-unmount-rw-system.sh-binds.patch
2024-10-02 21:56:49 -03:00

26 lines
797 B
Diff

From d97e098874895be4d5564d79c8f50595beaf0612 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Mon, 29 Nov 2021 17:49:13 -0500
Subject: [PATCH 3/5] Don't unmount rw-system.sh binds
Change-Id: If9132c21defa8b09879b79a70794c5275d6852d0
---
VolumeManager.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index c981f2d4..ce2a4510 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -1000,6 +1000,7 @@ int VolumeManager::unmountAll() {
while ((mentry = getmntent(fp)) != NULL) {
auto test = std::string(mentry->mnt_dir);
if ((StartsWith(test, "/mnt/") &&
+ !StartsWith(test, "/mnt/phh") &&
#ifdef __ANDROID_DEBUGGABLE__
!StartsWith(test, "/mnt/scratch") &&
#endif
--
2.34.1