pradeepvarma22 / Generic_Doubletaptowake

Generic : Double tap to wake for Any Android Kernel (Need To Rebuild) (Dont use This Present )

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubletap2wake-2.0 Generic (for almost all devices)

This is just a restructured and refined code for dt2w. Most of the parts are still from the v1.0 by Dennis Rassmann (Huge Respect!)

How to upgrade generic dt2w-2.0 in your custom kernel ?

Follow these steps if you have the good ol' v1.0 from dev Dennis Rassmann : (For feasibility, I've added port-dt2w-functions.txt with all the necessary code) (Also note : doubletap2wake.c has been referenced as dt2w.c just because I'm too lazy)

  1. Replace the whole "detect_doubletap2wake" function from v2.0 to v1.0
  2. Remove "calc_feather" function from v1.0 and place "calc_within_range" function from v2.0
  3. Define "DT2W_RADIUS" in the beginning of dt2w.c, along with other defines. Copy from port txt.
  4. Remove "DT2W_FEATHER" definition from the defines.

Optional step 5: Change Version, author, desc, etc. Find "/* Version, author, desc, etc */" and replace next 4 lines from port file.

  1. Remove the third argument from all "detect_doubletap2wake" calls. Usually it's "true"

  2. That's it! You're good to compile it now.

  3. If it works nicely, make sure to give me a thanks on xda thread :D

Follow these steps if you don't even have the good ol' v1.0 from dev Dennis Rassmann :

  1. Get dt2w-v1.0 by Dennis Rassmann and compile it successfully first.
  2. Follow the steps in above part.

About

Generic : Double tap to wake for Any Android Kernel (Need To Rebuild) (Dont use This Present )

License:GNU General Public License v3.0


Languages

Language:C 99.3%Language:Makefile 0.7%