summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-01-15 01:14:33 +0100
committermosimchah <mosimchah@gmail.com>2019-05-27 04:57:27 -0400
commit76b633dacbfbc40a2cf78c934100cabeebce70c5 (patch)
treed49c8adbc9ca3cc7382afce1efe87990a7a24f2c
parent4961be8db88d90c8b749a7310e39c12f025c3534 (diff)
kirin970-common: Add IExtBiometricsFingerprint hal
* To be used with KeyDisabler Change-Id: I7a1c115cfff93beb6ca5bc546f35261d95217977
-rw-r--r--interfaces/Android.bp4
-rw-r--r--interfaces/fingerprint/2.1/Android.bp16
-rw-r--r--interfaces/fingerprint/2.1/IExtBiometricsFingerprint.hal34
-rw-r--r--interfaces/fingerprint/2.1/IFidoAuthenticationCallback.hal22
-rwxr-xr-xinterfaces/update-makefiles.sh6
5 files changed, 82 insertions, 0 deletions
diff --git a/interfaces/Android.bp b/interfaces/Android.bp
new file mode 100644
index 0000000..620c0f2
--- /dev/null
+++ b/interfaces/Android.bp
@@ -0,0 +1,4 @@
+hidl_package_root {
+ name: "vendor.huawei.hardware.biometrics",
+ path: "device/huawei/kirin970-common/interfaces",
+}
diff --git a/interfaces/fingerprint/2.1/Android.bp b/interfaces/fingerprint/2.1/Android.bp
new file mode 100644
index 0000000..a31ff67
--- /dev/null
+++ b/interfaces/fingerprint/2.1/Android.bp
@@ -0,0 +1,16 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "vendor.huawei.hardware.biometrics.fingerprint@2.1",
+ root: "vendor.huawei.hardware.biometrics",
+ srcs: [
+ "IExtBiometricsFingerprint.hal",
+ "IFidoAuthenticationCallback.hal",
+ ],
+ interfaces: [
+ "android.hardware.biometrics.fingerprint@2.1",
+ "android.hidl.base@1.0",
+ ],
+ gen_java: true,
+}
+
diff --git a/interfaces/fingerprint/2.1/IExtBiometricsFingerprint.hal b/interfaces/fingerprint/2.1/IExtBiometricsFingerprint.hal
new file mode 100644
index 0000000..7d93315
--- /dev/null
+++ b/interfaces/fingerprint/2.1/IExtBiometricsFingerprint.hal
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2019 The LineageOS Project
+ * Copyright (C) 2019 Pierre-Hugues Husson <phh@phh.me>
+ *
+ * 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.
+ */
+
+package vendor.huawei.hardware.biometrics.fingerprint@2.1;
+
+import android.hardware.biometrics.fingerprint@2.1::IBiometricsFingerprint;
+import vendor.huawei.hardware.biometrics.fingerprint@2.1::IFidoAuthenticationCallback;
+
+interface IExtBiometricsFingerprint extends android.hardware.biometrics.fingerprint@2.1::IBiometricsFingerprint {
+ setLivenessSwitch(int32_t needLivenessAuthentication) generates(int32_t debugErrno);
+ checkNeedReEnrollFinger() generates (int32_t debugErrno);
+ removeUserData(int32_t gid, string storePath) generates (int32_t debugErrno);
+ updateSecurityId(int64_t security_id) generates (int32_t debugErrno);
+ getFpOldData() generates (int32_t fingerId);
+ verifyUser(IFidoAuthenticationCallback fidoClientCallback, int32_t groupId, string aaid, vec<int8_t> nonce) generates (int32_t debugErrno);
+ getTokenLen() generates (int32_t tokenLen);
+ setCalibrateMode(int32_t do_sensor_calibration) generates (int32_t setModeStatus);
+ checkNeedCalibrateFingerprint() generates (int32_t sensor_calibration_status);
+ sendCmdToHal(int32_t cmdId) generates (int32_t result);
+};
diff --git a/interfaces/fingerprint/2.1/IFidoAuthenticationCallback.hal b/interfaces/fingerprint/2.1/IFidoAuthenticationCallback.hal
new file mode 100644
index 0000000..8a1892d
--- /dev/null
+++ b/interfaces/fingerprint/2.1/IFidoAuthenticationCallback.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2019 The LineageOS Project
+ * Copyright (C) 2019 Pierre-Hugues Husson <phh@phh.me>
+ *
+ * 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.
+ */
+
+package vendor.huawei.hardware.biometrics.fingerprint@2.1;
+
+interface IFidoAuthenticationCallback {
+ oneway onUserVerificationResult(int32_t result, int64_t opId, vec<int8_t> userId, vec<int8_t> encapsulatedResult);
+};
diff --git a/interfaces/update-makefiles.sh b/interfaces/update-makefiles.sh
new file mode 100755
index 0000000..b945e92
--- /dev/null
+++ b/interfaces/update-makefiles.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+source $ANDROID_BUILD_TOP/system/tools/hidl/update-makefiles-helper.sh
+
+do_makefiles_update \
+ "vendor.huawei.hardware.biometrics:device/huawei/kirin970-common/interfaces"