[Mod][SteelDroid 4.8]VolumeLongPress skip song - Motorola Droid 3

Huhuuuuuu guys,
since some weeks i looking for a app or flash able zip that let me skip tracks with the volume buttons when screen is locked.
i really like it when i was using AOKP but i going back to gingerbread because of the camera problems.
found some files(not for droid 3) that crash my system ;/
also found a app called tactile player. but i not like it (u need to double press volumen button for skip a track)
an other nice found was this tutorial about remapping hw buttons (http://forum.xda-developers.com/showthread.php?t=1517260)
but you only have 2 options wake & wake_dropped
maybe someone of you guys could help me?
Edit: iam on steel droid 4.8
i decomplied the android.policy.jar and will try to do it myself ;/
i not have much time befor the weekend
and will tell u guys if there is something going up
and help required ;]
Update: The end isnt far away. Atm the VolumeButtons change the track when screen is off and Control the Sound when Screen is on. But i still work on it.
For these who wanne take a look at it i post the smali files.
Credits i give to all people who share his modified android.policy.jar online.
Download
Smali Files

sorry for that push but it would be great if someone can help me finishing

Good job I think the droid 3 without song button is very bad!

Wait, so is this fully functional?! Cuz love the idea
Sent from my DROID3 using Tapatalk

It only change the function of the volume rocker.
when screen is on it control the volume and if screen is off u can next/prev songs

also found a app called tactile player. but i not like it (u need to double press volumen button for skip a track)
Click to expand...
Click to collapse
You should use playerpro. The functions are amazing and u have the option (in settings) to press up to change songs and long press for volume.I have mine reversed tho so volume works by pressing up/down and long press to change song. It only takes a second to change songs. Great app. Check it out
Sent from my DROID3 using Tapatalk

can you repost the files links are down..

android.policy.jar
Smali Files

huhu1312 said:
android.policy.jar
Smali Files
Click to expand...
Click to collapse
thank you so much!

I can't download the files.
Damaged links

i upload again. stupidly i not add it as attachment

Related

Music Player While Locked issue

hello i have a problem i usually use my phone to play music ... now when my phone locks i have to unlock it with my pattern and ect to skip songs its aggravating ... does anyone know a fix for this ?? thanks
Yeah there kind of is. You can remap some buttons to act as pause/play and next track. I made it so I can press the Search button to go to the next track and the Call button to play/pause.
You can learn how to do it here.
http://forum.xda-developers.com/showthread.php?t=695936
Read the whole thing. Somewhere in the middle towards the end it goes over the commands for music control. Make sure you pay attention to the last sentence:
The added attribute "WAKE" allows it to complete the action without waking the phone.
Click to expand...
Click to collapse
thanks alot im going to try to understand this ...... but whats up with the original one .... that pops up on the lock screen is there any way i can add that one ... its more easier lol
Sorry, doubt there is a way to access anything before the lock pattern; that's why the lock pattern is there.
c00ller said:
Sorry, doubt there is a way to access anything before the lock pattern; that's why the lock pattern is there.
Click to expand...
Click to collapse
oo even when there was no pattern....the pop up music player still isnt there
What rom are you running? If it is sense based and you're using the htc luck screen, there will be music controls on the lock screen. If it's sense based and you're using vanilla or rotary lock screen, you're out of luck. If you're on darch droid (and probably froyo, but haven't tried), you can hold volume up or down to skip songs when screen is off, but no way to pause/play
Sent from my Hero CDMA using XDA App
danaff37 said:
What rom are you running? If it is sense based and you're using the htc luck screen, there will be music controls on the lock screen. If it's sense based and you're using vanilla or rotary lock screen, you're out of luck. If you're on darch droid (and probably froyo, but haven't tried), you can hold volume up or down to skip songs when screen is off, but no way to pause/play
Sent from my Hero CDMA using XDA App
Click to expand...
Click to collapse
thanks for the help ... im using darch .. and im using launcher pro ... it has the regular lock on it ... .. ur trying to tell me i need to have it on the sense home screen? thanks
just hold the volume buttons to skip, and use the hard key remap to change a button to play/pause. You can set a double tap on the track ball to skip forward in the music app.
Sent from my Hero CDMA using XDA App
danaff37 said:
just hold the volume buttons to skip, and use the hard key remap to change a button to play/pause. You can set a double tap on the track ball to skip forward in the music app.
Sent from my Hero CDMA using XDA App
Click to expand...
Click to collapse
,.... i just tryed to double click the ball but it didnt work .. with pattern enabled and disabled !!! ... i also have the double click feature checked in the settings of the music player.... im thinking about going to fresh ... and c if this is fixed..
edit i dont have darch i have damage control ...
well i switched to fresh and it works ... only problem now the widget sucks ... its that basic htc one eww
i think the reason it didnt work was because i was using the vanilla music player instead of the old regular music player .... solved !! In order to have the Music player while Phone is locked u Must use the older original music player to listen to music ....

