Hello. I have worked in a similar project. I can fit this code for you requirement.
I have the code in a git repository but i need to check for the fingerprint device. Currently i have the otg cable and can begin to work when close the proposal.
I have a lot experience in similar projects with java.