[MOD] Skip music tracks with Volume buttons (JB 4.1.2)

shaftenberg

Senior Member
Jul 31, 2010
690
738
0
Cologne
Finally!! After thousands of boot loops I got it working. There are several .diff's for implementing this mod in android.policy.jar, but what I forgot: this works only on a completely deodexed ROM and mine was only half deodexed. It is possible to run deodexed and odexed system apk's side by side, but you must not(!) run a deodexed framework with odexed apk's - this was my learning curve :D

Summary: If you are on a fully deodexed 4.1.2 JB ROM (I am on 91.2.26001 Retail.en.EU), simply copy the android.policy.jar to /system/framework, set the permissions to rw-r--r-- and reboot.

MAKE A NANDROID BACKUP BEFORE, just in case!!

If you want to incorporate this into your ROM (Omar?), I attached the needed smali's too.
If you are on an odexed ROM, here is a short help to deodex yourself:
http://forum.xda-developers.com/showthread.php?t=2179009

Enjoy skipping music tracks in your pocket by long pressing volume without turning your screen on!

UPDATE: added CWM package for easy flashing.
 

Attachments

Last edited:

ColdKiller93

Senior Member
Aug 13, 2011
169
45
58
Installed it right away! It works awesomely well on my phone :) I'm using PIlama 0.6.

If you keep on modding the stock rom like this we won't need to port CM. At least I'm not missing it :)

Keep on your great work. My Razr I is now as fun as my Nexus S had been before :D

Gesendet von meinem XT890 mit Tapatalk 2
 
Last edited:

Sandjah

Senior Member
Jul 11, 2012
157
84
0
Awesome. This was the only thing I missed. Works Like a charm. Thank You!

Sent from my XT890 using xda premium
 
Last edited:
  • Like
Reactions: Tikki Pon

shaftenberg

Senior Member
Jul 31, 2010
690
738
0
Cologne
Would provide a tutorial with the changes in the file PhoneWindowManager?
Too many.
There are some tutorials here at XDA, just search. The thing is, you have to adapt the variables, that's a little bit research though.

Easiest way would be: Extract original android.policy.jar and compare it to my mod, then you'll see the differences.
 

fabiobatera

Senior Member
Apr 10, 2011
188
227
0
Juazeiro do Norte - CE
Too many.
There are some tutorials here at XDA, just search. The thing is, you have to adapt the variables, that's a little bit research though.

Easiest way would be: Extract original android.policy.jar and compare it to my mod, then you'll see the differences.
The only problem that has to samsung and wanted to carry the Razr HD XT925 and compare when there is a big difference in the lines.
more okay, no problem.
Hug.
 
Last edited:

shaftenberg

Senior Member
Jul 31, 2010
690
738
0
Cologne
Not sure I understand what you mean... :)

Just try it: Take your own PhoneWindowManager.smali and compare it to my mod, that was the way I did it in addition to read several different How-To's.
 
M

mentose457

Guest
Too many.
There are some tutorials here at XDA, just search. The thing is, you have to adapt the variables, that's a little bit research though.

Easiest way would be: Extract original android.policy.jar and compare it to my mod, then you'll see the differences.
Could you or anyone else post a deodexed original android policy.jar for this phone? Mattigrofs rom is no later downloadable.

---------- Post added at 09:44 AM ---------- Previous post was at 08:47 AM ----------

Could you or anyone else post a deodexed original android policy.jar for this phone? Mattigrofs rom is no later downloadable.
I ended up downloading an old version of the omar ROM that didn't have this mod done to it.

Sent from my DROID RAZR HD using Tapatalk 4
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone