[APP][6.0+] Fingerprint Quick Action -- Let your fingerprint sensor more useful

Search This thread

ztc1997

Senior Member
Feb 5, 2013
118
830
133
Perform quick actions via tap/swipe on fingerprint sensor.

Demo video by @Andromjb (App version 0.4.0) (Original post)

At the beginning, I just want to develop a simple app to sleep my device via tap fingerprint sensor. But for more users to be convenient, I decide to add more features.

Google Pixel has a feature that expand/collapse notification panel via swipe fingerprint sensor, However detect swipe on fingerprint sensor requires hardware support, so I thought of an alternative to clicking/swiping on the Fingerprint Sensor to toggle notification panel.

Fingerprint Quick Action use Accessibility to detect interface switching and perform some quick actions, so you need to turn on the application's accessibility features so that it can work properly.

Fingerprint Quick Action use DevicePolicyManager API to sleep your device by default, however, in many ROMs, it will result in Smart Lock and fingerprint to unlock doesn't work, by my test, it is only works properly on MIUI ROMs. So the app provide another way to sleep your device, that is simulating a power button press, this method requires Root Access.

When other apps using the fingerprint sensor, Fingerprint to Unlock will be temporarily disabled until you switch to another interface.

Get it


Translation
I can only provide English (may not be accurate) and Chinese, if you wish to correct the existing language errors or provide new language translations, commit to source code. If you are not familiar to github, you can also contact me via email to help me translate it.

Source code
https://github.com/ztc1997/Fingerprint2Sleep

Donate
The donation has been suspended, the project will soon offer in-app purchases, the unfinished donation will be returned, please support me with in-app purchases. And the donators that completed donation will receive a redemption code.

TODO
  • Add More Quick Actions
  • Double Tap Action
  • Per Fingerprint Action
  • Xposed Implementation (Done)

Identifying the direction of the slide and long press events requires hardware support that can not be done with the application alone.

Change Log
Code:
0.9.1:
[LIST]
[*]Update translations
[/LIST]

0.9.0 (Beta):
[LIST]
[*]Add auto retry blacklist
[*]Add force non-Xposed mode switch
[*]Add licences dialog
[*]Add matters need attention
[/LIST]

0.8.0:
[LIST]
[*]Try to fix the abnormal power consumption in Xposed mode
[*]Add quick action: Launch app or shortcut
[/LIST]

0.7.6:
[LIST]
[*]Fix for the garbled of Spanish
[*]Optimize the opening speed of the interface
[*]Optimize the memory use of the service
[/LIST]

0.7.4[17/11/2016]:
[LIST]
[*]Fix for Xposed mode does not work on many devices
[*]Shorten timeout method: Some fix
[/LIST]

0.7.3[15/11/2016]:
[LIST]
[*]Shorten timeout method: Fix for unable to restart scanning after screen on
[/LIST]

0.7.2[15/11/2016]:
[LIST]
[*]Shorten timeout method: Fix for crash on Nougat
[/LIST]

0.7.1[15/11/2016]:
[LIST]
[*]Fix for AccessibilityService state detection problem
[/LIST]

0.7.0[15/11/2016]:
[LIST]
[*]Add new screen off method: [I]Shorten time out[/I] (Does not cause the fingerprint to unlock does not work, do not need root access)
[/LIST]

0.6.0/0.6.1[13/11/2016]:
[LIST]
[*]Add Xposed implementation
[/LIST]

0.5.0[29/10/2016]:
[LIST]
[*]Add fast swipe event detection (The idea comes from [URL="https://github.com/gerges"][email protected][/URL] )
[*]Add more quick actions (Go back, Show recent apps, Show power menu, Toggle split screen, Expand quick settings)
[/LIST]

0.4.0[21/10/2016]:
[LIST]
[*]Auto restart scanning after interface switching
[*]Add action "Toggle Notifications Panel"
[*]Increases the speed of simulating press on power button
[/LIST]

0.3.1 [15/10/2016] :
[LIST]
[*]Run background service in another process (For less memory use)
[*]Only request the Device Admin if necessary
[*]Try to fix the problem which it can only take effect once on some devices
[/LIST]

0.3.0 [14/10/2016] :
[LIST]
[*]Change app name to Fingerprint Quick Action
[*]Users can select between 3 quick actions (Sleep, Home, Expend Notifications Panel)
[*]Try to fix open SettingActivity after screen on
[/LIST]
 

Attachments

  • 20161029203435.png
    20161029203435.png
    87.7 KB · Views: 68,298
  • 20161029203809.png
    20161029203809.png
    67.1 KB · Views: 67,425
Last edited:

Bucika

Senior Member
Aug 4, 2010
1,001
248
93
Sydney
Many devices have fingerprint sensor, and have the feature fingerprint to unlock or fingerprint to wake, so i developed this simple app to sleep your device via tap fingerprint sensor.

