[Requires Root][Open Source] Doubletap to Wake Enabler v1.2

naxir

Senior Member
Aug 6, 2010
84
252
0
Yeah I'm aware of the commit but that alone is not helpful. I have my guesses of how this is working but it would be nice to know for sure.

I'm avoiding giving away technical details right now because my wife wants me to monetize it. My preference is to give it away for free and accept donations if anyone feels like it. I would like to give you your answer, but until I arrive at a final conclusion, I will avoid saying too much.
 

mk92595

Senior Member
Aug 23, 2012
860
131
0
Just added it. Thanks!

---------- Post added at 02:07 PM ---------- Previous post was at 02:06 PM ----------

I'm avoiding giving away technical details right now because my wife wants me to monetize it. My preference is to give it away for free and accept donations if anyone feels like it. I would like to give you your answer, but until I arrive at a final conclusion, I will avoid saying too much.
How about listing it at the play store for about $1.99-2.99 and making a free XDA version? Best of both worlds and you still make $$$
 

ChrisJ951

Senior Member
Jan 25, 2011
494
307
0
Can we get instruction on how you accomplished this to maybe enable it ourselves?
For those who want a technical explanation all you have to do is write

"AUTO" to /sys/bus/i2c/devices/1-004a/tsp

for those who want to do it manually type

adb shell
su
echo "AUTO" > /sys/bus/i2c/devices/1-004a/tsp

You can tell that from the commit because what they removed was:

sysfs_write(TOUCH_INTERACTIVE_PATH, on ? "AUTO" : "ON");

which in turn writes "AUTO" to /sys/bus/i2c/devices/1-004a/tsp

fd = open(path, O_WRONLY); <-- Opens the file
write(fd, s, strlen(s)); <-- writes the command


Also, for those wondering why it needs to be reran on boot, that file gets replaced every time the device is restarted.
 
Last edited:

djkinetic

Senior Member
Feb 26, 2011
3,641
1,387
0
Chicago
For those who want a technical explanation all you have to do is write

"AUTO" to /sys/bus/i2c/devices/1-004a/tsp

for those who want to do it manually type

adb shell
su
echo "AUTO" > /sys/bus/i2c/devices/1-004a/tsp

You can tell that from the commit because what they removed was:

sysfs_write(TOUCH_INTERACTIVE_PATH, on ? "AUTO" : "ON");

which in turn writes "AUTO" to /sys/bus/i2c/devices/1-004a/tsp

fd = open(path, O_WRONLY); <-- Opens the file
write(fd, s, strlen(s)); <-- writes the command


Also, for those wondering why it needs to be reran on boot, that file gets replaced every time the device is restarted.
Since we dont have init.d kernel support yet I used tasker to create an on boot event that runs this command every device boot. Works perfectly. No need for a monetized app if you already got tasker.
 
Last edited:
  • Like
Reactions: electricpete1

iil

Senior Member
Dec 14, 2010
259
24
0
For those who want a technical explanation all you have to do is write

"AUTO" to /sys/bus/i2c/devices/1-004a/tsp

for those who want to do it manually type

adb shell
su
echo "AUTO" > /sys/bus/i2c/devices/1-004a/tsp

You can tell that from the commit because what they removed was:

sysfs_write(TOUCH_INTERACTIVE_PATH, on ? "AUTO" : "ON");

which in turn writes "AUTO" to /sys/bus/i2c/devices/1-004a/tsp

fd = open(path, O_WRONLY); <-- Opens the file
write(fd, s, strlen(s)); <-- writes the command


Also, for those wondering why it needs to be reran on boot, that file gets replaced every time the device is restarted.
Thanks did not know that.
 

naxir

Senior Member
Aug 6, 2010
84
252
0
...

Also, for those wondering why it needs to be reran on boot, that file gets replaced every time the device is restarted.
Yep, this is how it's done. To add, the device "1-004a" is anAMTEL A432 microcontroller. The tsp file isn't really replaced every time the device is restarted, it's just that devices are special files in unix based operating systems. It doesn't get replaced, the driver/device just loses its state.
 

