Files
android_bootable_recovery/minadbd/Android.bp
Tao Bao c70446ce7b Revert "Build and use minadbd as a shared library."
This reverts commit 4fd4f89591.

The reverted CL has a side effect that unintentionally installs
a copy of libminadbd_services.so to the system image. This breaks the
check with `build/soong/build_test.bash --dist` which detects and
prevents vendor modules from installing files to the system image.

Prior to fully converting `recovery` to be built with Soong, we have to
statically link recovery-specific modules into `recovery`.

Bug: 110380063
Test: `m -j bootimage` with aosp_marlin-userdebug
Test: Run minadbd_test on marlin.
Test: Boot into recovery and verify that sideloading still works.
Test: `build/soong/build_test.bash --dist`
Change-Id: I290d55c82e17aa60a5afdf2ff7f896afc4dae8b3
2018-08-07 20:44:39 -07:00

79 lines
1.5 KiB
Plaintext

// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
cc_defaults {
name: "minadbd_defaults",
cflags: [
"-DADB_HOST=0",
"-Wall",
"-Werror",
],
include_dirs: [
"system/core/adb",
],
}
cc_library_static {
name: "libminadbd",
defaults: [
"minadbd_defaults",
],
srcs: [
"fuse_adb_provider.cpp",
"minadbd.cpp",
"minadbd_services.cpp",
],
static_libs: [
"libfusesideload",
"libbase",
"libcrypto",
],
whole_static_libs: [
"libadbd",
],
}
cc_test {
name: "minadbd_test",
defaults: [
"minadbd_defaults",
],
srcs: [
"fuse_adb_provider_test.cpp",
],
static_libs: [
"libBionicGtestMain",
"libminadbd",
],
shared_libs: [
"libbase",
"libcutils",
"liblog",
],
test_suites: [
"device-tests",
],
}