FORUMS
Remove All Ads from XDA

[GUIDE] Enable Fingerprint Selfie in Redmi 3S Prime

630 posts
Thanks Meter: 1,313
 
By Devil7DK, Senior Member on 22nd September 2017, 08:08 PM
Post Reply Email Thread
Here is a tweak for enabling "Fingerprint Selfie".

Warning :
This guide includes some steps which will modify system behavior. I'm not responsible for any consequences. Do it in your own risk. Take Nandroid Backup Before trying this.

Prerequisites :
1. Redmi 3S Prime with unlocked bootloader (You can also use Redmi 3S if it has fingerprint sensor )
2. Rooted ROM
3. Good File Explorer to Browse Root Files. I recommend ES File Explorer.
4. Good Text Editor Which can edit root files. Try QuickEdit for this.

How-to :
1. Goto /system/usr/keylayout folder
2. Find a file called Generic.kl
3. Open Generic.kl with text editor (QuickEdit)
4. Search for key 353
5. If you find any line starts with key 353, comment it with # i.e. add # symbol before that line
6. Add a new line with following
Code:
key 353 CAMERA
Note: You can add this line anywhere in that file but its advised to follow the file structure. i.e. key numbers is in ascending order... just follow it add 353 after 352.
7. Save the file and Reboot.
8. Enjoy Fingerprint Selfie...

Explanation :
Some users may experienced unwanted clicks or touches in screen when they touch fingerprint sensor while the phone is unlocked. That was caused by "key 353 DPAD_CENTER" line in Generic.kl. Here we used that for assigning that key for CAMERA (which will trigger the camera and take picture).

WhatsApp Group : https://chat.whatsapp.com/EnJsSukWafaLuD9cMg6NYn
Telegram : Devil7DK

Note : I'm tested this in Redmi 3S Prime 3GB with Lineage ROM and its working perfectly without any problem.
The Following 7 Users Say Thank You to Devil7DK For This Useful Post: [ View ] Gift Devil7DK Ad-Free
 
 
23rd September 2017, 02:59 AM |#2  
Devil7DK's Avatar
OP Senior Member
Flag Coimbatore
Thanks Meter: 1,313
 
More
Troubleshooting :
For those who are reporting that This Tweak is Not Working. Try this....

1. Install KeyEvent Display App
2. Open it & Give Root Permission
3. Then Touch Fingerprint Sensor. You should see something like this,
KeyEventDisplay when Touching Fingerprint Sensor

Code:
^*KeyDown:******action=0 code=27 repeat=0 meta=0 scancode=353 mFlags=8 label='' chars='null' number='' 
^*KeyUp:********action=1 code=27 repeat=0 meta=0 scancode=353 mFlags=8 label='' chars='null' number=''
4. If it shows something like this when touching fingerprint sensor... it means your fingerprint sensor is working as button. So, Make sure the scancode is 353.
5. If there is something Else i.e. any other number... use that number instead of 353.

If you cant see anything when touching the fingerprint sensor. Then it means this won't work at all for you.
The Following User Says Thank You to Devil7DK For This Useful Post: [ View ] Gift Devil7DK Ad-Free
23rd September 2017, 02:59 AM |#3  
Devil7DK's Avatar
OP Senior Member
Flag Coimbatore
Thanks Meter: 1,313
 
More
Troubleshooting : Part 2
Some ROM Dev's has disabled FP Button on their ROM... Like VIPER, AEX, etc.... For those who can't get this working on their ROM. Here is the fix :

Run the following command in Terminal :
Code:
grep -rn '/system/usr/keylayout' -e '353'
(If your keycode for fp is different use that code instead of 353)

This command will list out the files that has defined FP key. All you need to do with those files is
  • Make sure that no files has defined FP key more than 1 time. If any files has FP key defined more than one time Delete all except one.
  • The line should'nt start with #

Then if there is any .kl file that named as something like uinput-fpc.kl, Delete it...
23rd September 2017, 03:48 AM |#4  
Junior Member
Flag Hassan
Thanks Meter: 9
 
More
Thanks
23rd September 2017, 04:28 AM |#5  
aragon12's Avatar
Senior Member
Thanks Meter: 638
 
More
not working on official AEX 4.6
23rd September 2017, 08:02 AM |#6  
Devil7DK's Avatar
OP Senior Member
Flag Coimbatore
Thanks Meter: 1,313
 
More
Quote:
Originally Posted by aragon12

not working on official AEX 4.6

Upload Generic.kl file changed by you...
23rd September 2017, 08:06 AM |#7  
aragon12's Avatar
Senior Member
Thanks Meter: 638
 
More
Quote:
Originally Posted by dineshthangavel47

Upload Generic.kl file changed by you...

post your telegram id.. let's not spam here
23rd September 2017, 08:12 AM |#8  
aragon12's Avatar
Senior Member
Thanks Meter: 638
 
More
Quote:
Originally Posted by dineshthangavel47

Upload Generic.kl file changed by you...

here it is:
Attached Files
File Type: zip Generic.kl_AEX_4.6.zip - [Click for QR Code] (3.3 KB, 108 views)
23rd September 2017, 08:35 AM |#9  
Devil7DK's Avatar
OP Senior Member
Flag Coimbatore
Thanks Meter: 1,313
 
More
Quote:
Originally Posted by aragon12

here it is:

See the second post. Try that. And Give me Screenshot.
25th September 2017, 10:57 AM |#10  
Senior Member
Thanks Meter: 92
 
More
What to do now next. @dineshthangavel47
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170925-152720.png
Views:	308
Size:	202.0 KB
ID:	4282796  
25th September 2017, 12:32 PM |#11  
Hemansh's Avatar
Senior Member
Thanks Meter: 84
 
More
Thanks
Post Reply Subscribe to Thread

Tags
fingerprint, redmi 3s, selfie

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

Advanced Search
Display Modes