Neitherstone

New member
Nov 22, 2014
2
0
0
Proximity Sensor

So, since this works by just re-enabling features that were already present in the device, I'm guessing that it isn't possible to patch it so that it accounts for the proximity sensor (like the Moto X for example), correct? I could see this being an issue if it starts waking up in my pocket.

Regardless, this is an awesome app, thank you!
 

naxir

Senior Member
Aug 6, 2010
84
252
0
So, since this works by just re-enabling features that were already present in the device, I'm guessing that it isn't possible to patch it so that it accounts for the proximity sensor (like the Moto X for example), correct? I could see this being an issue if it starts waking up in my pocket.

Regardless, this is an awesome app, thank you!
It might be possible, but it would likely require access to the drivers that I don't think are open source. Using the method that I used, it is not possible for me to alter the way in which it wakes, only enable/disable that functionality.
 

dirtybeagles

Member
Nov 12, 2014
6
0
0
naxir, you should put this on the app store, even if for $.99... you worked on it in creating this mod, you should get paid for it sir.

Thanks anyway, let us know if you put it on there and I will buy it. I always like supporting developers. :good:
 

naxir

Senior Member
Aug 6, 2010
84
252
0
naxir, you should put this on the app store, even if for $.99... you worked on it in creating this mod, you should get paid for it sir.

Thanks anyway, let us know if you put it on there and I will buy it. I always like supporting developers. :good:
I am actually in the process of doing so. I have submitted it to the playstore, awaiting for it to be processed. I figured I would make it available for free for xda-developers, but give people the option of buying it as well.
 

Neitherstone

New member
Nov 22, 2014
2
0
0
It might be possible, but it would likely require access to the drivers that I don't think are open source. Using the method that I used, it is not possible for me to alter the way in which it wakes, only enable/disable that functionality.
Ah, that makes sense. Well, here's hoping that someone figures out a method that can do that! In the meantime, I'm more than content with using yours :) Thanks again!
 

VTEChump

Senior Member
Oct 20, 2011
246
44
0
Minneapolis
You are selling an app that only works some of the time? Not trying to sound like a hater, but the app store is already filled with too many apps that don't work. I'm hoping you can fix it such that it is more reliable.
 
Last edited:

naxir

Senior Member
Aug 6, 2010
84
252
0
You are selling an app that only works some of the time? Not trying to sound like a hater, but the app store is already filled with too many apps that don't work. I'm hoping you can fix it such that it is more reliable.
I'm not actually selling it. Some people expressed interest in seeing a paid version available, so I'm putting a $0.99 version up. It really is only meant to be a donation with the perk of automatic upgrades.

In addition, while I haven't done extensive testing, it is very reliable at doing what it claims; enabling Google's built in support for double tap to wake. I apologize if I have given anyone the wrong idea. There are flaws, especially when considering deep sleep, but for the above reasons I am giving it away for free.
 

Baldilocks

Senior Member
May 31, 2010
2,972
1,146
0
Dover, DE
I'm not actually selling it. Some people expressed interest in seeing a paid version available, so I'm putting a $0.99 version up. It really is only meant to be a donation with the perk of automatic upgrades.

In addition, while I haven't done extensive testing, it is very reliable at doing what it claims; enabling Google's built in support for double tap to wake. I apologize if I have given anyone the wrong idea. There are flaws, especially when considering deep sleep, but for the above reasons I am giving it away for free.
No deep sleep issues with this app on my device as of yet. Works great.
 

naxir

Senior Member
Aug 6, 2010
84
252
0
naxir, you should put this on the app store, even if for $.99... you worked on it in creating this mod, you should get paid for it sir.

Thanks anyway, let us know if you put it on there and I will buy it. I always like supporting developers. :good:
It's published in the Google Play Store: https://play.google.com/store/apps/details?id=com.codechron.n6doubletapunlock

Note that I will remain offering it for free; the apk that you download from here is essentially the same that is on the play store. Downloading from the play store helps me pay the bills, but doesn't give you a better app.