From ec0f7774c659d204cfd36b0407dbf7f6dc5be762 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Thu, 24 Oct 2024 15:59:44 -0700 Subject: [PATCH] fs_mgr: avoid std::vector std::vector uses std::allocator, which is an undocumented libc++ extension to the C++ standard library. The extension was removed in llvm.org/PR96319. Use an ordinary non-const T instead. Bug: http://b/349681543 Bug: http://b/375478563 Test: m libfs_mgr Flag: EXEMPT, refactor to fix build failure Change-Id: I759526c7507824dca0e2e4f5cb2bf3c58dece1d8 --- fs_mgr/fs_mgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp index fbd990b96..cae8bbe40 100644 --- a/fs_mgr/fs_mgr.cpp +++ b/fs_mgr/fs_mgr.cpp @@ -2213,11 +2213,11 @@ bool fs_mgr_mount_overlayfs_fstab_entry(const FstabEntry& entry) { #if ALLOW_ADBD_DISABLE_VERITY == 0 // Allowlist the mount point if user build. - static const std::vector kAllowedPaths = { + static const std::vector kAllowedPaths = { "/odm", "/odm_dlkm", "/oem", "/product", "/system_dlkm", "/system_ext", "/vendor", "/vendor_dlkm", }; - static const std::vector kAllowedPrefixes = { + static const std::vector kAllowedPrefixes = { "/mnt/product/", "/mnt/vendor/", };