Fingerprint to Unlock use DevicePolicyManager API to sleep your device by default, however, in many ROMs, it will result in Smart Lock and fingerprint to unlock doesn't work, by my test, it is only works properly on MIUI ROMs. So the app provide another way to sleep your device, that is simulating a power button press, this method requires Root Access.

When other apps using the fingerprint sensor, Fingerprint to Unlock will be temporarily disabled until next time you switch on screen.

Source: https://github.com/ztc1997/Fingerprint2Sleep
Download the precompiled apk in Attachments.

If you like this app, consider buying me a cup of coffee.

Great app. I am using it on my 6P.
However it has a few problems..
1. It dose not work 2 times in a row. (Lock & Unlock)
2. When I unlock the phone it opens the app - every time.

Thanks for the app!
 
  • Like
Reactions: dzendeh and mishko

JRJ442

Senior Member
Jan 18, 2011
3,457
2,345
253
Salisbury, Md
Love the app! I had my phone returning to my last opened app every time I locked/unlocked as well. I made a little Tasker profile to return home everytime the display state is switched to off. Works pretty well on my 6p running 6.0.1. As always your mileage may vary. Move to your Tasker/profiles folder on your SD and import as you normally would. Here's the link https://www.dropbox.com/s/1r4swzasb5ixe1s/FingerPrint_Lock.prf.xml?dl=0
 
  • Like
Reactions: Bucika

urim225

Senior Member
Oct 23, 2011
485
109
0
Kercova
Many devices have fingerprint sensor, and have the feature fingerprint to unlock or fingerprint to wake, so i developed this simple app to sleep your device via tap fingerprint sensor.

Fingerprint to Unlock use DevicePolicyManager API to sleep your device by default, however, in many ROMs, it will result in Smart Lock and fingerprint to unlock doesn't work, by my test, it is only works properly on MIUI ROMs. So the app provide another way to sleep your device, that is simulating a power button press, this method requires Root Access.

When other apps using the fingerprint sensor, Fingerprint to Unlock will be temporarily disabled until next time you switch on screen.

Source: https://github.com/ztc1997/Fingerprint2Sleep
Download the precompiled apk in Attachments.

If you like this app, consider buying me a cup of coffee.
Please can you please fix the problem when you unlock and it takes you to the last app. I know there might be a workaround but it would be better to use the app as it is. Thank you :)
 

ztc1997

Senior Member
Feb 5, 2013
118
830
133
Please can you please fix the problem when you unlock and it takes you to the last app. I know there might be a workaround but it would be better to use the app as it is. Thank you :)

Great app. I am using it on my 6P.
However it has a few problems..
1. It dose not work 2 times in a row. (Lock & Unlock)
2. When I unlock the phone it opens the app - every time.

Thanks for the app!

The fingerprint sensor will cancel scanning every time the screen is turned off, and reopen it needs to open an activity, so Fingerprint to Unlock needs to open an activity every time the screen is turned on.
 
  • Like
Reactions: xSilas43

urim225

Senior Member
Oct 23, 2011
485
109
0
Kercova
The fingerprint sensor will cancel scanning every time the screen is turned off, and reopen it needs to open an activity, so Fingerprint to Unlock needs to open an activity every time the screen is turned on.
Could it be possible to add an option to open an app of choosing for example nova and in that way it will go home after every unlock
 

ztc1997

Senior Member
Feb 5, 2013
118
830
133
Could it be possible to add an option to open an app of choosing for example nova and in that way it will go home after every unlock

The Activity is opened after screen on will finish immediately. This problem may cause by you didn't close main interface.
 

halfez

Senior Member
Jan 13, 2010
117
9
0
Great app. I am using it on my 6P.
However it has a few problems..
1. It dose not work 2 times in a row. (Lock & Unlock)
2. When I unlock the phone it opens the app - every time.

Thanks for the app!

Having the same issue.

Nexus 6p stock aosp 6.0.1
 

