Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,619 Members 52,284 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL][23/05/14][S2W] S2W Kernel!

Tip us?
 
CurtisMJ
Old
(Last edited by CurtisMJ; 20th July 2014 at 05:03 PM.)
#1  
CurtisMJ's Avatar
Senior Member - OP
Thanks Meter 170
Posts: 161
Join Date: May 2013
Wink [KERNEL][23/05/14][S2W] S2W Kernel!

S2W Kernel!

S2W mod of InifintyKernel!

Finally, S2W for our device!

This kernel includes the following features:
  • All features of InfinityKernel #6
  • Dedicated control app!
  • Sweep2Wake
  • Sweep2Lock
  • Hold2Wake
  • DoubleTap2Wake
  • Pocket mode!

And all stable! hopefully

Pocket Mode
Uses the proximity sensor to detect whether the device is probably in the user's pocket and disables all s2w features in order to prevent accidental wakes.

S2W Controls App
Let's you change which method you use to wake and other settings on the fly! It also applies your settings at boot, no more need for init.d scripts!

Sweep2Lock
Prevent accidental soft key presses by sweeping right to left while the screen is on, locking the soft keys. To unlock, just swipe again.

Credits
  • InfinityShooter
  • neXus PRIME
  • All those involved in the development of InfinityKernel
  • All those involved in the development of the original base, neXusKERNEL
  • All who tested debug and beta builds
  • Anyone I forgot

Get the kernel image here (#4)
Dropbox:
https://www.dropbox.com/s/0zw6v81na8...s2w_beta32.img
Dev-Host:
http://d-h.st/N1w

#3 Still available here:
https://www.dropbox.com/s/yi4ijt3job...s2w_beta30.img
#2 Still available here:
https://www.dropbox.com/s/5q9083pc4n...s2w_beta28.img
#1 Still available here:
https://www.dropbox.com/s/0lp9ssa7zn...y_s2w_beta.img

Get the control app here (Requires SU):
Dropbox:
https://www.dropbox.com/s/bwhyf6xoub...rols_final.apk
Dev-Host:
http://d-h.st/QEr

Happy swiping!

Source

Changelog:
Code:
#1
- Initial
#2
-Small optimizations
-Possible sleep freeze fix (raised i2c transfer retry limit and a few other small changes from pico implementation)
#3
-DT2W now works across the whole screen (Let me know if you want others to do the same)
-Reverted some sleep issue related pico changes
#4
-Improve multi-method usage
Desire X - Iconia Tab A500
 

 

Progress is helpful.
A finished product is more helpful.
Thank me for what I've done, not what I'm doing.

The Following 21 Users Say Thank You to CurtisMJ For This Useful Post: [ Click to Expand ]
 
dansou901
Old
#2  
Recognized Contributor
Thanks Meter 771
Posts: 2,127
Join Date: Apr 2012
Location: Aachen
This is awesome, great work CurtisMJ! Sadly, I moved on to CM already, so I won't test this one. But if you do enable these features in CM kernel (source is in Devlopement thread in General section), it would be great!
Current device: Oneplus One 64 GB Sandstone Black
No support via PM! Please ask in a public thread, I'll help you as much as I can.
The Following 2 Users Say Thank You to dansou901 For This Useful Post: [ Click to Expand ]
 
DeveloperOne
Old
#3  
DeveloperOne's Avatar
Member
Thanks Meter 24
Posts: 46
Join Date: Sep 2013
Someone post a flashable zip pls
 
$MpŁ_mPłİŤęĎ
Old
(Last edited by $MpŁ_mPłİŤęĎ; 24th April 2014 at 06:10 PM.)
#4  
$MpŁ_mPłİŤęĎ's Avatar
Senior Member
Thanks Meter 72
Posts: 424
Join Date: Oct 2013
Location: Delhi
Thanks.! Now i am gonna definitely switch to Sense 5
Current Device - HTC Desire X

- Rooted
- Recovery --> TWRP-2.6.3.0
- ROM --> MysenseDx5 (Sense 5 with 4.1.2)
- Kernel --> S2W Kernel
 
Szwajowy
Old
#5  
Senior Member
Thanks Meter 39
Posts: 112
Join Date: Jan 2014
Location: Będzin
Awesome, but can you add options like governors, i/o managers and etc in you app ?
 
fozzy_fozzy
Old
#6  
Member
Thanks Meter 163
Posts: 92
Join Date: Aug 2008
I now do CM for our phone. You not against if I use your source codes of a kernel.
P.S Already it turned out to collect the stable version with a kernel 3.4, there is a problem with the camera and a bluetooth.
I think a problem with (camera) drivers just in a kernel, you couldn't look at the logs. I while haven't enough experience in programming.
The Following 3 Users Say Thank You to fozzy_fozzy For This Useful Post: [ Click to Expand ]
 
CurtisMJ
Old
#7  
CurtisMJ's Avatar
Senior Member - OP
Thanks Meter 170
Posts: 161
Join Date: May 2013
Quote:
Originally Posted by DeveloperOne View Post
Someone post a flashable zip pls
Should be attached. I haven't tested it yet, but the partions are definitely correct.

Quote:
Originally Posted by Szwajowy View Post
Awesome, but can you add options like governors, i/o managers and etc in you app ?
That's not the purpose of the app, it's for s2w related controls only, not general kernel features, use a dedicated app for that.

Quote:
Originally Posted by fozzy_fozzy View Post
I now do CM for our phone. You not against if I use your source codes of a kernel.
P.S Already it turned out to collect the stable version with a kernel 3.4, there is a problem with the camera and a bluetooth.
I think a problem with (camera) drivers just in a kernel, you couldn't look at the logs. I while haven't enough experience in programming.
I don't mind you using my code, as long as the proper credit is given for my work and for others. I would rather wait until the kernel is fully stable(all drivers included) before trying to add extra features though. (If no-one's ported my code before it's stable I'll port it myself)
Attached Files
File Type: zip Infinity_S2W_beta_signed.zip - [Click for QR Code] (4.56 MB, 113 views)
Desire X - Iconia Tab A500
 

 

Progress is helpful.
A finished product is more helpful.
Thank me for what I've done, not what I'm doing.

The Following 2 Users Say Thank You to CurtisMJ For This Useful Post: [ Click to Expand ]
 
nightwalkerkg
Old
#8  
nightwalkerkg's Avatar
Senior Member
Thanks Meter 424
Posts: 479
Join Date: Aug 2012
Location: Kragujevac
Tested the zip and i can confirm that it works.
I'll use it for some time to see how it works. Good work.

It would be awesome to implement an option to lock the screen with a double tap,like the wake option. But one option at the time.
Once more,good work.
Waiting for CM10.1,CM10.2 or AOSPA 3+
Stop thanking me on random posts,it's not like me talking about pink unicorns is going to help anyone.


The Following User Says Thank You to nightwalkerkg For This Useful Post: [ Click to Expand ]
 
Szwajowy
Old
#9  
Senior Member
Thanks Meter 39
Posts: 112
Join Date: Jan 2014
Location: Będzin
For me its working only wake future. Can't lock screen with sweep :/

Wysłane z mojego HTC Desire X przy użyciu Tapatalka
 
MrTergum
Old
#10  
Senior Member
Thanks Meter 26
Posts: 193
Join Date: May 2011
When i want to open the controll app i just get an force close

Sent from my HTC Desire X using xda app-developers app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes