diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-22 01:11:54 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-22 01:11:54 +0000 |
commit | fed51b51e201a80489a5e744228b9a4eda662739 (patch) | |
tree | 874dd4ea37368e8c328b2c4132225456e4a9fcde | |
parent | 33f0999a305e12342c45c6edad8f0773906ee917 (diff) | |
parent | af9240abc962e24dff3e81477afb94a5b0b4d977 (diff) |
Snap for 6416172 from af9240abc962e24dff3e81477afb94a5b0b4d977 to rvc-release
Change-Id: I97a1693cc498ba4741c225b8e6a832975d05392a
-rw-r--r-- | adb/Android.bp | 20 | ||||
-rw-r--r-- | adb/libs/adbconnection/Android.bp | 5 | ||||
-rw-r--r-- | base/Android.bp | 4 | ||||
-rw-r--r-- | diagnose_usb/Android.bp | 5 | ||||
-rw-r--r-- | init/mount_namespace.cpp | 8 | ||||
-rw-r--r-- | libasyncio/Android.bp | 4 | ||||
-rw-r--r-- | libbacktrace/Android.bp | 8 | ||||
-rw-r--r-- | libcrypto_utils/Android.bp | 4 | ||||
-rw-r--r-- | libcutils/Android.bp | 8 | ||||
-rw-r--r-- | liblog/Android.bp | 4 | ||||
-rw-r--r-- | libprocessgroup/Android.bp | 8 | ||||
-rw-r--r-- | libstats/push_compat/Android.bp | 1 | ||||
-rw-r--r-- | libstats/socket/Android.bp | 1 | ||||
-rw-r--r-- | libsystem/Android.bp | 4 | ||||
-rw-r--r-- | libutils/Android.bp | 4 | ||||
-rw-r--r-- | qemu_pipe/Android.bp | 5 |
16 files changed, 92 insertions, 1 deletions
diff --git a/adb/Android.bp b/adb/Android.bp index d7477bf2f..0394bf6ff 100644 --- a/adb/Android.bp +++ b/adb/Android.bp @@ -425,6 +425,15 @@ cc_library_static { ], } }, + + apex_available: [ + "//apex_available:platform", + "com.android.adbd", + ], + visibility: [ + "//bootable/recovery/minadbd", + "//system/core/adb", + ], } cc_library { @@ -492,12 +501,22 @@ cc_library { ], }, }, + + apex_available: [ + "//apex_available:platform", + "com.android.adbd", + ], + visibility: [ + "//system/core/adb", + ], + } cc_library { name: "libadbd", defaults: ["adbd_defaults", "host_adbd_supported"], recovery_available: true, + apex_available: ["com.android.adbd"], // avoid getting duplicate symbol of android::build::getbuildnumber(). use_version_lib: false, @@ -550,6 +569,7 @@ cc_binary { defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"], stl: "libc++_static", recovery_available: true, + apex_available: ["com.android.adbd"], srcs: [ "daemon/main.cpp", diff --git a/adb/libs/adbconnection/Android.bp b/adb/libs/adbconnection/Android.bp index f6b0a4239..ce2ab51ef 100644 --- a/adb/libs/adbconnection/Android.bp +++ b/adb/libs/adbconnection/Android.bp @@ -18,6 +18,11 @@ cc_library { use_version_lib: false, recovery_available: true, + apex_available: [ + "com.android.adbd", + // TODO(b/151398197) remove the below + "//apex_available:platform", + ], compile_multilib: "both", } diff --git a/base/Android.bp b/base/Android.bp index 3702b43db..5b91078ba 100644 --- a/base/Android.bp +++ b/base/Android.bp @@ -47,6 +47,10 @@ cc_library_headers { enabled: true, }, }, + apex_available: [ + "//apex_available:anyapex", + "//apex_available:platform", + ], } cc_defaults { diff --git a/diagnose_usb/Android.bp b/diagnose_usb/Android.bp index 6bee28c10..93d13bd56 100644 --- a/diagnose_usb/Android.bp +++ b/diagnose_usb/Android.bp @@ -3,6 +3,11 @@ cc_library_static { cflags: ["-Wall", "-Wextra", "-Werror"], host_supported: true, recovery_available: true, + apex_available: [ + "com.android.adbd", + // TODO(b/151398197) remove the below + "//apex_available:platform", + ], target: { windows: { enabled: true, diff --git a/init/mount_namespace.cpp b/init/mount_namespace.cpp index 0749fe3b8..f3b584c4c 100644 --- a/init/mount_namespace.cpp +++ b/init/mount_namespace.cpp @@ -240,14 +240,20 @@ bool SetupMountNamespaces() { // slave to the /mnt/user mount, and at the same time /mnt/installer in the // bootstrap namespace shares a peer group with /mnt/installer in the // default namespace. + // /mnt/androidwritable is similar to /mnt/installer but serves for + // MOUNT_EXTERNAL_ANDROID_WRITABLE apps. if (!mkdir_recursive("/mnt/user", 0755)) return false; if (!mkdir_recursive("/mnt/installer", 0755)) return false; + if (!mkdir_recursive("/mnt/androidwritable", 0755)) return false; if (!(BindMount("/mnt/user", "/mnt/installer", true))) return false; - // First, make /mnt/installer a slave bind mount + if (!(BindMount("/mnt/user", "/mnt/androidwritable", true))) return false; + // First, make /mnt/installer and /mnt/androidwritable a slave bind mount if (!(MakeSlave("/mnt/installer"))) return false; + if (!(MakeSlave("/mnt/androidwritable"))) return false; // Then, make it shared again - effectively creating a new peer group, that // will be inherited by new mount namespaces. if (!(MakeShared("/mnt/installer"))) return false; + if (!(MakeShared("/mnt/androidwritable"))) return false; bootstrap_ns_fd.reset(OpenMountNamespace()); bootstrap_ns_id = GetMountNamespaceId(); diff --git a/libasyncio/Android.bp b/libasyncio/Android.bp index 4ab439d57..44e7933c3 100644 --- a/libasyncio/Android.bp +++ b/libasyncio/Android.bp @@ -28,6 +28,10 @@ cc_library { defaults: ["libasyncio_defaults"], vendor_available: true, recovery_available: true, + apex_available: [ + "//apex_available:platform", + "com.android.adbd", + ], host_supported: true, srcs: [ "AsyncIO.cpp", diff --git a/libbacktrace/Android.bp b/libbacktrace/Android.bp index aa18c4247..dc989a0a8 100644 --- a/libbacktrace/Android.bp +++ b/libbacktrace/Android.bp @@ -44,6 +44,10 @@ cc_library_headers { recovery_available: true, native_bridge_supported: true, export_include_dirs: ["include"], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], } cc_defaults { @@ -92,6 +96,10 @@ cc_library { name: "libbacktrace", vendor_available: false, recovery_available: true, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], vndk: { enabled: true, support_system_process: true, diff --git a/libcrypto_utils/Android.bp b/libcrypto_utils/Android.bp index e47560f79..d7175e0be 100644 --- a/libcrypto_utils/Android.bp +++ b/libcrypto_utils/Android.bp @@ -38,4 +38,8 @@ cc_library { enabled: true, }, }, + apex_available: [ + "//apex_available:platform", + "com.android.adbd", + ], } diff --git a/libcutils/Android.bp b/libcutils/Android.bp index c9eebfe7a..9ed7927e9 100644 --- a/libcutils/Android.bp +++ b/libcutils/Android.bp @@ -29,6 +29,10 @@ cc_library_headers { vendor_available: true, recovery_available: true, host_supported: true, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], native_bridge_supported: true, export_include_dirs: ["include"], target: { @@ -134,6 +138,10 @@ cc_library { }, recovery_available: true, host_supported: true, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], native_bridge_supported: true, srcs: [ "config_utils.cpp", diff --git a/liblog/Android.bp b/liblog/Android.bp index 841037066..0b98e1add 100644 --- a/liblog/Android.bp +++ b/liblog/Android.bp @@ -38,6 +38,10 @@ cc_library_headers { vendor_available: true, ramdisk_available: true, recovery_available: true, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], native_bridge_supported: true, export_include_dirs: ["include"], system_shared_libs: [], diff --git a/libprocessgroup/Android.bp b/libprocessgroup/Android.bp index 618a5c57a..2c1b25558 100644 --- a/libprocessgroup/Android.bp +++ b/libprocessgroup/Android.bp @@ -13,6 +13,10 @@ cc_library_headers { enabled: true, }, }, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], } cc_library { @@ -52,4 +56,8 @@ cc_library { "-Werror", "-Wexit-time-destructors", ], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], } diff --git a/libstats/push_compat/Android.bp b/libstats/push_compat/Android.bp index f0fcff604..2f7212fed 100644 --- a/libstats/push_compat/Android.bp +++ b/libstats/push_compat/Android.bp @@ -49,6 +49,7 @@ cc_library { "libstatssocket_headers", ], static_libs: ["libgtest_prod"], + apex_available: ["com.android.resolv"], } cc_test { diff --git a/libstats/socket/Android.bp b/libstats/socket/Android.bp index c86d65031..8c12fe0c4 100644 --- a/libstats/socket/Android.bp +++ b/libstats/socket/Android.bp @@ -85,6 +85,7 @@ cc_library_headers { name: "libstatssocket_headers", export_include_dirs: ["include"], host_supported: true, + apex_available: ["com.android.resolv"], } cc_benchmark { diff --git a/libsystem/Android.bp b/libsystem/Android.bp index b265b61eb..ff886fd18 100644 --- a/libsystem/Android.bp +++ b/libsystem/Android.bp @@ -4,6 +4,10 @@ cc_library_headers { recovery_available: true, host_supported: true, native_bridge_supported: true, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], export_include_dirs: ["include"], target: { diff --git a/libutils/Android.bp b/libutils/Android.bp index 33117936c..7405c9647 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -18,6 +18,10 @@ cc_library_headers { recovery_available: true, host_supported: true, native_bridge_supported: true, + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], header_libs: [ "liblog_headers", diff --git a/qemu_pipe/Android.bp b/qemu_pipe/Android.bp index c6bda4a28..ad86a4e6d 100644 --- a/qemu_pipe/Android.bp +++ b/qemu_pipe/Android.bp @@ -4,6 +4,11 @@ cc_library_static { name: "libqemu_pipe", vendor_available: true, recovery_available: true, + apex_available: [ + "com.android.adbd", + // TODO(b/151398197) remove the below + "//apex_available:platform", + ], sanitize: { misc_undefined: ["integer"], }, |