I have wrapped the Samsung Fingerprint SDK library. This allows you to use the fingerprint sensor built into the Samsung Galaxy S5 and S6 (and no doubt more to come). I have tested on the S6; I don't have an S5 but I believe it will work the same...
Documentation
SPass
Author: BarxDroid
Version: 1.10
Change log
V1.0
Initial Release
V1.10
- Added Completed() Event
- Added STATUS_BUTTON_PRESSED Field
- Added STATUS_OPERATION_DENIED Field
- Added DialogButton Method
- Added ChangeStandbyString Method
- Added GetGuideForPoorQuality
- Added IsPasswrdEnabled Property
Installation
There are a couple of steps here as it is a wrapper for the existing SDK. I have no idea if the sdk files can be packaged within the wrapper .jar. Maybe someone can let me know if they can.
Step 1: Download the attached SPass.zip, extract the files into your Additional Libraries folder.
Step 2: Download the SDK files from Here (V1.1.3 at time of writing) and extract the lib files ('sdk-vx.x.x.jar' and 'pass-vx.x.x.jar' to you additional libraries folder.
Step 3: Rename the files as follows
sdk-vx.x.x.jar -> spass-sdk.jar
pass-vx.x.x.jar -> spass-lib.jar
Done, use it now like any other lib....
Files
Spass.apk - Example app showing a basic usage.
SPass.Zip - The Wrapper library files.
SPass Project.zip - The sample project that creates the Spass.apk sample
Hope this library is of use to some people.....
Documentation
SPass
Author: BarxDroid
Version: 1.10
- SPass
Permissions:- com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY
Events:- Completed ()
Called when the request of identify is completed after finger is detached on the sensor.
- Finished (StatusCode As Int, Message As String)
Called once the Identy operation has finished - Ready ()
Called once the device is ready to detect a fingerprint - Registered ()
Called when a new fingerprint has been registered - Started ()
Called when the user touches the fingerprint sensor during an Identify operation
Fields:- STATUS_AUTHENTICATION_FAILED As Int
- STATUS_AUTHENTICATION_PASSWORD_SUCCESS As Int
- STATUS_AUTHENTICATION_SUCCESS As Int
- STATUS_BUTTON_PRESSED As Int
- STATUS_OPERATION_DENIED As Int
- STATUS_QUALITY_FAILED As Int
- STATUS_SENSOR_FAILED As Int
- STATUS_TIMEOUT_FAILED As Int
- STATUS_USER_CANCELLED As Int
- STATUS_USER_CANCELLED_BY_TOUCH_OUTSIDE As Int
Methods:- CancelIdentify
Cancels an existing identification operation - HasRegisteredFinger As Boolean
Checks whether there are any registered fingerprints on the device - Initialize (Eventname As String)
Initializes the object.
Eventname - the eventname used to call events. - RegisterFinger
Registers a fingerpring on the device through the Enroll screen of the Setting menu. - StartIdentify (Dialog As Boolean, EnablePassword As Boolean)
Requests an Identification Operation to recognize a fingerprint.
Dialog - Sets whether a dialog should be shown - SupportsSpass As Boolean
Returns whether a compatible fingerprint device is detected - setDialogTitle (Title As String, Color As Int)
Adds a title in the user interface before requesting fingerprint recognition - DialogButton (Text As String)
Changes the purpose of the UI Password button, so you can use it yourself.
Use this method to set the text of the button.
Will return STATUS_BUTTON_PRESSED in the _Finished Event - ChangeStandbyString (Text As String)
Changes the Standby String in the interface
Properties:- CanceledOnTouchOutside As Boolean [write only]
Determines whether the UI is dismissed or not when touching background elements - DialogBgTransparency As Int [write only]
Sets the transparency og the background elements before requesting fingerprint recognition - DialogIcon As String [write only]
Adds an Icon in the bottom left portion of the UI before requesting fingerprint recognition
Icon - a String representing a file stored in /res/drawable/...
Note: No extension is needed and the file must be read only - IdentifiedFingerprintIndex As Int [read only]
Gets the fingerprint index of the identified fingerprint - IntendedFingerprintIndex() As Integer [write only]
Specifies a fingerprint index for identification before requesting fingerprint recognition - RegisteredFingerprints As Map [read only]
Obtain a list of registered fingerprint indexes and names in the settings menu - Is PasswordEnabled As Boolean [read only]
Checks if the device supports backup password - GetGuideForPoorQuality As String [read only]
Obtains the string of guide when recognition is failed due to the poor quality.
NOTE: The _Finished event must have returned 'STATUS_QUALITY_FAILED'
Change log
V1.0
Initial Release
V1.10
- Added Completed() Event
- Added STATUS_BUTTON_PRESSED Field
- Added STATUS_OPERATION_DENIED Field
- Added DialogButton Method
- Added ChangeStandbyString Method
- Added GetGuideForPoorQuality
- Added IsPasswrdEnabled Property
Installation
There are a couple of steps here as it is a wrapper for the existing SDK. I have no idea if the sdk files can be packaged within the wrapper .jar. Maybe someone can let me know if they can.
Step 1: Download the attached SPass.zip, extract the files into your Additional Libraries folder.
Step 2: Download the SDK files from Here (V1.1.3 at time of writing) and extract the lib files ('sdk-vx.x.x.jar' and 'pass-vx.x.x.jar' to you additional libraries folder.
Step 3: Rename the files as follows
sdk-vx.x.x.jar -> spass-sdk.jar
pass-vx.x.x.jar -> spass-lib.jar
Done, use it now like any other lib....
Files
Spass.apk - Example app showing a basic usage.
SPass.Zip - The Wrapper library files.
SPass Project.zip - The sample project that creates the Spass.apk sample
Hope this library is of use to some people.....
Attachments
Last edited: