From 4a18a3091ebab4395aaec575ac5e3cee5bead51a Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Wed, 5 Oct 2022 14:29:38 +0800 Subject: [PATCH] update dumpstate build file from mk to bp Bug: 240530709 Test: adb bugreport Change-Id: I26776a30fe264b54d0d4f801e3210b554dfcc672 --- dumpstate/Android.bp | 28 ++++++++++++ dumpstate/Android.mk | 44 ------------------- ...droid.hardware.dumpstate-service.gs201.xml | 9 ++++ manifest.xml | 7 --- 4 files changed, 37 insertions(+), 51 deletions(-) create mode 100644 dumpstate/Android.bp delete mode 100644 dumpstate/Android.mk create mode 100644 dumpstate/android.hardware.dumpstate-service.gs201.xml diff --git a/dumpstate/Android.bp b/dumpstate/Android.bp new file mode 100644 index 00000000..85cdc252 --- /dev/null +++ b/dumpstate/Android.bp @@ -0,0 +1,28 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_binary { + name: "android.hardware.dumpstate-service.gs201", + srcs: [ + "Dumpstate.cpp", + "service.cpp", + ], + init_rc: ["android.hardware.dumpstate@1.1-service.gs201.rc"], + vintf_fragments: ["android.hardware.dumpstate-service.gs201.xml"], + cflags: [ + "-Wall", + "-Werror", + ], + shared_libs: [ + "libbase", + "libbinder_ndk", + "libcutils", + "libdumpstateutil", + "liblog", + "libutils", + "android.hardware.dumpstate-V1-ndk", + ], + vendor: true, + relative_install_path: "hw", +} diff --git a/dumpstate/Android.mk b/dumpstate/Android.mk deleted file mode 100644 index 76202ce5..00000000 --- a/dumpstate/Android.mk +++ /dev/null @@ -1,44 +0,0 @@ -# -# Copyright 2016 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. -# - -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) -LOCAL_MODULE := android.hardware.dumpstate-service.gs201 -LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS := notice -LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE -LOCAL_INIT_RC := android.hardware.dumpstate@1.1-service.gs201.rc -LOCAL_MODULE_RELATIVE_PATH := hw - -LOCAL_SRC_FILES := \ - Dumpstate.cpp \ - service.cpp - -LOCAL_SHARED_LIBRARIES := \ - libbase \ - libbinder_ndk \ - libcutils \ - libdumpstateutil \ - liblog \ - libutils \ - android.hardware.dumpstate-V1-ndk - -LOCAL_CFLAGS := -Werror -Wall - -LOCAL_MODULE_TAGS := optional -LOCAL_PROPRIETARY_MODULE := true - -include $(BUILD_EXECUTABLE) diff --git a/dumpstate/android.hardware.dumpstate-service.gs201.xml b/dumpstate/android.hardware.dumpstate-service.gs201.xml new file mode 100644 index 00000000..5e51b287 --- /dev/null +++ b/dumpstate/android.hardware.dumpstate-service.gs201.xml @@ -0,0 +1,9 @@ + + + android.hardware.dumpstate + + IDumpstateDevice + default + + + diff --git a/manifest.xml b/manifest.xml index 347e8573..50422a34 100644 --- a/manifest.xml +++ b/manifest.xml @@ -35,13 +35,6 @@ default - - android.hardware.dumpstate - - IDumpstateDevice - default - - android.hardware.boot hwbinder