[MOD]Camera Shutter/Volume Rocker|Updated 3/2/12 (Mecha only)

Mecha
Camera Shutter/Volume Rocker Mod
(and Search softkey)
This is a low-level mod for now that effects the assignment globally!​
Ok guys, this is something I have been wanting to get around to for a while.
Making the volume rocker act as camera shutter button. (or search softkey)
For me, it has always been a pain to try and reach around the screen and tap just the right spot in the stock camera app to snap off a shot.
There is a setting in many of the included Tweak apps to make the volume rocker act as the camera shutter, but this has never worked on our device and has yet to be implemented on any Thunderbolt rom I have come across.
So, while I look further into making this work the way I would prefer, I am posting these low-level mods for now.
Meaning, I want to make the volume rocker function as normal while camera is not in use and only be the shutter button when camera is active. This is gonna take me a little bit longer to accomplish through the editing of the camera.apk smali files. I do have a decent start on it, but nothing I would post as of yet.
With all of that said, here is my simple mod for now.
****THIS WILL DISABLE THE VOLUME UP OR DOWN ROCKER FUNCTION,
DEPENDING ON WHICH MOD YOU FLASH!!
SO TO ADJUST THE VOLUME TAP THE VOLUME UP OR DOWN,
WHICHEVER ONE YOU DID NOT CHANGE, THEN JUST ADJUST THE VOLUME WITH THE ON SCREEN SLIDER BAR.
You may prefer the volume up mod. As most people are more in a hurry to adjust the volume down, then they are to turn it up.
If this mod doesn't suit you, due to the disabling of one option or another, I understand.
But there may be those who are willing to sacrifice up or down, or the search button to be able to have a dedicated button for snapping shots.
THIS ZIP WILL REPLACE THE VOLUME UP WITH CAMERA
LONG PRESS TO START CAMERA APP, THEN TAP TO TAKE PICS OR START RECORDING VIDEO
THIS ZIP WILL REPLACE THE VOLUME DOWN WITH CAMERA
LONG PRESS TO START CAMERA APP, THEN TAP TO TAKE PICS OR START RECORDING VIDEO
THIS ZIP WILL REPLACE THE SEARCH SOFTKEY WITH CAMERA
LONG PRESS TO START CAMERA APP, THEN TAP TO TAKE PICS OR START RECORDING VIDEO
THIS ZIP WILL RESTORE YOU BACK TO STOCK
IF YOU DECIDE YOU DON'T LIKE IT
INSTALL:
Just flash the zip for desired mod in Recovery and reboot.
User feedback is always welcome!!...............and maybe a Thanks if you decide to use it
Updated all .zip files
UPDATED ALL .zips and tested!
All should be working as intended and full flashable now, sorry for any confusion!​
I can't seem to download the mod
nowetdio said:
I can't seem to download the mod
Click to expand...
Click to collapse
The links were working just fine.
It appears as though the file host decided to go down right after.
All links updated to my Dropbox, since the DevHost went down.
Should all be good to go, once again!
Thank you for this!!!!
nowetdio said:
Thank you for this!!!!
Click to expand...
Click to collapse
You're most welcome.
Not sure why we didn't have this or something better sooner for the stock camera on our Thunderbolts..
I much prefer a dedicated button for it.
Glad you find it of use as well and thanks for leaving a response.

CM9 G Button remap

