aboutsummaryrefslogtreecommitdiff
path: root/org.ifaa.android.manager
diff options
context:
space:
mode:
Diffstat (limited to 'org.ifaa.android.manager')
-rw-r--r--org.ifaa.android.manager/Android.mk26
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java23
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java64
3 files changed, 0 insertions, 113 deletions
diff --git a/org.ifaa.android.manager/Android.mk b/org.ifaa.android.manager/Android.mk
deleted file mode 100644
index 5818bb7..0000000
--- a/org.ifaa.android.manager/Android.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Copyright (C) 2016 The CyanogenMod Project
-#
-# 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.
-#
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_MODULE := org.ifaa.android.manager
-LOCAL_MODULE_TAGS := optional
-
-include $(BUILD_JAVA_LIBRARY)
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
deleted file mode 100644
index 5a945c3..0000000
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.ifaa.android.manager;
-
-import android.content.Context;
-import android.hardware.fingerprint.FingerprintManager;
-import android.os.Build;
-
-public abstract class IFAAManager
-{
- static
- {
- System.loadLibrary("ifaa_jni");
- }
-
- public abstract String getDeviceModel();
-
- public abstract int getSupportBIOTypes(Context paramContext);
-
- public abstract int getVersion();
-
- public native byte[] processCmd(Context paramContext, byte[] paramArrayOfByte);
-
- public abstract int startBIOManager(Context paramContext, int paramInt);
-}
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
deleted file mode 100644
index a747b13..0000000
--- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (C) 2016 The CyanogenMod Project
- *
- * 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 org.ifaa.android.manager;
-
-import android.content.ActivityNotFoundException;
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-
-public class IFAAManagerFactory extends IFAAManager {
- private static final int ACTIVITY_START_FAILED = -1;
- private static final int ACTIVITY_START_SUCCESS = 0;
- private static final int BIOTypeFingerprint = 1;
- private static final int BIOTypeIris = 2;
- private static final String TAG = "IFAAManagerFactory";
- public static IFAAManagerFactory mIFAAManagerFactory = null;
-
- public int getSupportBIOTypes(Context context) {
- return BIOTypeFingerprint;
- }
-
- public int startBIOManager(Context context, int authType) {
- try {
- Intent intent = new Intent();
- intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
- intent.setComponent(new ComponentName("com.android.settings", "com.android.settings.Settings$SecuritySettingsActivity"));
- context.startActivity(intent);
- } catch (ActivityNotFoundException e) {
- e.printStackTrace();
- } catch (Throwable th) {
- }
- return ACTIVITY_START_SUCCESS;
- }
-
- public String getDeviceModel() {
- return "ZUK-Z2131";
- }
-
- public int getVersion() {
- return BIOTypeFingerprint;
- }
-
- public static IFAAManager getIFAAManager(Context context, int authType) {
- if (mIFAAManagerFactory != null) {
- return mIFAAManagerFactory;
- }
- mIFAAManagerFactory = new IFAAManagerFactory();
- return mIFAAManagerFactory;
- }
-}