Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,408 Members 53,437 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Long Press Volume Buttons to skip songs

Tip us?
 
jakubklos
Old
(Last edited by jakubklos; 21st November 2012 at 10:03 AM.)
#1  
Member - OP
Thanks Meter 164
Posts: 77
Join Date: Jan 2008
Location: Prague
Cool [MOD] Long Press Volume Buttons to skip songs

Yes, finally it is here!
After couple of hours of coding in smali and debugging endless boot loops it works.

Change your music tracks when your screen is off and music is playing by long pressing the volume buttons.

Update:
- New JB and ICS support
- New 500ms timeout used instead of 1sec.
- New CWM flashable zip
- New Diff available for ROM cooks

ICS: Wanam-Lite ROM 1.7
JB: Wanam-Lite ROM 4.3 (4.1.1)

Enjoy!
Attached Files
File Type: zip VolumeLongPressDiff.zip - [Click for QR Code] (3.5 KB, 2883 views)
File Type: zip VolumeLongPress_S3_ICS.zip - [Click for QR Code] (399.6 KB, 1132 views)
File Type: zip VolumeLongPress_S3_JB.zip - [Click for QR Code] (510.1 KB, 3316 views)
The Following 83 Users Say Thank You to jakubklos For This Useful Post: [ Click to Expand ]
 
ariedam
Old
#2  
Member
Thanks Meter 5
Posts: 58
Join Date: Jun 2010
Quote:
Originally Posted by jakubklos View Post
Yes, finally it is here!
After couple of hours of coding in smali and debugging endless boot loops it works.

Change your music tracks when your screen is off and music is playing by long pressing the volume buttons.

You need to replace your /system/framework/android.policy.jar with the one below.

I am sure the ROM chefs will be soon putting this in their new ROMs.

I used the Wanam-Lite ROM 1.6 to decompile the original android.policy.jar so if you are on some latest ROM it should work fine.

Enjoy!
Doesn't work in Paranoid 1.5a (CM9).
It doesn't boot any more.
 
Mikee.H
Old
#3  
Mikee.H's Avatar
Senior Member
Thanks Meter 5
Posts: 149
Join Date: Jan 2012
Location: Brisbane
Would this work with Poweramp ?
 
jaykay1967
Old
#4  
Junior Member
Thanks Meter 6
Posts: 17
Join Date: Oct 2010
Quote:
Originally Posted by Mikee.H View Post
Would this work with Poweramp ?
This doesn't work on Omega 9 /Franco 10. Tried Poweramp and Sammy Music Player.

Changed permissions before rebooting so no problems there but long press on volume only makes the volume go up/down really quick as per stock.
 
mkh@xda
Old
#5  
Member
Thanks Meter 13
Posts: 66
Join Date: Apr 2012
Location: Udon Thani, Thailand
Quote:
Originally Posted by Mikee.H View Post
Would this work with Poweramp ?
Works with PowerAmp - but u must aktivate ICS-Lockscreen in PA settings.
WanamLite on S3 + Uncharted ROM on S4
 
jaykay1967
Old
#6  
Junior Member
Thanks Meter 6
Posts: 17
Join Date: Oct 2010
Quote:
Originally Posted by mkh@xda View Post
Works with PowerAmp - but u must aktivate ICS-Lockscreen in PA settings.

ladies and gentlemen, i am an idiot.

i did not read the op properly.

this works when the screen is off.
The Following 4 Users Say Thank You to jaykay1967 For This Useful Post: [ Click to Expand ]
 
babijoee
Old
#7  
babijoee's Avatar
Retired Forum Moderator
Thanks Meter 161
Posts: 1,527
Join Date: Dec 2008
Location: Melbourne

 
DONATE TO ME
I'm assuming this is just for Sammy roms as AOSP and AOKP already have these features built in.


| TOUCHPRO | NEXUS ONE | DESIRE HD | GALAXY S III | GALAXY NEXUS | GALAXY S III 4G | SONY XPERIA Z |

 
aydc
Old
#8  
aydc's Avatar
Senior Member
Thanks Meter 379
Posts: 998
Join Date: Jul 2006
I confirm that it works with Wanam 1.6.
 
jakubklos
Old
#9  
Member - OP
Thanks Meter 164
Posts: 77
Join Date: Jan 2008
Location: Prague
Quote:
Originally Posted by ariedam View Post
Doesn't work in Paranoid 1.5a (CM9).
It doesn't boot any more.
True, only stock based ROMs shoudl be supported. CM9 and AOKP already have this feature.
I have tested it on Wanam 1.5 and Wanam 1.6 but others should be working too.
The Following User Says Thank You to jakubklos For This Useful Post: [ Click to Expand ]
 
tsangwc
Old
#10  
Senior Member
Thanks Meter 33
Posts: 129
Join Date: Jul 2006
Replaced the file and changed permission. Reboot the phone and it behaves the same in Sammy player and PA. ICS lock screen is always on for PA. Long pressing up and down will only change volume for me. I am on stock ROM and kernel.

Tags
change, long, press, track, volume
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes