interfaces: Add reverse engineered mtkpower 1.1 interface
Signed-off-by: bengris32 <bengris32@protonmail.ch>
diff --git a/mtkpower/1.1/.hidl-autogen b/mtkpower/1.1/.hidl-autogen
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mtkpower/1.1/.hidl-autogen
diff --git a/mtkpower/1.1/Android.bp b/mtkpower/1.1/Android.bp
new file mode 100644
index 0000000..4aac971
--- /dev/null
+++ b/mtkpower/1.1/Android.bp
@@ -0,0 +1,17 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "vendor.mediatek.hardware.mtkpower@1.1",
+ root: "vendor.mediatek.hardware.mtkpower",
+ system_ext_specific: true,
+ srcs: [
+ "IMtkPerf.hal",
+ "IMtkPower.hal",
+ "IMtkPowerCallback.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ "vendor.mediatek.hardware.mtkpower@1.0",
+ ],
+ gen_java: true,
+}
diff --git a/mtkpower/1.1/IMtkPerf.hal b/mtkpower/1.1/IMtkPerf.hal
new file mode 100644
index 0000000..8d4ac7f
--- /dev/null
+++ b/mtkpower/1.1/IMtkPerf.hal
@@ -0,0 +1,7 @@
+package vendor.mediatek.hardware.mtkpower@1.1;
+
+import @1.0::IMtkPerf;
+
+interface IMtkPerf extends @1.0::IMtkPerf {
+ perfCusLockHint(int32_t pl_handle, uint32_t duration) generates (int32_t ret);
+};
\ No newline at end of file
diff --git a/mtkpower/1.1/IMtkPower.hal b/mtkpower/1.1/IMtkPower.hal
new file mode 100644
index 0000000..2ef1cfd
--- /dev/null
+++ b/mtkpower/1.1/IMtkPower.hal
@@ -0,0 +1,8 @@
+package vendor.mediatek.hardware.mtkpower@1.1;
+
+import @1.0::IMtkPower;
+import IMtkPowerCallback;
+
+interface IMtkPower extends @1.0::IMtkPower {
+ setMtkPowerCallback(IMtkPowerCallback callback) generates (int32_t ret);
+};
\ No newline at end of file
diff --git a/mtkpower/1.1/IMtkPowerCallback.hal b/mtkpower/1.1/IMtkPowerCallback.hal
new file mode 100644
index 0000000..e4d4dbc
--- /dev/null
+++ b/mtkpower/1.1/IMtkPowerCallback.hal
@@ -0,0 +1,6 @@
+package vendor.mediatek.hardware.mtkpower@1.1;
+
+interface IMtkPowerCallback {
+ oneway mtkPowerHint(int32_t hint, int32_t duration);
+ oneway notifyAppState(string param_1, string param_2, int32_t param_3, int32_t param_4, int32_t param_5);
+};
\ No newline at end of file