There apparently isn’t any framework for apps to use the system fingerprint. This is quite handy (everyone knows the privacy concern, but let leave that to users to decide) feature for multiple different apps. One big one being for me personally BitSailor, where this has been achieved by doing custom hacking. I would like to see standard framework for apps to use the fingerprint used to unlock the system. Details about Bitsailor: BitSailor support thread - #185 by Rikudou_Sennin
Maybe it would be more useful/generic to have an API for system unlock.
This way people with fingerprint activated could use that and those without would use their security code without the application handling the various use cases.
On the principle however, I do agree that it would be very useful for some applications (password managers being the obvious case) to be able force an additional authentication before getting access to the content.
Obviously, it would be necessary to be able to link that to data access to prevent access through su-devel (the password database in this case).
There is. Sailfish Secrets.
Includes most of the other things you describe.
Also, AuthenticationPlugin has an interface for Fingerprints:
Sailfish::Secrets::AuthenticationPlugin::FingerprintAuthentication
Can that be used to pass the system fingerprint to the app?
Not an expert at all on Secrets, but if it did that would be a huge security gap would it not?
Well for that I’m not person to answer. I just know that it is nice to be able to use the system fingerprint inside native apps, like Bitsailor. For me it doesn’t matter (not enough knowledge) what is the standalone framework way to implement it, as long there would be some
I don’t know BitWarden or BitSailor.
But I imagine the workflow would be something like this:
- Using Secrets API, generate a new secret/key, store it (in Sailfish Secrets).
- Configure BitSailor to accept that secret to unlock whatever needs unlocking.
- Using Secrets API, retrieve the secret using a request with
FingerprintAuthentication
The user should then be prompted to scan their finger by the system, and if successful, BitSailor gets the secret/key and can unlock whatever.
That’s exactly what I had in mind.
The application does not get access to the fingerprint but rather to the fact that system successfully identified the fingerprint.
From my point of view, it seems that everything is there already (now I need to dig deeper into using it).
I think the best choice for store applications would be Sailfish::Secrets::AuthenticationPlugin::SystemDefaultAuthentication as user would probably not want a specific authentication method (privacy concerns about fingerprint already raised, for instance).
Ah now I understand what @nephros tried to say… Yes, something like that, I didn’t meant that app would need to get the actual fingerprint, using Secrets API sounds logical
Well, what you’re describing is rather a workaround - it’s tied to having actual secrets. Sure, you could store a dummy value and fetch it using the fingerprint auth, but that’s not that great of a design.
Far from having a dedicated fingerprint api.
I was not able to find any kind of documentation or other resource that has managed to do so.
Got any pointers for me? I am trying to see if I can get fingerprint support for ownKeepass to work
The report my qwen session resulted in after doing some attempts with the LLM:
Summary
Jolla support ticket — Fingerprint daemon (sailfish-fpd) cannot complete any fingerprint match; lockscreen fingerprint works
Summary
On a Jolla phone (SFOS 5.2, aarch64, Goodix fingerprint sensor), the system
fingerprint daemon sailfish-fpd (D-Bus service org.sailfishos.fingerprint1)
cannot complete a single fingerprint match, so no third-party application
can use fingerprint authentication (the standard org.nemomobile.devicelock
API always aborts or hangs). Meanwhile the lockscreen fingerprint unlock works
reliably, proving the sensor, driver, HAL and enrolled templates are healthy.
The fault is isolated to the sailfish-fpd daemon’s sensor bridge.
Device
- Model: Jolla (2026), adaptation
jolla-jp2601 - OS: Sailfish OS 5.2.0.20 (aarch64)
- Sensor: Goodix (
/dev/goodix_fp, driver present, Android HAL
android.hardware.biometrics.fingerprint-service.gf-caprunning) - Fingerprint enrolled: 1 finger (Settings → Security → Fingerprint)
Packages involved (as installed)
sailfish-fpd-1.6.2(daemon; runs/usr/bin/sailfish-fpd+/usr/libexec/sailfish-fpd/fpslave)sailfish-devicelock-fpd-1.2.0-1.3.14.jolla(devicelock daemonencsfa-fpd)sailfish-devicelock-libs-1.2.0-1.3.14.jollanemo-qml-plugin-devicelock-0.4.8-1.14.1.jollajolla-devicelock-plugin-encsfa-0.3.4-1.9.5.jolla(fingerprint plugin for the devicelock daemon)fprint/libfprint-era N/A — this device uses the Goodix HAL stack
What works
- Enrolling a fingerprint (Settings) — works.
- Lockscreen fingerprint unlock — works reliably (every boot).
sailfish-fpdruns, registers D-Bus serviceorg.sailfishos.fingerprint1,
reportshasSensor=true,GetAll→["finger1"].
What fails
Any fingerprint match initiated through the daemon, either directly or via the
devicelock daemon (which is what all third-party apps use).
Repro A — direct D-Bus (as root, no app involved)
$ dbus-send --system --print-reply --dest=org.sailfishos.fingerprint1 \
/org/sailfishos/fingerprint1 org.sailfishos.fingerprint1.SetUser uint32:1000
→ int32 0 (OK)
$ dbus-send ... org.sailfishos.fingerprint1.GetState
→ "FPSTATE_INACTIVE" ← daemon not active right after SetUser
$ dbus-send ... org.sailfishos.fingerprint1.Verify
→ int32 3 ← rejected
(state remains FPSTATE_INACTIVE; finger on sensor: no reaction)
Observed state-machine behaviour over repeated tests:
FPSTATE_INACTIVE ↔ FPSTATE_IDLE, and once stuck in FPSTATE_IDENTIFYING
it never recovers (Abort has no effect; only a daemon restart clears it).
Repro B — via devicelock daemon (third-party app path)
Any app using the standard org.nemomobile.devicelock API
(authorization.requestChallenge() → authenticator.authenticate(challenge, methods),
exactly the flow Jolla’s own Settings app uses) produces:
authenticationStarted (feedback=1) ← session starts
… no sensor activity, no signals …
authenticator.aborted ← or the session simply never ends
While this happens org.sailfishos.fingerprint1.GetState = FPSTATE_IDENTIFYING,
i.e. the daemon believes a match is in progress, but the sensor does not react
to the enrolled finger at all.
Logs
journalctl: during match attempts there are no fingerprint/sensor log
lines at all fromsailfish-fpd/fpslave(log-level 4).- devicelock daemon error (repeated):
encsfa-fpd: Failed to rename temp file while saving settings. 2 No such file or directory dmesg: binder transaction failures around the same time:
binder: <pid> cannot find target node/
binder: <pid> transaction call to 0:0 failed … code 1599098439 size 0-0
Why we believe this is a daemon/OS bug, not a sensor or app bug
- Lockscreen unlock uses the sensor successfully → sensor, Goodix driver,
HAL service and enrolled templates are all functional. - The daemon’s own state machine accepts the request (
Verify/Identify
return success in some states) but no sensor I/O ever occurs. - The D-Bus policy (
/etc/dbus-1/system.d/org.sailfishos.fingerprint1.conf)
reservesSetUserto root, so apps depend fully on the daemon/devicelock
daemon to drive the sensor — and that path is dead. lddof/usr/bin/sailfish-fpdshows no fingerprint-HAL client library
linked; the HAL bridge appears to be broken/absent in this build.
Questions for Jolla
- Is
sailfish-fpdsupposed to bridge to the Goodix Android fingerprint HAL
on this adaptation, and is that bridge missing/broken in 5.2.0.20? - Is there a known issue / fixed package for
sailfish-fpdonjolla-jp2601? - What is the supported way for third-party apps to perform fingerprint
authentication on this device currently?
Request
A fix or updated package for the fingerprint daemon (or a supported
workaround) so that app-level fingerprint authentication functions, or a
confirmation that app-level fingerprint is not supported on this adaptation.
The Bitwarden app uses the fingerprint sensor.
Can’t remember the exact details, it’s been years since I added it, but essentially I created a custom polkit permission file and then I ask polkit through dbus to grant it.
Would be amazing, if Jolla made dedicated fingerprint API Fingerprint framework for developers but to my knowledge there isn’t one officially currently.
If you intend to propose a PR to ownkeepass for FP support, please add a way for users to reliably turn it off.
It is a feature that makes a password store less secure and users should have the option to not allow that.
That being said, Sailfish Secrets has a mode where FP is required to unlock the stored secret. Maybe that can be used in some way.
This would indeed be interesting trial to follow. I assume this would also be allowed in Harbour?
@filip.k I believe this thread could be fully merged in to the Fingerprint framework for developers thread
Ah thanks. I knew we had that conversation before but didn’t find it.
Yep, and I think what you wrote there already could work as starting ground for devs to try!
although it doesn’t work flawlessly. I have to re-enable it after reboot.