[MOD][COS12.1] Restored Fingerprint Touch Functionality

simoneser

Senior Member
Nov 21, 2007
204
40
28
Do you think is possible to add other key mappings?

Like for example use the fingerprint touch as DPAD, or to swipe down for for expand notifications?

BTW, I applied this morning this mod on CM12.1 and got 3 reboots (none before of this zip). Now I'll try with the dedicated CM12.1 zip
 

MrColdbird

Senior Member
Nov 25, 2011
1,178
2,195
0
www.black-seraph.com
Yes, you can adjust the key mapping in the General.kl file.

158 is the tap keycode, 249 is the right swipe keycode and 254 is the left swipe keycode.

744 is the finger detect keycode, but I haven't mapped that one because it interferes with the other 3.

Feel free to adjust them as you wish.
Keep in mind you need to reboot the device before the new mappings get activated though.
 
  • Like
Reactions: Kaiser_93

simoneser

Senior Member
Nov 21, 2007
204
40
28
Yes, you can adjust the key mapping in the General.kl file.

158 is the tap keycode, 249 is the right swipe keycode and 254 is the left swipe keycode.

744 is the finger detect keycode, but I haven't mapped that one because it interferes with the other 3.

Feel free to adjust them as you wish.
Keep in mind you need to reboot the device before the new mappings get activated though.
Thank you!
Do you think it will be possible to add swipe up and down? :)
 

MrColdbird

Senior Member
Nov 25, 2011
1,178
2,195
0
www.black-seraph.com
Thank you!
Do you think it will be possible to add swipe up and down? :)
Given that this mod is done on a closed source kernel I'm sorry to say this isn't possible (or at least very hard to pull off).

The fpc1020 driver is open source though which means the functionality can be recreated if enough time and work is invested.

That's what is currently going on with the Chroma kernel, but it will take some time.

I did send a message to Cyanogen Inc asking for an older more complete copy of the fpc1020 driver, but I think it's unlikely for us to actually get a reply from them... Which means the most likely solution is for us to implement similar functionality ourselves (most likely based on the OP2 variant of the driver).
 

simoneser

Senior Member
Nov 21, 2007
204
40
28
Thank you, hope to see that mod one day. For the moment I'll stick with this one, working perfectly on Cm12.1 and no more reboots!

Inviato dal mio Z1 utilizzando Tapatalk
 
  • Like
Reactions: MrColdbird

tndb

Senior Member
Jul 7, 2008
288
164
0
Got a lot of random reboots since installing it yesterday..
Made an undo zip so you can try if this was causing your reboots. I´ve never had a single reboot until I flashed this mod (sure ive barely had the phone for a week but still 3 reboots from a single day since I installed the mod so I will keep an eye on it from now on without the mod)

https://mega.nz/#!0g4jmDZC!lVL8QeebJVuAiVVK7-8CTsnNBY1oeVvJKNA_e_4wwTY

This still has the modified "Generic.kl" file in it but thats just a keymap file and will surely not cause any issues but the boot.img file is untampered from the YOG4PAS3OH firmware
 

tndb

Senior Member
Jul 7, 2008
288
164
0
@lurchi17 No its basicly just to "undo" the mod incase you have issues with random reboot so please try and give feedback if that stops you from getting random reboots. Its a nice mod from author so it would be awesome to find out the issue (if any)
 

kamall1990

Member
Apr 25, 2010
17
0
0
Hello

That's what I was looking for.

For some time am looking also for fix to use wired headphones with 3 buttons (Xiaomi Piston) because they work only 2 (vol up and center)
I found similar to the fix but to CM11

cm11-pistons-mikey-fix.zip

apq8064-tabla-snd-card_Button_Jack.kl
258 WAKE key VOLUME_DOWN
256 WAKE key HEADSETHOOK
257 WAKE key VOLUME_UP


Can I add these lines to this solution?
Add them to Generic.kl, or create apq8064-tabla-snd-card_Button_Jack.kl and if it will work?
 

MrColdbird

Senior Member
Nov 25, 2011
1,178
2,195
0
www.black-seraph.com
Hello

That's what I was looking for.

For some time am looking also for fix to use wired headphones with 3 buttons (Xiaomi Piston) because they work only 2 (vol up and center)
I found similar to the fix but to CM11

cm11-pistons-mikey-fix.zip

apq8064-tabla-snd-card_Button_Jack.kl
258 WAKE key VOLUME_DOWN
256 WAKE key HEADSETHOOK
257 WAKE key VOLUME_UP


Can I add these lines to this solution?
Add them to Generic.kl, or create apq8064-tabla-snd-card_Button_Jack.kl and if it will work?
Yes, you just add any extra mappings you need.
 

jackgar

Senior Member
Mar 7, 2012
109
20
0
To be sure

So, just to be sure, Cm12.1 is not the same as COS 12.1 (Cyanogen OS). I'm on COS12.1 YOG4PAS3OH Eagleeyetom custom rooted rom, if I flash the main zip at the begining of the post, I won't lose root, will I?
Thank you very much, I was surprised to lose this capacitive options after flashing latest build.