summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-01-09 20:46:29 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:49:34 +0300
commit7345a9725ca2a7269f8179457c80e385b50f00f3 (patch)
treea337c96711ece46359cc3ea1d4250a1518e755c0
parentbbe90ada6c1b78c6a19a7088d71557d37c2c49ec (diff)
sdm660-common: Add ifaa apis to unrestricted greylist
Change-Id: If33a18edaf6083281265ce94fd143d72b4bb4fb8
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java6
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java2
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java2
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java8
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java4
5 files changed, 22 insertions, 0 deletions
diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java
index b793d36..d9a2f6e 100644
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java
+++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java
@@ -1,5 +1,6 @@
package org.ifaa.android.manager;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.os.Build.VERSION;
import android.os.SystemProperties;
@@ -14,6 +15,7 @@ public abstract class IFAAManager {
/**
* 返回手机系统上支持的校验方式,目前IFAF协议1.0版本指纹为0x01、虹膜为0x02
*/
+ @UnsupportedAppUsage
public abstract int getSupportBIOTypes(Context context);
/**
@@ -23,6 +25,7 @@ public abstract class IFAAManager {
* @param authType 生物特征识别类型,指纹为1,虹膜为2
* @return 0,成功启动指纹管理应用;-1,启动指纹管理应用失败。
*/
+ @UnsupportedAppUsage
public abstract int startBIOManager(Context context, int authType);
/**
@@ -31,16 +34,19 @@ public abstract class IFAAManager {
* @param param 用于传输到IFAA TA的数据buffer
* @return IFAA TA返回给REE数据buffer
*/
+ @UnsupportedAppUsage
public native byte[] processCmd(Context context, byte[] param);
/**
* 获取设备型号,同一款机型型号需要保持一致
*/
+ @UnsupportedAppUsage
public abstract String getDeviceModel();
/**
* 获取IFAAManager接口定义版本,目前为1
*/
+ @UnsupportedAppUsage
public abstract int getVersion();
/**
diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java
index 97a948a..a948fd2 100644
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java
+++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java
@@ -1,8 +1,10 @@
package org.ifaa.android.manager;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
public class IFAAManagerFactory {
+ @UnsupportedAppUsage
public static IFAAManager getIFAAManager(Context context, int authType) {
return IFAAManagerImpl.getInstance(context);
}
diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java
index 2d7e3f5..7a62da1 100644
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java
+++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java
@@ -1,7 +1,9 @@
package org.ifaa.android.manager;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
public abstract class IFAAManagerV2 extends IFAAManager {
+ @UnsupportedAppUsage
public abstract byte[] processCmdV2(Context paramContext, byte[] paramArrayOfByte);
}
diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java
index 50e677d..a33d3d9 100644
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java
+++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java
@@ -1,12 +1,20 @@
package org.ifaa.android.manager;
+import android.annotation.UnsupportedAppUsage;
+
public abstract class IFAAManagerV3 extends IFAAManagerV2 {
+ @UnsupportedAppUsage
public static final String KEY_FINGERPRINT_FULLVIEW = "org.ifaa.ext.key.CUSTOM_VIEW";
+ @UnsupportedAppUsage
public static final String KEY_GET_SENSOR_LOCATION = "org.ifaa.ext.key.GET_SENSOR_LOCATION";
+ @UnsupportedAppUsage
public static final String VALUE_FINGERPRINT_DISABLE = "disable";
+ @UnsupportedAppUsage
public static final String VLAUE_FINGERPRINT_ENABLE = "enable";
+ @UnsupportedAppUsage
public abstract String getExtInfo(int authType, String keyExtInfo);
+ @UnsupportedAppUsage
public abstract void setExtInfo(int authType, String keyExtInfo, String valExtInfo);
}
diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java
index 6d0a4d5..6e9c0b6 100644
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java
+++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java
@@ -1,7 +1,11 @@
package org.ifaa.android.manager;
+import android.annotation.UnsupportedAppUsage;
+
public abstract class IFAAManagerV4 extends IFAAManagerV3 {
+ @UnsupportedAppUsage
public abstract int getEnabled(int bioType);
+ @UnsupportedAppUsage
public abstract int[] getIDList(int bioType);
}