hi, I open this thread to show you how to remap the G button, on the FOP rom it is assigned as a comma so it's totally useless, but all you have to do is using root explorer go to:
system\usr\keylayout
and modify the files "generic.kl" and "TWL4030_Keypad.kl" and search for "key 95".
On the "generic.kl" it will say something like insert comma, change that to one of this options:
APP_SWITCH it will make the g button open the recent apps
CAMERA well it's obvious it will open the camera
and on the "TWL4030_Keypad.kl" it will say "POWER WAKE_DROPPED", just erase that and type one of the options I said (you MUST assign the same option to BOTH files)
Hope it would be usefull ^^ I recomend using the button for the recent apps, since the camera can be accessed from the lockscreen and the camera isnt working right now
If you need to, I can make a CWM flashable zip to modify those 2 files, I didn't did that because this is way too easy to do manually...
Remember to mount R/w so you can edit the files
After doing that just reboot
You should mount r/w not r/o
Sent from my phone via tapatalk
A flashable file would be great!
You forgot reboot...neway thanks m8..it worked just fine :highfive:
RomWiz said:
You should mount r/w not r/o
Click to expand...
Click to collapse
thanks, for correcting me
strider2023 said:
You forgot reboot...neway thanks m8..it worked just fine :highfive:
Click to expand...
Click to collapse
ohh right jeje sry
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
koila33 said:
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
Click to expand...
Click to collapse
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Melin Leos said:
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Click to expand...
Click to collapse
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
koila33 said:
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
Click to expand...
Click to collapse
I know it's easy to add but the thing is that right now the g button on fop rom is completely useless
This works on CM7?
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
Yep, tecnically it works on all roms, but I can't say exactly since Idont know which file you have to modify on cm7
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
On cm7, you have to edit /system/usr/keylayout/qwerty.kl - delete key 212 line and add key 95 POWER WAKE_DROPPED or the line about camera - save and reboot
Sent from my LG Optimus Black using xda premium
My Power button is dead and i cannot turn on the phone manually. Ineed to use usb cable,enter the battery charging state and need to push the button frequently(hopefully it detect) till it reboot.Then i try to remap the power button to G button. still cannot on even at battery charging state... This phone is screwed.. wonder if anyone want to buy my phone.. haha..
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
SaschaKH said:
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
Click to expand...
Click to collapse
Getting to the recovery is not the problem as i can use the adb command. The worst part is when i want to call someone urgently and the phone cannot wake the screen. So softpower app can help in these kind of situation? As when the phone is completely dead, there nothing we can do to turn it on as some people said that the power button is hardwire.
Yes SoftPower wakes my phone up all the time without any problem. I haven't even activatet the adminstrator, because it is only needed for turning the screen off and I use G button for that. (Need the search button for something else anyway.)
BTW if you remap the G button it even shows the power menu like you get it for long pressing power button (at least with some ROMs).
Thanks man, i will try that software. I just open this phone and found out that the usb port and the power button is integrated with each other. So, it's kinda hard to repair it.
Thanks.... I modify G Button as Camera and its working awesome on CM10..
Sent from my LG-P970 using xda premium
Please
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
atillaahun said:
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
Click to expand...
Click to collapse
I tested it.I modify G button as CALL WAKE_DROPPED
With this I can receive the call but can't end call with G Button.
And also
Device wakes but can't turn off.
Sent from my LG-P970 using xda premium

[REQUEST] Volume Rocker Screen Wake UP

Hi all,
I was looking for a way to make the volume rocker to wake up the screen but with no luck. Anybody knows a way? If yes then please share your knowledge
EDIT: ok, I've found two methods: method 1 and method 2 but my knowledge is too limited... I know nothing about smali and etc. in method 2 I don't know which file should I edit?
Please help!
Thanks in advance
EdisDee said:
Hi all,
I was looking for a way to make the volume rocker to wake up the screen but with no luck. Anybody knows a way? If yes then please share your knowledge
EDIT: ok, I've found two methods: method 1 and method 2 but my knowledge is too limited... I know nothing about smali and etc. in method 2 I don't know which file should I edit?
Please help!
Thanks in advance
Click to expand...
Click to collapse
Try an app from the Google play store called " wake all"i use it too. It will wake up phone with the volume buttons.
Sent from my LG-P880 using xda app-developers app
dante501 said:
Try an app from the Google play store called " wake all"i use it too. It will wake up phone with the volume buttons.
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
You can try widget locker - lock screen replacement app, and disable stock lock screen. Another good thing with it is that you will lose lag on answering phone call...
nedooo said:
You can try widget locker - lock screen replacement app, and disable stock lock screen. Another good thing with it is that you will lose lag on answering phone call...
Click to expand...
Click to collapse
widget locker did the thing. but i liked the lg lockscreen alot :-/ thanks nedooo!
btw wake all is working as well but there was a thing a didn't like: when i lock the screen and press the volume rocker buttons, the app showed me my homescreen for a second or two and then the lockscreen. widget locker doesn't do that. anyway thanks to dante501 also!
In CM10 volume rocker wake feature is already there as an option afaik. I wish everyone to have the patience and wait for the bootloader unlock update from LG and the CM port
EdisDee said:
widget locker did the thing. but i liked the lg lockscreen alot :-/ thanks nedooo!
btw wake all is working as well but there was a thing a didn't like: when i lock the screen and press the volume rocker buttons, the app showed me my homescreen for a second or two and then the lockscreen. widget locker doesn't do that. anyway thanks to dante501 also!
In CM10 volume rocker wake feature is already there as an option afaik. I wish everyone to have the patience and wait for the bootloader unlock update from LG and the CM port
Click to expand...
Click to collapse
tried wakeall, all it does it freeze my desktop till i restart my phone
I'm not shure what you w want to achieve cause my volume buttons wake up the screen by default. I'm on the 10H.
Wysyłane z mojego LG-P880 za pomocą Tapatalk 2
---------- Post added at 05:57 PM ---------- Previous post was at 05:54 PM ----------
Ok now I know. If you have disabled lock screen than volume wake the screen up.
Wysyłane z mojego LG-P880 za pomocą Tapatalk 2
method 1:
1.Decompile android.policy.jar
2.Found KeyguardViewMediator.smali
3.Edit the smali and delete
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
method 2:
Edit /system/usr/keylayout/tuna-gpio-keypad.kl
Code:
key [COLOR="Red"]???[/COLOR] VOLUME_DOWN [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] VOLUME_UP [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] POWER [COLOR="red"]WAKE[/COLOR]
I don't know the correct number of the key,so I replaced the number to ??? and you just keep the original numbers.
"WAKE" means you can wake up the phone with the button.
Delete the WAKE and it won't work.
Tim_Pan said:
method 1:
1.Decompile android.policy.jar
2.Found KeyguardViewMediator.smali
3.Edit the smali and delete
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
method 2:
Edit /system/usr/keylayout/tuna-gpio-keypad.kl
Code:
key [COLOR="Red"]???[/COLOR] VOLUME_DOWN [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] VOLUME_UP [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] POWER [COLOR="red"]WAKE[/COLOR]
I don't know the correct number of the key,so I replaced the number to ??? and you just keep the original numbers.
"WAKE" means you can wake up the phone with the button.
Delete the WAKE and it won't work.
Click to expand...
Click to collapse
1. I don't know how to decompile. what's a smali? I thought someone with the knowledge could make this mod for the O4X.
2. there is no tuna-gpio-keypad.kl file in /system/usr/keylayout/. the closest file name was gpio-keys.kl. I edited it but the phone still doesn't wake.
I know there is google and I could learn it myself. I'd like to learn all these things, but I haven't got the time for it. I work a lot and I have exams at college.
any way to get this feature on stock based rom?
donkanmcklaus said:
any way to get this feature on stock based rom?
Click to expand...
Click to collapse
If rooted, try the Xposed module 'Xposed Additions'. It lets you remap all buttons. Heard it even works as a workaround for the powerbutton bug in CM11!
balloon27 said:
If rooted, try the Xposed module 'Xposed Additions'. It lets you remap all buttons. Heard it even works as a workaround for the powerbutton bug in CM11!
Click to expand...
Click to collapse
xposed additions did the job thx man

