├── .gitignore ├── .idea ├── checkstyle-idea.xml ├── gradle.xml ├── kotlinc.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml └── vcs.xml ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── bcm │ │ └── bmprinter │ │ ├── FingerprintDialog.kt │ │ ├── MainActivity.kt │ │ ├── VerifyFingerprintFragment.kt │ │ └── VerifyPasswordFragment.kt │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable-xhdpi │ ├── fingerprint_icon.png │ ├── fingerprint_match_icon.png │ ├── fingerprint_not_match_icon.png │ └── next_black_icon.png │ ├── drawable │ ├── bg_fingerprint_dialog.xml │ ├── common_primary_thick_round_selector.xml │ ├── common_primary_thin_round_selector.xml │ ├── ic_launcher_background.xml │ ├── register_input_bg.xml │ └── register_input_error_bg.xml │ ├── layout │ ├── activity_main.xml │ ├── activity_verify_fingerprint.xml │ ├── dialog_fingerprint.xml │ ├── fragment_verify_fingerprint.xml │ └── fragment_verify_password.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml ├── bmprinter ├── .gitignore ├── build.gradle ├── libs │ ├── fingerprint.jar │ ├── pass-v1.2.6.jar │ └── sdk-v1.0.0.jar ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── bcm │ │ └── bmprinter │ │ └── fingerprint │ │ ├── AospFingerprintHelper.kt │ │ ├── BiometricPromptHelper.kt │ │ ├── FingerprintFactory.kt │ │ ├── IFingerprintUtil.kt │ │ └── brandfingerprintutils │ │ ├── AospFingerprintUtil.kt │ │ ├── MeizuFingerprintUtil.kt │ │ ├── MiFingerprintUtil.kt │ │ ├── SamsungFingerprintUtil.kt │ │ ├── VivoFingerprintInsets.kt │ │ └── VivoFingerprintUtil.kt │ └── res │ └── values │ └── strings.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/checkstyle-idea.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | 36 | 37 | 1.8 38 | 39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BMPrinter 2 | BMPrinter is the first open source project from SKYSTAR and BCM 3 | 4 | Characteristic 5 | ------------------- 6 | 1.Has Adapted most of phone with fingerprint above Android N,included XIAOMI,MEIZU,VIVO,OPPO,Samsung and google.
7 | 2.Has Adapted underscreen fingerprint,include XIAOMI,VIVO,OPPO.
8 | 3.Has Adapted some phone above Android L.
9 | 10 | 11 | Add to Your project 12 | ------------------- 13 | ``` 14 | Gradle: 15 | implementation project(':bmprinter') 16 | ``` 17 | 18 | Ussage 19 | ------------------- 20 | All code is write with kotlin,so it would be best you know kotlin and java.
21 | 1.get BMPrinter
22 | var fingerprintUtil: IFingerprintUtil = createFingerprintUtil() 23 | 24 | 2.authenticate
25 | fingerprintUtil?.authenticate { success, errCode, errMsg -> if(success){}} 26 | 27 | 3.FingerprintFactory
28 | you can see some status for fingerprint authentication in FingerprintFactory.
29 | 30 | 31 | About Android P 32 | ------------------- 33 | It has change FingerPrint api to BiometricPrompt and BiometricPrompt only can be built as a dialog.
34 | New version has support android P.
35 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdkVersion 26 9 | defaultConfig { 10 | applicationId "com.bcm.bmprinter" 11 | minSdkVersion 23 12 | targetSdkVersion 26 13 | versionCode 1 14 | versionName "1.0" 15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | } 24 | 25 | dependencies { 26 | implementation fileTree(include: ['*.jar'], dir: 'libs') 27 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 28 | implementation 'com.android.support:appcompat-v7:26.1.0' 29 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 30 | api 'com.android.support.constraint:constraint-layout:1.1.3' 31 | implementation project(':bmprinter') 32 | } 33 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/bcm/bmprinter/FingerprintDialog.kt: -------------------------------------------------------------------------------- 1 | package com.bcm.bmprinter 2 | 3 | import android.content.res.Resources 4 | import android.graphics.Color 5 | import android.graphics.drawable.ColorDrawable 6 | import android.os.Bundle 7 | import android.support.v4.app.DialogFragment 8 | import android.view.LayoutInflater 9 | import android.view.View 10 | import android.view.ViewGroup 11 | import android.view.WindowManager 12 | 13 | import kotlinx.android.synthetic.main.dialog_fingerprint.* 14 | 15 | /** 16 | * Created by Kin on 2018/9/4 17 | */ 18 | class FingerprintDialog : DialogFragment() { 19 | private val TAG = "FingerprintDialog" 20 | 21 | private var positiveCallback: (() -> Unit)? = null 22 | private var negativeCallback: (() -> Unit)? = null 23 | private var message = "" 24 | private var hasFingerprint = true 25 | 26 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { 27 | dialog.window.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) 28 | return inflater.inflate(R.layout.dialog_fingerprint, container, false) 29 | } 30 | 31 | override fun onViewCreated(view: View, savedInstanceState: Bundle?) { 32 | dialog_fingerprint_positive.setOnClickListener { 33 | dismiss() 34 | positiveCallback?.invoke() 35 | } 36 | dialog_fingerprint_negative.setOnClickListener { 37 | dismiss() 38 | negativeCallback?.invoke() 39 | } 40 | if (!hasFingerprint) { 41 | dialog_fingerprint_positive.visibility = View.GONE 42 | } 43 | dialog_fingerprint_text.text = message 44 | } 45 | 46 | override fun onActivityCreated(savedInstanceState: Bundle?) { 47 | super.onActivityCreated(savedInstanceState) 48 | dialog.window.setLayout(dp2Px(resources, 275), WindowManager.LayoutParams.WRAP_CONTENT) 49 | dialog.setCancelable(false) 50 | dialog.setCanceledOnTouchOutside(false) 51 | } 52 | 53 | fun setCallback(positiveCallback: () -> Unit, negativeCallback: () -> Unit): FingerprintDialog { 54 | this.positiveCallback = positiveCallback 55 | this.negativeCallback = negativeCallback 56 | return this 57 | } 58 | 59 | fun setMessage(msg: String): FingerprintDialog { 60 | message = msg 61 | return this 62 | } 63 | 64 | fun setHasFingerprint(hasFingerprint: Boolean): FingerprintDialog { 65 | this.hasFingerprint = hasFingerprint 66 | return this 67 | } 68 | } 69 | 70 | /** 71 | * 单位转换:dp转px 72 | * @param res 73 | * @param dp 74 | * @return 75 | */ 76 | fun dp2Px(res: Resources, dp: Int): Int { 77 | return (dp * res.displayMetrics.density + 0.5f).toInt() 78 | } -------------------------------------------------------------------------------- /app/src/main/java/com/bcm/bmprinter/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.bcm.bmprinter 2 | 3 | import android.app.Activity 4 | import android.support.v7.app.AppCompatActivity 5 | import android.os.Bundle 6 | import android.util.Log 7 | import android.widget.Toast 8 | import com.bcm.bmprinter.fingerprint.IFingerprintUtil 9 | import com.bcm.bmprinter.fingerprint.createFingerprintUtil 10 | 11 | class MainActivity : AppCompatActivity() { 12 | private val TAG = "MainActivity" 13 | 14 | private lateinit var fingerprintUtil: IFingerprintUtil 15 | 16 | override fun onCreate(savedInstanceState: Bundle?) { 17 | super.onCreate(savedInstanceState) 18 | setContentView(R.layout.activity_verify_fingerprint) 19 | 20 | initView() 21 | } 22 | 23 | private fun initView() { 24 | //创建指纹识别辅助器 25 | fingerprintUtil = createFingerprintUtil(applicationContext) 26 | //判断是否可用,设备是否存在锁密码,是否有录过指纹 27 | if (fingerprintUtil.canUseFingerprint() && fingerprintUtil.isDeviceSecure() && fingerprintUtil.hasEnrolledFingerprints()) { 28 | Log.d(TAG, "Device has fingerprint sensor and has enrolled fingerprints, start authenticate fingerprint.") 29 | switchToFingerprintFragment() //跳转到屏幕指纹识别 30 | } else { 31 | Log.d(TAG, "Device has no fingerprint sensor, start authenticate password.") 32 | switchToPasswordFragment(false) //跳转到密码页面 33 | } 34 | } 35 | 36 | /** 37 | * 跳去指纹识别页 38 | */ 39 | fun switchToFingerprintFragment() { 40 | val f = VerifyFingerprintFragment() 41 | .setFingerprintUtil(fingerprintUtil) 42 | .setCallback(this::handleCallback) 43 | supportFragmentManager.beginTransaction() 44 | .replace(R.id.container, f) 45 | .commit() 46 | } 47 | 48 | /** 49 | * 跳转密码页 50 | */ 51 | fun switchToPasswordFragment(hasFingerprint: Boolean, lockout: Boolean = false) { 52 | val f = VerifyPasswordFragment() 53 | .setHasFingerprint(hasFingerprint) 54 | .setHasLockout(lockout) 55 | .setCallback(this::handleCallback) 56 | supportFragmentManager.beginTransaction() 57 | .replace(R.id.container, f) 58 | .commit() 59 | } 60 | 61 | private fun handleCallback(success: Boolean) { 62 | if (success) { 63 | Log.d(TAG, "Authenticate success.") 64 | setResult(Activity.RESULT_OK) 65 | Toast.makeText(this,"Success", Toast.LENGTH_SHORT).show() 66 | } else { 67 | Log.d(TAG, "Authenticate failed.") 68 | setResult(Activity.RESULT_CANCELED) 69 | Toast.makeText(this,"Fail", Toast.LENGTH_SHORT).show() 70 | } 71 | // finish() 72 | } 73 | 74 | override fun finish() { 75 | super.finish() 76 | fingerprintUtil.destroy() //清理数据 77 | } 78 | 79 | override fun onBackPressed() { 80 | finish() 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/src/main/java/com/bcm/bmprinter/VerifyFingerprintFragment.kt: -------------------------------------------------------------------------------- 1 | package com.bcm.bmprinter 2 | 3 | import android.os.Bundle 4 | import android.os.Handler 5 | import android.os.Looper 6 | import android.support.v4.app.Fragment 7 | import android.util.Log 8 | import android.view.LayoutInflater 9 | import android.view.View 10 | import android.view.ViewGroup 11 | import com.bcm.bmprinter.fingerprint.AUTHENTICATE_FAILED_LOCKOUT 12 | import com.bcm.bmprinter.fingerprint.IFingerprintUtil 13 | import kotlinx.android.synthetic.main.fragment_verify_fingerprint.* 14 | 15 | /** 16 | * Created by Kin on 2018/9/3 17 | */ 18 | class VerifyFingerprintFragment : Fragment() { 19 | private val TAG = "VerifyFingerprint" 20 | private val DIALOG_TAG = "Fingerprint_Dialog" 21 | 22 | private var fingerprintUtil: IFingerprintUtil? = null 23 | private var verifyCallback: ((success: Boolean) -> Unit)? = null 24 | private var fragmentOnTop = false 25 | 26 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { 27 | return inflater.inflate(R.layout.fragment_verify_fingerprint, container, false) 28 | } 29 | 30 | override fun onViewCreated(view: View, savedInstanceState: Bundle?) { 31 | verify_fingerprint_cancel.setOnClickListener { 32 | verifyCallback?.invoke(false) 33 | } 34 | verify_fingerprint_password.setOnClickListener { 35 | (activity as? MainActivity)?.switchToPasswordFragment(true) 36 | } 37 | } 38 | 39 | /** 40 | * 开启指纹识别 41 | */ 42 | private fun startAuthenticate() { 43 | Log.d(TAG, "Start authenticate") 44 | fingerprintUtil?.authenticate { success, errCode, errMsg -> 45 | Log.d(TAG, "Get authenticate result, success: $success, error code: $errCode, error msg: $errMsg") 46 | if (success) { //返回成功 47 | verify_fingerprint_icon.setImageDrawable(context?.getDrawable(R.drawable.fingerprint_match_icon)) 48 | Handler(Looper.getMainLooper()).postDelayed({ 49 | verifyCallback?.invoke(true) 50 | verify_fingerprint_icon.postDelayed(resetImage,2000) 51 | }, 1000) 52 | } else { 53 | if (errCode == AUTHENTICATE_FAILED_LOCKOUT) { //如果返回验证超过次数被锁 54 | // 失败被锁,关闭错误提示框,跳转到输入密码界面 55 | val oldDialog = fragmentManager?.findFragmentByTag(DIALOG_TAG) 56 | if (oldDialog is FingerprintDialog) { 57 | oldDialog.dismiss() 58 | } 59 | (activity as? MainActivity)?.switchToPasswordFragment(true, true) 60 | return@authenticate 61 | } 62 | if (fragmentOnTop) { //页面不在顶层 63 | showFailDialog(getString(R.string.fingerprint_not_match), errCode == AUTHENTICATE_FAILED_LOCKOUT) 64 | } 65 | } 66 | fingerprintUtil?.cancelAuthenticate() 67 | } 68 | } 69 | 70 | fun setFingerprintUtil(util: IFingerprintUtil): VerifyFingerprintFragment { 71 | fingerprintUtil = util 72 | return this 73 | } 74 | 75 | /** 76 | * 设置回调 77 | */ 78 | fun setCallback(callback: (success: Boolean) -> Unit): VerifyFingerprintFragment { 79 | verifyCallback = callback 80 | return this 81 | } 82 | 83 | val resetImage = Runnable { 84 | verify_fingerprint_icon.setImageDrawable(context?.getDrawable(R.drawable.fingerprint_icon)) 85 | startAuthenticate() 86 | } 87 | 88 | private fun showFailDialog(errMsg: String, lockout: Boolean) { 89 | val oldDialog = fragmentManager?.findFragmentByTag(DIALOG_TAG) 90 | if (oldDialog != null) { 91 | return 92 | } 93 | FingerprintDialog() 94 | .setHasFingerprint(true) 95 | .setMessage(errMsg) 96 | .setCallback({ 97 | startAuthenticate() 98 | }, { 99 | (activity as? MainActivity)?.switchToPasswordFragment(true, lockout) 100 | }) 101 | .show(fragmentManager, DIALOG_TAG) 102 | } 103 | 104 | override fun onResume() { 105 | super.onResume() 106 | fragmentOnTop = true 107 | //开启指纹识别 108 | startAuthenticate() 109 | } 110 | 111 | override fun onStop() { 112 | super.onStop() 113 | fragmentOnTop = false 114 | fingerprintUtil?.cancelAuthenticate() 115 | verify_fingerprint_icon.removeCallbacks(resetImage) 116 | } 117 | 118 | override fun onDetach() { 119 | super.onDetach() 120 | fingerprintUtil = null 121 | verifyCallback = null 122 | } 123 | } -------------------------------------------------------------------------------- /app/src/main/java/com/bcm/bmprinter/VerifyPasswordFragment.kt: -------------------------------------------------------------------------------- 1 | package com.bcm.bmprinter 2 | 3 | import android.os.Bundle 4 | import android.support.v4.app.Fragment 5 | import android.text.Editable 6 | import android.text.TextWatcher 7 | import android.view.LayoutInflater 8 | import android.view.View 9 | import android.view.ViewGroup 10 | import android.widget.Toast 11 | 12 | import kotlinx.android.synthetic.main.fragment_verify_password.* 13 | 14 | /** 15 | * Created by Kin on 2018/9/3 16 | */ 17 | class VerifyPasswordFragment : Fragment() { 18 | private val TAG = "VerifyPasswordFragment" 19 | 20 | private var verifyCallback: ((success: Boolean) -> Unit)? = null 21 | private var hasFingerprint = false 22 | private var lockout = false 23 | 24 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { 25 | return inflater.inflate(R.layout.fragment_verify_password, container, false) 26 | } 27 | 28 | override fun onViewCreated(view: View, savedInstanceState: Bundle?) { 29 | verify_password_fingerprint.setOnClickListener { 30 | (activity as? MainActivity)?.switchToFingerprintFragment() 31 | } 32 | verify_password_confirm.setOnClickListener { 33 | verifyPassword(verify_password_input.text.toString()) 34 | } 35 | verify_password_input.addTextChangedListener(object : TextWatcher { 36 | override fun afterTextChanged(s: Editable?) {} 37 | 38 | override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {} 39 | 40 | override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { 41 | verify_password_confirm.visibility = if (s != null && s.isNotEmpty()) { 42 | View.VISIBLE 43 | } else { 44 | View.GONE 45 | } 46 | } 47 | }) 48 | verify_password_cancel.setOnClickListener { 49 | verifyCallback?.invoke(false) 50 | } 51 | if (!hasFingerprint) { 52 | // 设备没有指纹识别,隐藏跳转图标 53 | verify_password_fingerprint.visibility = View.GONE 54 | verify_password_try_again.visibility = View.GONE 55 | } 56 | if (lockout) { 57 | // 失败过多被锁,不允许跳转到指纹识别 58 | verify_password_fingerprint.setOnClickListener { 59 | Toast.makeText(activity,getString(R.string.fingerprint_lockout),Toast.LENGTH_SHORT).show() 60 | } 61 | Toast.makeText(activity,getString(R.string.fingerprint_lockout),Toast.LENGTH_SHORT).show() 62 | } 63 | } 64 | 65 | fun setCallback(callback: (success: Boolean) -> Unit): VerifyPasswordFragment { 66 | verifyCallback = callback 67 | return this 68 | } 69 | 70 | fun setHasFingerprint(hasFingerprint: Boolean): VerifyPasswordFragment { 71 | this.hasFingerprint = hasFingerprint 72 | return this 73 | } 74 | 75 | fun setHasLockout(lockout: Boolean): VerifyPasswordFragment { 76 | this.lockout = lockout 77 | return this 78 | } 79 | 80 | override fun onDetach() { 81 | super.onDetach() 82 | verifyCallback = null 83 | } 84 | 85 | /** 86 | * 校验密码 87 | * 88 | * @param inputPassword 用户输入的密码 89 | */ 90 | private fun verifyPassword(inputPassword: String) { 91 | try { 92 | // val loginProfile = AMESelfData.profile 93 | // loginProfile?.let { 94 | // val oldPrivateKeyString = it.privateKey 95 | // ?: throw Exception("account private key is null") 96 | // OpenIdUtils.decodePrivateKey(oldPrivateKeyString, inputPassword) 97 | // verifyCallback?.invoke(true) 98 | // return 99 | // } 100 | Toast.makeText(activity,"Go to password input",Toast.LENGTH_SHORT).show() 101 | } catch (e: Exception) {} 102 | verify_password_input.background = context?.getDrawable(R.drawable.register_input_error_bg) 103 | } 104 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/fingerprint_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cangwang/BMPrinter/a600ea3871c33e307a2b1a38476e19fe45642cf6/app/src/main/res/drawable-xhdpi/fingerprint_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/fingerprint_match_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cangwang/BMPrinter/a600ea3871c33e307a2b1a38476e19fe45642cf6/app/src/main/res/drawable-xhdpi/fingerprint_match_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/fingerprint_not_match_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cangwang/BMPrinter/a600ea3871c33e307a2b1a38476e19fe45642cf6/app/src/main/res/drawable-xhdpi/fingerprint_not_match_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/next_black_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cangwang/BMPrinter/a600ea3871c33e307a2b1a38476e19fe45642cf6/app/src/main/res/drawable-xhdpi/next_black_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_fingerprint_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/common_primary_thick_round_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/common_primary_thin_round_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/register_input_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/register_input_error_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_verify_fingerprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/dialog_fingerprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 17 | 18 | 30 | 31 |