From b680eae9a3060e0e47e4894de563214bcf24322a Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 15 Nov 2025 14:43:27 +0000 Subject: [PATCH] interfaces: Update IOplusProject to V2 Change-Id: I628f7aa3ed07b5c02fd0a07a3e41a3cfb7291bb5 --- interfaces/Android.bp | 4 ++ .../oplus_project/IOplusProject.aidl | 2 + .../2/.hash | 1 + .../oplus_project/IOplusProject.aidl | 59 +++++++++++++++++++ .../oplus_project/IOplusProject.aidl | 1 + 5 files changed, 67 insertions(+) create mode 100644 interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/.hash create mode 100644 interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl diff --git a/interfaces/Android.bp b/interfaces/Android.bp index c688a5c..d939e3f 100644 --- a/interfaces/Android.bp +++ b/interfaces/Android.bp @@ -253,6 +253,10 @@ aidl_interface { version: "1", imports: [], }, + { + version: "2", + imports: [], + }, ], } diff --git a/interfaces/aidl/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl b/interfaces/aidl/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl index 4a88784..de393b7 100644 --- a/interfaces/aidl/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl +++ b/interfaces/aidl/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl @@ -43,4 +43,6 @@ interface IOplusProject { boolean set_shutdown_detect(String shutdown_detect_value); boolean write_theia_node(int theia_node_id, String theia_data); + + String get_dram_freq(); } diff --git a/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/.hash b/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/.hash new file mode 100644 index 0000000..279726c --- /dev/null +++ b/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/.hash @@ -0,0 +1 @@ +8ebc89b4e0aefb3d466a72835fd8d4a71ee670af diff --git a/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl b/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl new file mode 100644 index 0000000..4b01dec --- /dev/null +++ b/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/2/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl @@ -0,0 +1,59 @@ +/* + * SPDX-FileCopyrightText: 2025 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.oplus.hardware.stability.oplus_project; +@VintfStability +interface IOplusProject { + int get_eng_version(); + String get_force_reboot(); + int get_ftmmode(); + String get_hungtask(); + String get_mt_gpio(); + String get_ocp(); + String get_opboot(); + int get_operator_name(); + String get_oplusocp_status(int pmic_id); + String get_opluspoff_reason(int pmic_id); + String get_opluspon_reason(int pmic_id); + int get_pcb_version(); + String get_phoenix(); + String get_pmic_info(); + String get_poff_reason(); + String get_pon_reason(); + int get_project(); + int get_rf_type(); + int get_sau(); + String get_serial_ID(); + String get_shutdown_detect(); + boolean is_ufs_devices(); + String miscModule2Load(); + String miscModuleBlocklist(); + String miscReadLinkedModules(); + int[] readAgingData(int type); + String read_theia_node(int theia_node_id); + boolean saveAgingData(int type, in int[] saveAgingData, int length); + boolean set_opboot(String opboot); + boolean set_phoenix(String monitoring_command); + boolean set_shutdown_detect(String shutdown_detect_value); + boolean write_theia_node(int theia_node_id, String theia_data); + String get_dram_freq(); +} diff --git a/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/current/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl b/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/current/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl index 884f072..4b01dec 100644 --- a/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/current/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl +++ b/interfaces/aidl_api/vendor.oplus.hardware.stability.oplus_project/current/vendor/oplus/hardware/stability/oplus_project/IOplusProject.aidl @@ -55,4 +55,5 @@ interface IOplusProject { boolean set_phoenix(String monitoring_command); boolean set_shutdown_detect(String shutdown_detect_value); boolean write_theia_node(int theia_node_id, String theia_data); + String get_dram_freq(); }