Top Liked Posts

  • There are no posts matching your filters.
  • 479
    Perform quick actions via tap/swipe on fingerprint sensor.

    Demo video by @Andromjb (App version 0.4.0) (Original post)

    At the beginning, I just want to develop a simple app to sleep my device via tap fingerprint sensor. But for more users to be convenient, I decide to add more features.

    Google Pixel has a feature that expand/collapse notification panel via swipe fingerprint sensor, However detect swipe on fingerprint sensor requires hardware support, so I thought of an alternative to clicking/swiping on the Fingerprint Sensor to toggle notification panel.

    Fingerprint Quick Action use Accessibility to detect interface switching and perform some quick actions, so you need to turn on the application's accessibility features so that it can work properly.

    Fingerprint Quick Action use DevicePolicyManager API to sleep your device by default, however, in many ROMs, it will result in Smart Lock and fingerprint to unlock doesn't work, by my test, it is only works properly on MIUI ROMs. So the app provide another way to sleep your device, that is simulating a power button press, this method requires Root Access.

    When other apps using the fingerprint sensor, Fingerprint to Unlock will be temporarily disabled until you switch to another interface.

    Get it


    Translation
    I can only provide English (may not be accurate) and Chinese, if you wish to correct the existing language errors or provide new language translations, commit to source code. If you are not familiar to github, you can also contact me via email to help me translate it.

    Source code
    https://github.com/ztc1997/Fingerprint2Sleep

    Donate
    The donation has been suspended, the project will soon offer in-app purchases, the unfinished donation will be returned, please support me with in-app purchases. And the donators that completed donation will receive a redemption code.

    TODO
    • Add More Quick Actions
    • Double Tap Action
    • Per Fingerprint Action
    • Xposed Implementation (Done)

    Identifying the direction of the slide and long press events requires hardware support that can not be done with the application alone.

    Change Log
    Code:
    0.9.1:
    [LIST]
    [*]Update translations
    [/LIST]
    
    0.9.0 (Beta):
    [LIST]
    [*]Add auto retry blacklist
    [*]Add force non-Xposed mode switch
    [*]Add licences dialog
    [*]Add matters need attention
    [/LIST]
    
    0.8.0:
    [LIST]
    [*]Try to fix the abnormal power consumption in Xposed mode
    [*]Add quick action: Launch app or shortcut
    [/LIST]
    
    0.7.6:
    [LIST]
    [*]Fix for the garbled of Spanish
    [*]Optimize the opening speed of the interface
    [*]Optimize the memory use of the service
    [/LIST]
    
    0.7.4[17/11/2016]:
    [LIST]
    [*]Fix for Xposed mode does not work on many devices
    [*]Shorten timeout method: Some fix
    [/LIST]
    
    0.7.3[15/11/2016]:
    [LIST]
    [*]Shorten timeout method: Fix for unable to restart scanning after screen on
    [/LIST]
    
    0.7.2[15/11/2016]:
    [LIST]
    [*]Shorten timeout method: Fix for crash on Nougat
    [/LIST]
    
    0.7.1[15/11/2016]:
    [LIST]
    [*]Fix for AccessibilityService state detection problem
    [/LIST]
    
    0.7.0[15/11/2016]:
    [LIST]
    [*]Add new screen off method: [I]Shorten time out[/I] (Does not cause the fingerprint to unlock does not work, do not need root access)
    [/LIST]
    
    0.6.0/0.6.1[13/11/2016]:
    [LIST]
    [*]Add Xposed implementation
    [/LIST]
    
    0.5.0[29/10/2016]:
    [LIST]
    [*]Add fast swipe event detection (The idea comes from [URL="https://github.com/gerges"][email protected][/URL] )
    [*]Add more quick actions (Go back, Show recent apps, Show power menu, Toggle split screen, Expand quick settings)
    [/LIST]
    
    0.4.0[21/10/2016]:
    [LIST]
    [*]Auto restart scanning after interface switching
    [*]Add action "Toggle Notifications Panel"
    [*]Increases the speed of simulating press on power button
    [/LIST]
    
    0.3.1 [15/10/2016] :
    [LIST]
    [*]Run background service in another process (For less memory use)
    [*]Only request the Device Admin if necessary
    [*]Try to fix the problem which it can only take effect once on some devices
    [/LIST]
    
    0.3.0 [14/10/2016] :
    [LIST]
    [*]Change app name to Fingerprint Quick Action
    [*]Users can select between 3 quick actions (Sleep, Home, Expend Notifications Panel)
    [*]Try to fix open SettingActivity after screen on
    [/LIST]
    25
    Updated to 0.5.0.
    • Add fast swipe event detection (The idea comes from [email protected] )
    • Add more quick actions (Go back, Show recent apps, Show power menu, Toggle split screen, Expand quick settings)
    I am now working on Xposed implementation, the next update may take a long time.
    20
    Re-open source

    I finally decided to open source my project, hope that more people can learn from it, and hope that people who have the ability to help me improve it.

    Source code: https://github.com/ztc1997/Fingerprint2Sleep
    12
    We will soon see this application in the play store. I applied the developer account for a long time but has not been successful. At present, I temporarily use my friend's account to release.
    9
    I found something about the Google Dialer problems.
    Read here: https://code.google.com/p/android/i... Priority Owner Summary Stars Reporter Opened

    So its not a problem with your App, @ztc1997

    OK, I see this. I will try to make some of the features no longer rely on accessibility, and make turning on accessibility as an optional feature
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone