From 978cfa2e7a69773d8aa82c90bcfb9c68f1ad4332 Mon Sep 17 00:00:00 2001 From: Jiakai Zhang Date: Fri, 12 Nov 2021 16:53:21 +0000 Subject: [PATCH] Allow the ART module to use "libc++fs". This is used by odrefresh, which needs to do many filesystem operations. It is only used as a static library. Bug: 205276874 Test: m nothing Change-Id: Id4cd9e2674d32b48ab82d88ac3acb93d37ca8627 --- Android.bp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Android.bp b/Android.bp index 3a3898068..bbb3d8d05 100644 --- a/Android.bp +++ b/Android.bp @@ -204,6 +204,13 @@ cc_library_static { name: "libc++fs", ramdisk_available: true, recovery_available: true, + apex_available: [ + "//apex_available:platform", + "com.android.art", + "com.android.art.debug", + ], + // being part of updatable apexes, this should work on older releases + min_sdk_version: "apex_inherit", defaults: ["libc++ defaults"], srcs: [ "src/filesystem/directory_iterator.cpp",