From 412d097d4af58179387ecf8046e0397e4bbfb1fc Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Mon, 12 Aug 2024 10:11:52 +0900 Subject: [PATCH] Remove InitProperties As userspace reboot is deprecated, there's no clients. Bug: 292469129 Test: m Change-Id: Iafdd719b67fe74dc42498f7ecde2aa5b677ecd0c --- init/Android.bp | 1 - init/builtins.cpp | 1 - init/property_service.cpp | 1 - init/reboot.cpp | 1 - init/sysprop/Android.bp | 16 --------- init/sysprop/InitProperties.sysprop | 36 ------------------- .../api/com.android.sysprop.init-current.txt | 14 -------- .../api/com.android.sysprop.init-latest.txt | 14 -------- 8 files changed, 84 deletions(-) delete mode 100644 init/sysprop/Android.bp delete mode 100644 init/sysprop/InitProperties.sysprop delete mode 100644 init/sysprop/api/com.android.sysprop.init-current.txt delete mode 100644 init/sysprop/api/com.android.sysprop.init-latest.txt diff --git a/init/Android.bp b/init/Android.bp index ffb638063..ed1f14820 100644 --- a/init/Android.bp +++ b/init/Android.bp @@ -226,7 +226,6 @@ cc_defaults { ], whole_static_libs: [ "libcap", - "libcom.android.sysprop.init", ], header_libs: ["bootimg_headers"], proto: { diff --git a/init/builtins.cpp b/init/builtins.cpp index 122adb7f6..1e81692e7 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -46,7 +46,6 @@ #include #include -#include #include #include #include diff --git a/init/property_service.cpp b/init/property_service.cpp index 96a9cd4e4..4d3742a32 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -46,7 +46,6 @@ #include #include -#include #include #include #include diff --git a/init/reboot.cpp b/init/reboot.cpp index 66ee9772a..ef9db9fda 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -39,7 +39,6 @@ #include #include -#include #include #include #include diff --git a/init/sysprop/Android.bp b/init/sysprop/Android.bp deleted file mode 100644 index 296cdc16d..000000000 --- a/init/sysprop/Android.bp +++ /dev/null @@ -1,16 +0,0 @@ -package { - // See: http://go/android-license-faq - // A large-scale-change added 'default_applicable_licenses' to import - // all of the 'license_kinds' from "system_core_init_license" - // to get the below license kinds: - // SPDX-license-identifier-Apache-2.0 - default_applicable_licenses: ["system_core_init_license"], -} - -sysprop_library { - name: "com.android.sysprop.init", - srcs: ["InitProperties.sysprop"], - property_owner: "Platform", - api_packages: ["android.sysprop"], - recovery_available: true, -} diff --git a/init/sysprop/InitProperties.sysprop b/init/sysprop/InitProperties.sysprop deleted file mode 100644 index 24c2434d0..000000000 --- a/init/sysprop/InitProperties.sysprop +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2019 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. - -owner: Platform -module: "android.sysprop.InitProperties" - -# Serves as a signal to all processes that userspace reboot is happening. -prop { - api_name: "userspace_reboot_in_progress" - type: Boolean - scope: Public - access: ReadWrite - prop_name: "sys.init.userspace_reboot.in_progress" - integer_as_bool: true -} - -# Shows whenever the device supports userspace reboot or not. -prop { - api_name: "is_userspace_reboot_supported" - type: Boolean - scope: Public - access: Readonly - prop_name: "init.userspace_reboot.is_supported" - integer_as_bool: true -} diff --git a/init/sysprop/api/com.android.sysprop.init-current.txt b/init/sysprop/api/com.android.sysprop.init-current.txt deleted file mode 100644 index 01f4e9a91..000000000 --- a/init/sysprop/api/com.android.sysprop.init-current.txt +++ /dev/null @@ -1,14 +0,0 @@ -props { - module: "android.sysprop.InitProperties" - prop { - api_name: "is_userspace_reboot_supported" - prop_name: "init.userspace_reboot.is_supported" - integer_as_bool: true - } - prop { - api_name: "userspace_reboot_in_progress" - access: ReadWrite - prop_name: "sys.init.userspace_reboot.in_progress" - integer_as_bool: true - } -} diff --git a/init/sysprop/api/com.android.sysprop.init-latest.txt b/init/sysprop/api/com.android.sysprop.init-latest.txt deleted file mode 100644 index 01f4e9a91..000000000 --- a/init/sysprop/api/com.android.sysprop.init-latest.txt +++ /dev/null @@ -1,14 +0,0 @@ -props { - module: "android.sysprop.InitProperties" - prop { - api_name: "is_userspace_reboot_supported" - prop_name: "init.userspace_reboot.is_supported" - integer_as_bool: true - } - prop { - api_name: "userspace_reboot_in_progress" - access: ReadWrite - prop_name: "sys.init.userspace_reboot.in_progress" - integer_as_bool: true - } -}