From 5a88d8559bd4bf533a0eb0fc728913d976219b87 Mon Sep 17 00:00:00 2001 From: bengris32 Date: Tue, 5 Dec 2023 19:27:38 +0000 Subject: [PATCH] interfaces: mtdservice: Add mtdservice 1.3 interface Change-Id: I24df98f5f206fb85480c57ad50a8368ede97a0a5 Signed-off-by: bengris32 --- .../xiaomi/hardware/mtdservice/1.3/Android.bp | 17 +++++++++++++++++ .../hardware/mtdservice/1.3/IMTService.hal | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 interfaces/xiaomi/hardware/mtdservice/1.3/Android.bp create mode 100644 interfaces/xiaomi/hardware/mtdservice/1.3/IMTService.hal diff --git a/interfaces/xiaomi/hardware/mtdservice/1.3/Android.bp b/interfaces/xiaomi/hardware/mtdservice/1.3/Android.bp new file mode 100644 index 0000000..3a21dfa --- /dev/null +++ b/interfaces/xiaomi/hardware/mtdservice/1.3/Android.bp @@ -0,0 +1,17 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "vendor.xiaomi.hardware.mtdservice@1.3", + root: "vendor.xiaomi", + system_ext_specific: true, + srcs: [ + "IMTService.hal", + ], + interfaces: [ + "android.hidl.base@1.0", + "vendor.xiaomi.hardware.mtdservice@1.0", + "vendor.xiaomi.hardware.mtdservice@1.1", + "vendor.xiaomi.hardware.mtdservice@1.2", + ], + gen_java: true, +} diff --git a/interfaces/xiaomi/hardware/mtdservice/1.3/IMTService.hal b/interfaces/xiaomi/hardware/mtdservice/1.3/IMTService.hal new file mode 100644 index 0000000..92835f3 --- /dev/null +++ b/interfaces/xiaomi/hardware/mtdservice/1.3/IMTService.hal @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +package vendor.xiaomi.hardware.mtdservice@1.3; + +import @1.2::IMTService; + +interface IMTService extends @1.2::IMTService { + external_id_load(int32_t id) generates (bool result); + getTAVersion() generates (string version); + get_device_rpmb_counter() generates (int32_t counter); + get_device_secure_status() generates (vec status); + refreash_device_rpmb_status() generates (int32_t result); +};