From 49c1f6efea5267ec40343a8dc6445b9c594a72ec Mon Sep 17 00:00:00 2001 From: dimitry Date: Thu, 16 May 2019 14:19:09 +0200 Subject: [PATCH] Enable native_bridge_support for libprocessgroup Android build system added support for building translated binaries used on natively bridged targets (arm on x86 for example). However in order to avoid building unnecessary binaries and libraries for such architectures most modules do not support native bridge by default. All needed modules have to explicitly indicate if they may be used as part of translated binary build. This change enabled native bridge support for libprocessgroup modules needed by libutils greylisted library (available for apps targeting Android version < N). Bug: http://b/77159578 Test: make Change-Id: I8d6f33e95e9f7424f5fa12f6fbabafa1d6c37413 --- libprocessgroup/Android.bp | 2 ++ libprocessgroup/cgrouprc/Android.bp | 2 ++ libprocessgroup/cgrouprc_format/Android.bp | 1 + 3 files changed, 5 insertions(+) diff --git a/libprocessgroup/Android.bp b/libprocessgroup/Android.bp index 0207a7540..52a297c01 100644 --- a/libprocessgroup/Android.bp +++ b/libprocessgroup/Android.bp @@ -3,6 +3,7 @@ cc_library_headers { vendor_available: true, recovery_available: true, host_supported: true, + native_bridge_supported: true, export_include_dirs: ["include"], target: { linux_bionic: { @@ -25,6 +26,7 @@ cc_library { host_supported: true, recovery_available: true, vendor_available: true, + native_bridge_supported: true, vndk: { enabled: true, support_system_process: true, diff --git a/libprocessgroup/cgrouprc/Android.bp b/libprocessgroup/cgrouprc/Android.bp index 6848620f9..24652fb2f 100644 --- a/libprocessgroup/cgrouprc/Android.bp +++ b/libprocessgroup/cgrouprc/Android.bp @@ -21,6 +21,7 @@ cc_library { // modules should use libprocessgroup which links to the LL-NDK library // defined below. The static library is built for tests. vendor_available: false, + native_bridge_supported: true, srcs: [ "cgroup_controller.cpp", "cgroup_file.cpp", @@ -55,6 +56,7 @@ cc_library { llndk_library { name: "libcgrouprc", symbol_file: "libcgrouprc.map.txt", + native_bridge_supported: true, export_include_dirs: [ "include", ], diff --git a/libprocessgroup/cgrouprc_format/Android.bp b/libprocessgroup/cgrouprc_format/Android.bp index dfbeed73e..559a869f8 100644 --- a/libprocessgroup/cgrouprc_format/Android.bp +++ b/libprocessgroup/cgrouprc_format/Android.bp @@ -16,6 +16,7 @@ cc_library_static { name: "libcgrouprc_format", host_supported: true, recovery_available: true, + native_bridge_supported: true, srcs: [ "cgroup_controller.cpp", ],