[Q] Use the headphone controls to change tracks?

My old (HTC) phone used the controls on the headphone cable to move between tracks, instead of change volume.
I have to admit I prefer things that way - so would like to know if there's any way to change the behaviour on my Mini.
Any suggestions (apps, mods to flash, etc) appreciated
giociampa said:
My old (HTC) phone used the controls on the headphone cable to move between tracks, instead of change volume.
I have to admit I prefer things that way - so would like to know if there's any way to change the behaviour on my Mini.
Any suggestions (apps, mods to flash, etc) appreciated
Click to expand...
Click to collapse
Tried holding the buttons?
I had those also on my previous phone (Motorola) and it worked by long pressing those buttons.
Sent from my GT-I8190 using xda app-developers app
giociampa said:
My old (HTC) phone used the controls on the headphone cable to move between tracks, instead of change volume.
I have to admit I prefer things that way - so would like to know if there's any way to change the behaviour on my Mini.
Any suggestions (apps, mods to flash, etc) appreciated
Click to expand...
Click to collapse
Take a look at my thread here, there's a "press volume keys to skip tracks mod" and there's a chance it could also work with your headphones control http://forum.xda-developers.com/showthread.php?p=39282702#post39282702
ppero196 said:
Tried holding the buttons?
I had those also on my previous phone (Motorola) and it worked by long pressing those buttons.
Click to expand...
Click to collapse
Thanks for the suggestion - but no joy I'm sorry to say
dariolob said:
Take a look at my thread here, there's a "press volume keys to skip tracks mod" and there's a chance it could also work with your headphones control http://forum.xda-developers.com/showthread.php?p=39282702#post39282702
Click to expand...
Click to collapse
Will take a look
just got this function..all i did was download N7player on market and in advanced settings there is an option allowing you to skip tracks by pressing the app start button twice on the headset..
Sent from my GT-I8190 using xda app-developers app
dariolob said:
Take a look at my thread here, there's a "press volume keys to skip tracks mod" and there's a chance it could also work with your headphones control http://forum.xda-developers.com/showthread.php?p=39282702#post39282702
Click to expand...
Click to collapse
No joy again i'm afraid - thanks anyway
das.dian24 said:
just got this function..all i did was download N7player on market and in advanced settings there is an option allowing you to skip tracks by pressing the app start button twice on the headset..
Sent from my GT-I8190 using xda app-developers app
Click to expand...
Click to collapse
Looks like that works in Doubletwist too - thanks!

Categories

Resources