FORUMS
Remove All Ads from XDA

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

95 posts
Thanks Meter: 771
 
Post Reply Email Thread
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
Get it on Google Play

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:
  • Update translations
0.9.0 (Beta):
  • Add auto retry blacklist
  • Add force non-Xposed mode switch
  • Add licences dialog
  • Add matters need attention
0.8.0:
  • Try to fix the abnormal power consumption in Xposed mode
  • Add quick action: Launch app or shortcut
0.7.6:
  • Fix for the garbled of Spanish
  • Optimize the opening speed of the interface
  • Optimize the memory use of the service
0.7.4[17/11/2016]:
  • Fix for Xposed mode does not work on many devices
  • Shorten timeout method: Some fix
0.7.3[15/11/2016]:
  • Shorten timeout method: Fix for unable to restart scanning after screen on
0.7.2[15/11/2016]:
  • Shorten timeout method: Fix for crash on Nougat
0.7.1[15/11/2016]:
  • Fix for AccessibilityService state detection problem
0.7.0[15/11/2016]:
  • Add new screen off method: Shorten time out (Does not cause the fingerprint to unlock does not work, do not need root access)
0.6.0/0.6.1[13/11/2016]:
  • Add Xposed implementation
0.5.0[29/10/2016]:
  • Add fast swipe event detection (The idea comes from gerges@github )
  • Add more quick actions (Go back, Show recent apps, Show power menu, Toggle split screen, Expand quick settings)
0.4.0[21/10/2016]:
  • Auto restart scanning after interface switching
  • Add action "Toggle Notifications Panel"
  • Increases the speed of simulating press on power button
0.3.1 [15/10/2016] :
  • 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
0.3.0 [14/10/2016] :
  • 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
Attached Thumbnails
Click image for larger version

Name:	20161029203435.png
Views:	57394
Size:	87.7 KB
ID:	3919435   Click image for larger version

Name:	20161029203809.png
Views:	56646
Size:	67.1 KB
ID:	3919439  
The Following 470 Users Say Thank You to ztc1997 For This Useful Post: [ View ] Gift ztc1997 Ad-Free
 
 
22nd September 2016, 10:19 AM |#2  
Black_Eyes's Avatar
Senior Member
Flag Lahore
Thanks Meter: 949
 
More
Great
The Following 3 Users Say Thank You to Black_Eyes For This Useful Post: [ View ] Gift Black_Eyes Ad-Free
22nd September 2016, 10:47 AM |#3  
Junior Member
Thanks Meter: 1
 
More
Seems good
The Following User Says Thank You to w_dmail For This Useful Post: [ View ] Gift w_dmail Ad-Free
26th September 2016, 12:11 PM |#4  
Bucika's Avatar
Senior Member
Flag Sydney
Thanks Meter: 201
 
More
Quote:
Originally Posted by ztc1997

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!
The Following 2 Users Say Thank You to Bucika For This Useful Post: [ View ] Gift Bucika Ad-Free
26th September 2016, 12:13 PM |#5  
hackarchive's Avatar
Senior Member
Flag Qingdao
Thanks Meter: 1,193
 
Donate to Me
More
Nice to see. Can you do fingerprint to go home?

Sent from my SM-N930F using XDA-Developers mobile app
26th September 2016, 12:38 PM |#6  
SVR's Avatar
Senior Member
Flag 11.2500° N, 75.7700° E
Thanks Meter: 228
 
More
Quote:
Originally Posted by ztc1997

[/URL].

Good attempt. But in my device, It always asks for a pattern while unlocking with finger print because the app uses device admin rights to work.
The Following 3 Users Say Thank You to SVR For This Useful Post: [ View ] Gift SVR Ad-Free
26th September 2016, 02:04 PM |#7  
manup456's Avatar
Recognized Themer
Flag Danbury
Thanks Meter: 1,118
 
Donate to Me
More
You guys need to use the smartlock work around option but root is needed for that.

Great work on this app works like its supposed to.

Sent from my Nexus 6P using Tapatalk
26th September 2016, 06:04 PM |#8  
Junior Member
Thanks Meter: 2
 
More
Cool
Cool
27th September 2016, 02:12 AM |#9  
Robdyx's Avatar
Senior Member
Flag Llangréu
Thanks Meter: 62
 
More
Well, FINALLY an app that does this. Subscribing for future updates!
27th September 2016, 04:25 PM |#10  
hackarchive's Avatar
Senior Member
Flag Qingdao
Thanks Meter: 1,193
 
Donate to Me
More
Quote:
Originally Posted by hackarchive

Nice to see. Can you do fingerprint to go home?

Sent from my SM-N930F using XDA-Developers mobile app

@ztc1997 any opinions on this feature?

Sent from my SM-N930F using XDA-Developers mobile app
The Following User Says Thank You to hackarchive For This Useful Post: [ View ] Gift hackarchive Ad-Free
27th September 2016, 09:00 PM |#11  
JRJ442's Avatar
Senior Member
Flag Salisbury, Md
Thanks Meter: 2,116
 
More
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/1r4swzasb5...k.prf.xml?dl=0
The Following User Says Thank You to JRJ442 For This Useful Post: [ View ] Gift JRJ442 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes