is there an xda app that will let you change songs just by toggleing the volume buttons? I remember it on my jailbroken iPhone and was hoping there was something similar for android.
ya - I'd love that too
got so used to it on my old sony ericsson
definately will be interesting to have
Yeah, my Blackberry's always had that feature, long-press the volume key to skip forward or back a track.
I am not aware of any app doing this, but you can do it by hand.
What you need to do is modify a file by hand; it's located in /system/usr/keylayout/
The name will differ from handset to handset, but basically, you need the "*-keypad.kl"
For example, mine is "hero-keypad.kl"
Pull it from your device with adb.
Look for the line "VOLUME_UP" and replace it with "MEDIA_NEXT"
Analogically, replace "VOLUME_DOWN" with "MEDIA_PREVIOUS"
Push the modified file back, reboot, and voila.
;]
adwinp said:
I am not aware of any app doing this, but you can do it by hand.
What you need to do is modify a file by hand; it's located in /system/usr/keylayout/
The name will differ from handset to handset, but basically, you need the "*-keypad.kl"
For example, mine is "hero-keypad.kl"
Pull it from your device with adb.
Look for the line "VOLUME_UP" and replace it with "MEDIA_NEXT"
Analogically, replace "VOLUME_DOWN" with "MEDIA_PREVIOUS"
Push the modified file back, reboot, and voila.
;]
Click to expand...
Click to collapse
This is the only way to do it. Note that if you do, it completely replaces the functionality it used to have; i.e., you can no longer use it to control volume!
Uhr.. there should be another way to do it since i've seen this function in several versions of cyanogenmod.
It's currently built into CM6.
Worked in CM5 and CM6 as far as I remember.
unfortunately my captivate doens't have cm6 support. guess I will just keep wishing for it.
Use astro media player
The astro player in the market works great for this. if you quickly press the volume buttons the volume changes and long hold changes track. i have the free version and i know the paid one has this also.
Related
NOTE: THIS IS JUST FOR WINDOWS
Although it is easily modded for other systems, but the fancy script doesn't work on its own. Just manually delete the versions of the files that are already there (only of the ones that are in this .zip, leave the others) and then push the new files there.
NOTE 2: This is just for the camera mod, to see how to remap any key see post 2 in this thread.
Thanks to Drizzy Drake Rogers this is now featured in the new Hero 1.79.482.3 .img files released by Haykuro & cooked up by Drizzy!
This is a mod that allows you to map the camera button as the search button.
It is very simple to understand what it does if you just look at the files included in it, so I don't want to write out a whole drawn out explanation here.
Let me start by explaining this, I loved the new global search feature in CM 3.9.11.2, but I hated not having a dedicated search button off the keyboard. So I looked at the keyboard layout files and modded them to change the rarely used camera button to a search button. Also, if you long press on whatever mode you choose, it will give you voice search.
Also, there are 2 modes for the camera button, FOCUS which is where it is pressed halfway down, this focuses in the camera app, and CAMERA which launches the camera app from anywhere on the phone & also snaps a pic in the camera app.
There are four versions of this file, each in it's own folder;
Both Search: Both FOCUS & CAMERA are mapped to search & bring it up.
Camera Search, Focus Normal: Only CAMERA is mapped to search, FOCUS still focuses and takes a pic in the camera app.
Focus Search, Camera Normal: Only FOCUS is mapped to search, CAMERA still launches the camera app from anywhere on the phone.
Stock: Pushes back the original files to an unmodded state.
To install it, just run Install.bat and press 1, 2, or 3 based on whatever choice you want. All this script does is use the copy of ADB found in the directory to remount the /system partition, delete the original files in /system/usr/keylayout/, push the new files, and reboot the device.
I hope you enjoy this mod and please post feedback.
EDIT: READ IF .bat DOESN'T WORK OR YOU AREN'T ON WINDOWS!
To do this manually, just follow these directions (assuming you have ADB set up, otherwise there are guides on XDA to set it up):
1. Go to the folder of the mod version you want.
2. Run the following commands in ADB:
adb remount
adb shell rm /system/usr/keylayout/trout-keypad.kl
adb shell rm /system/usr/keylayout/qwerty.kl
adb shell rm /system/usr/keylayout/trout-keypad-qwertz.kl
adb shell rm /system/usr/keylayout/trout-keypad-v2.kl
adb shell rm /system/usr/keylayout/trout-keypad-v3.kl
adb push trout-keypad.kl /system/usr/keylayout/
adb push qwerty.kl /system/usr/keylayout/
adb push trout-keypad-qwertz.kl /system/usr/keylayout/
adb push trout-keypad-v2.kl /system/usr/keylayout/
adb push trout-keypad-v3.kl /system/usr/keylayout/
3. Reboot your phone.
EDIT: Wooohoooo! Just leveled up to senior member, this was post #100
V2 is now up. Includes the option to push the stock files back, so feel free to try any mods without worrying about reflashing.
SEE POST 34 FOR MUSIC PLAY/PAUSE/SKIP ABILITY!!
Ok, just to clarify a little here. These files included can be changed to remap any key to any other key. I personally have also remapped the MENU key on the actual keyboard (not the button under the screen above the trackball) to be my shift key, since that is physically more comfortable.
To do this, just open the .kl files (from any mod version, just make sure you have a complete set of them) in your text editor of choice. Then, find the key you want to change, they have labels like this (this is how I changed the camera button):
key 211 CAMERA
change to: key 212 SEARCH
Also, you may notice that some keys have the WAKE tag next to them, add this tag to any key to set it to wake the phone when pressed. I'm not quite sure what the WAKE_DROPPED tag is though.
And, for those of you that are wondering, key 59 is currently marked as MENU, change it to SHIFT_LEFT to make it a shift key as well.
wow great job on this i might try it.
Awesome idea for remapping the menu key the shift key, I can see how that can be a littler easier on the hands. I may have to try this out.
Thank you for sharing your find! I would have figured this would have been harder than it seems.
prash said:
Awesome idea for remapping the menu key the shift key, I can see how that can be a littler easier on the hands. I may have to try this out.
Thank you for sharing your find! I would have figured this would have been harder than it seems.
Click to expand...
Click to collapse
believe it or not, but this is the first time i even noticed that menu key
did anyone try this on a Hero rom?
Is this only for the G1, or could this be adapted to any android device with a keyboard?
Ahhh..thanks for the info...I always used to think about that menu button being waste...now I can change it :-D
I was looking for that a week ago but my editor didn't display the .kl correctly <.<.
Thanks =)
Dror520 said:
did anyone try this on a Hero rom?
Click to expand...
Click to collapse
I haven't tested it on a Hero build, and probably won't as I need my G1 stable. However, there should be no issues with it unless it is changed in the ROM. Later today I will upload v2 that has the option to push the original files as well.
Escaladez2 said:
Is this only for the G1, or could this be adapted to any android device with a keyboard?
Click to expand...
Click to collapse
In theory, it should work on any With Google or standard Android build, and probably even custom mfg ROMs like Hero unless they choose to change the way they map the keys (think hard-coded values).
Yes it works on here build i did it last night
this works on the Hero rom! and also when you long press the camera button it will give you the voice search! thanks! for this!
There is one thing I have missed on the G1's keyboard since the day I got it. A proper Tabular key.
When we press tab now, it just adds about 4 spaces.
What I want it to do is jump to the next element. Just like in text areas where you can simply jump to the next field.
Bavilo said:
There is one thing I have missed on the G1's keyboard since the day I got it. A proper Tabular key.
When we press tab now, it just adds about 4 spaces.
What I want it to do is jump to the next element. Just like in text areas where you can simply jump to the next field.
Click to expand...
Click to collapse
Unfortunately that is something that would require a code change instead of just a file mod, since that feature isn't in the Android OS. I guess they thought that since they require a 4-way+center button d-pad they figured that we wouldn't need a tab key, since you can just scroll with the trackball, or in the case of phones like the Galaxy, just press the arrow key or screen.
thank you so much for this mod. I have been hoping and wondering for awhile about this. XDA IS AWESOME!!!
can someone please help me getting this to work. I plugged my phone in and ran the bat file but get a error message...adb is not recognized as a internal or external command, operable program or batch file..... I did it with adb connected and not connected and got the same error. If i click on the adb.exe in the download I get another error? help me please
^^^^
Thats strange, if its not working for you all you have to do is do it manually, here is a guide (this assumes you have ADB already set up, I won't say how to do that here, there are guides on XDA):
1. Go to the folder of the mod version you want.
2. Run the following commands in ADB:
adb remount
adb shell rm /system/usr/keylayout/trout-keypad.kl
adb shell rm /system/usr/keylayout/qwerty.kl
adb shell rm /system/usr/keylayout/trout-keypad-qwertz.kl
adb shell rm /system/usr/keylayout/trout-keypad-v2.kl
adb shell rm /system/usr/keylayout/trout-keypad-v3.kl
adb push trout-keypad.kl /system/usr/keylayout/
adb push qwerty.kl /system/usr/keylayout/
adb push trout-keypad-qwertz.kl /system/usr/keylayout/
adb push trout-keypad-v2.kl /system/usr/keylayout/
adb push trout-keypad-v3.kl /system/usr/keylayout/
3. Reboot your phone. It should all work.
so would this mod allow for the hardware buttons to be changed? id love for the TALK button to go straight to the dialer rather than 2 the call log in cyanogen/google based roms.
thanks for the reply, yes i have adb setup and i am going to give it a try now. THanks
CC CEO said:
so would this mod allow for the hardware buttons to be changed? id love for the TALK button to go straight to the dialer rather than 2 the call log in cyanogen/google based roms.
Click to expand...
Click to collapse
Again, this is a software issue, either in the dialer app or the main OS. This mod will allow you to assign any button to function as any other button, but it WILL NOT let you add a new function to a key, sorry.
menzo44 said:
thanks for the reply, yes i have adb setup and i am going to give it a try now. THanks
Click to expand...
Click to collapse
No problem, I want this to help other people as it has helped me. Let me know if it works.
When in a music/video application and you press the volume button, you are greeted with a smaller much prettier version of a volume control, that also increases/decreases less per volume button press.
Is it possible to make this control work all the time?
i like that pop-up!
Related to the above; has any1 found out wtf happens between it beeing volume control and it beeing prev/next song? it seems to randomly happen, and i keep having to 'reboot' my hd2 to get normal volume in the music tab again, way annoying.
Before some1 asks me what cabs i installed (since the above happens after some installs, at least thats what i read on these forums) i experienced it maybe 5 minutes after unboxing my new phone, so before i modified anything.
Any help/idea/pointing-to-topic appreciated
I used to have that problem, not had it in 1.61 though
I have 1.43, dunno how to change roms, and kinda 'playing on safe' since i had to pay 'way to much' (€250+) for this phone to break it already
Do feel free to point me to rom topics though cant hurt to look, but id most like to just have some installer exe from htc, so i can blame them if it breaks hehe
loomx said:
I used to have that problem, not had it in 1.61 though
Click to expand...
Click to collapse
Sounds like they fixed it! Let's hope that is the case!
lol, I was playing it safe as well. Then just though ah feck it.
Iv just had a look in the registry, I can see which bit makes it pop up in certain applications. So I think i know how I could make it work in other applications of your choice, but I dont know about everwhere.
I search for that too and found a registry entry too that seems to activate that in other application but it doesnt work.
Its possible to add them manually.
HKLM\Software\HTC\VolumeOverlay\InhouseAPClass there add a key with any name and in this key u create a string value "ClassName" with the correct class name as value (I find them with BsB Tweaks).
HKLM\Software\HTC\VolumeOverlay\InhouseEnable2ndUI there add a key with the class name and in there a string value with the name Enable2ndOverlay and the value 1.
e.g. Resco Explorer:
"HKLM\Software\HTC\VolumeOverlay\InhouseAPClass\XYZ\ClassName" with the value "RESCO_EXPLORER_CLASS"
and
"HKLM\Software\HTC\VolumeOverlay\InhouseEnable2ndUI\RESCO_EXPLORER_CLASS\Enable2ndOverlay" with the value "1"
Yes but no landscape support for this function..(only on tab music and some video app that rely on the class-->FullScreenPlayer)..any solution?
Works perfect for me, but maybe if u set the Enable2ndOverlay to 2 instead of 1 it will work, cause the AlbumPlayer also use the 2.
But I really dunno how to set the VolumeOverlay in the ConfettiLockScreen (the ClassName of the LockScreen). An alternative would be to set the volume steps to 1/15 like in the overlay.
Any progress on this front? =) I would love to use the volume as it uses in music tab all over my phone!
IRREAL said:
Yes but no landscape support for this function..(only on tab music and some video app that rely on the class-->FullScreenPlayer)..any solution?
Click to expand...
Click to collapse
add the desired player to rotation with bsb tweaks 1.6 and when tilted the volume overlay is tilted as whell.
Hey everyone, is there any apps out there that will make it so I can change tracks with a long press of the volume key? Up for next, down for back for example.
Thats about it, thanks
Also looking for a way to do this. It's about the only thing I miss from my blackberry
CyanogenMod had this when I used it on my Droid, I bet the v6 will have it eventually if it doesn't already.
I'm not sure if its part of vanilla android or CyanogenMod but my g1 had this too. Worked great and would love to see it implemented
Has anyone figured it out yet??? some sensless rom have it, but i cant figure out what to change
It's most likely in the android.policy.jar.
Unfortunately I am not familiar with java, so I can't change it
bump would also like to know this. perfect for motorcycling.
I am currently working on some kernel hacks with the keyboard files to allow for some more goodies, I have to do it in-between classes, but I am getting somewhere.
Also anyone who knows how to modify API level KeyEvent changes get in touch with me. I am looking into creating my own ENDCALL implementation to only work while(in-phone) but my app is lacking. I think I will have to modify the actual Phone.apk to hang-up on keypress 107 event id.
**now included in some roms**
*thanks for the #include devs*
This only works if you have root and clockworkmod recovery installed see the stickys in the EPIC 4G DEVELOPMENT to get them first.
I, like a lot of people, got sick of the SMILEY button. I also barely use the search button on the bottom of the screen,
so I decided to change them and make them more useful.
edit: according to Geniusdog254 this will need to be reapplied after a rom update, unless it is included in the rom.
DEVS: please feel free to include this or at least a link to this post when updating your roms.
**changed mod method to clockworkmod recovery**
I have had several friends and members ask me how to do this... (they also asked for it to be made dummy proof)
I hope I have succeeded.
FOR NOOBS:
To Enable tweaks
1: download the attachments -
for only smiley to @ tweak
for only search to endcall tweak
2. install through clockworkmod recovery
option 1. use the clockworkmod rom manager to select file and flash
option 2. boot into clockworkmod recovery and select "install zip from sdcard" > "choose zip from sdcard" > then navigate to zip and install
To Disable tweaks (ie: go back to regular keyboard layout)
1: download the attachments -
for only smiley to @ tweak
for only search to endcall tweak
2. install through clockworkmod recovery ( clockworkmod < 3.0.0 only, I haven't had time to learn the edify scripting developers feel free to make it if you want to include it)
option 1. use the clockworkmod rom manager to select file and flash
option 2. boot into clockworkmod recovery and select "install zip from sdcard" > "choose zip from sdcard" > then navigate to zip and install
FOR SKILLED USERS:
1. Just download the zip file
2. use ClockworkMod recovery to install the zip files above
or
download, extract, flash the ones of your choosing from here
FOR DEVS and/or SKILLED USERS:
the changes are simple
I got the information from http://pdk.android.com/online-pdk/guide/keymaps_keyboard_input.html...
To make your own keyboard layouts just edit the .kl files in a notepad (gedit or notepad++ choose your flavor) then push them back to /system/usr/keylayout
- for search hack (melfas-touchkey.kl) - key 107 SEARCH WAKE_DROPPED -> key 107 ENDCALL WAKE - then save.
changes:
-for AT/Smiley hack (s3c-keypad.kl) - key 42 SMILEY WAKE_DROPPED -> key 42 AT WAKE_DROPPED - then save.
'SEARCH' Button on the bottom will end calls and put screen to sleep while not in a call
this only affects the capacitive search button on the bottom (the bottom 4 on the main screen)
the hardware search button on the qwerty keyboard is still mapped to search
' - smiley' button on qwerty keyboard is now the '@' symbol... (I have no idea why this wasn't stock to begin with)
**edit**
added attachments for only smiley and only search button hacks
**edit**
changed install method to *.zip for clockworkmod recovery
**edit 2.27.2010**
included specific changes
Wow awesome!
I was pretty excited for the smiley button, but honestly have NEVER used it since I don't like the faces.
I actually use the Search button pretty frequently, so could you put up a separate hack for JUST the smiley/@ button?
Wait, does the search button hack only apply to hardware keyboard or to the capacitive search button also?
search
NeonMonster said:
Wow awesome!
I was pretty excited for the smiley button, but honestly have NEVER used it since I don't like the faces.
I actually use the Search button pretty frequently, so could you put up a separate hack for JUST the smiley/@ button?
Wait, does the search button hack only apply to hardware keyboard or to the capacitive search button also?
Click to expand...
Click to collapse
edited first post
added individual hacks to attachments
PS
search hack is only for capacitive...
the physical search button on the keyboard is still mapped to search
This is old news
I had the first post with it back in the good ole days in the G1 section lmao. My Search2Play app on the Market actually does this, but it remaps search to play/pause music. I really need to update it for the Epic & other SGS devices lol
Anyway, I was going to change the smiley to @ myself the other day but never got around to it. Kudos!
EDIT: Also, it WILL change between ROMs. They (almost) always wipe /system in the update script and then flash back, and even if they don't they always contain these files for safety. Not a big deal, but you will have to change it again after a ROM change
Geniusdog254 said:
This is old news
I had the first post with it back in the good ole days in the G1 section lmao. My Search2Play app on the Market actually does this, but it remaps search to play/pause music. I really need to update it for the Epic & other SGS devices lol
Anyway, I was going to change the smiley to @ myself the other day but never got around to it. Kudos!
EDIT: Also, it WILL change between ROMs. They (almost) always wipe /system in the update script and then flash back, and even if they don't they always contain these files for safety. Not a big deal, but you will have to change it again after a ROM change
Click to expand...
Click to collapse
COOL...
I went from a G1 to an epic 4g,
Was hard to leave cyanogen and all the G1 greatness...
I didn't know that your tool worked for the capacative search button only, I tried it and it changed both of them.
Cant wait to see your updated app and stop using this crude workaround....
smeyerhuky said:
COOL...
I went from a G1 to an epic 4g,
Was hard to leave cyanogen and all the G1 greatness...
I didn't know that your tool worked for the capacative search button only, I tried it and it changed both of them.
Cant wait to see your updated app and stop using this crude workaround....
Click to expand...
Click to collapse
My app actually does the exact same thing your doing, replacing the *.kl file with one that has the buttons remapped. It's just packaged up into a nice shiny little box
Also, it works for all types of buttons, but on capacitive buttons it doesn't work when the screen is turned off.
thanks again.
Geniusdog254 said:
EDIT: Also, it WILL change between ROMs. They (almost) always wipe /system in the update script and then flash back, and even if they don't they always contain these files for safety. Not a big deal, but you will have to change it again after a ROM change
Click to expand...
Click to collapse
updated in OP thanks....
PS.
Isn't the purpose of open source code reuse....
Love your kernel can't wait for the update tomorrow night. I do a lot of personal development on my phone would love to test things for you from time to time.
PPS
I am a student in computer engineering focusing on VLSI so I dont always have time to post my personal edits...
smeyerhuky said:
updated in OP thanks....
PS.
Isn't the purpose of open source code reuse....
Love your kernel can't wait for the update tomorrow night. I do a lot of personal development on my phone would love to test things for you from time to time.
PPS
I am a student in computer engineering focusing on VLSI so I dont always have time to post my personal edits...
Click to expand...
Click to collapse
Of course thats the point of open source lol. I wasn't criticizing you at all if that's what it sounded like, its great you figured that out for yourself. People like you & I who experiment with our phones until we make them work how we want are what makes the world go round lol
Just applied the button hack!
Both work perfectly! The capacitive search remap is really useful! Love it!
Sorry, having trouble installing...I have my phone rooted and busybox, but I'm getting what I think is an error message.
It says- 'adb' is not recognized as an internal or external command, operable program, or batch file
Any ideas as to what I'm doing wrong?
jbuss69 said:
Sorry, having trouble installing...I have my phone rooted and busybox, but I'm getting what I think is an error message.
It says- 'adb' is not recognized as an internal or external command, operable program, or batch file
Any ideas as to what I'm doing wrong?
Click to expand...
Click to collapse
For some reason the bat file doesn't connect to ADB.
You have to throw all the files in your TOOLS folder within your c:/android folder or where ever your ADB.exe file is.
It should run fine after that.
NeonMonster said:
For some reason the bat file doesn't connect to ADB.
You have to throw all the files in your TOOLS folder within your c:/android folder or where ever your ADB.exe file is.
It should run fine after that.
Click to expand...
Click to collapse
Thank you-works great!
I'm going to throw up an update.zip in a few minutes so this can be done on the phone though clockworkmod
Sent from my SPH-D700 using XDA App
NeonMonster said:
For some reason the bat file doesn't connect to ADB.
You have to throw all the files in your TOOLS folder within your c:/android folder or where ever your ADB.exe file is.
It should run fine after that.
Click to expand...
Click to collapse
thanks for lookin out,
I changed the method for the modifications to a update.zip compatible with clockworkmod recovery...
now it can be done on the phone without a computer for easy reinstall with roms
Thanks so much! I was so stoked to see this post when I woke up, and can report the @ tweak under clockwork works like a charm. It's crazy how much work it's taken to get this phone back to the same level of usability as my OG Droid, but between this and the lockscreen hack, I'm the closest I can be now until we have froyo. Cheers!
this is great, but could you please create a version that lets you remap the long press of the search button to something like vlingo?
Does it require a long press of the search button to sleep the phone or hang up? I'm afraid of it being to easy to hit the search button and have it hang up or close phone when you didn't want it to.
For this release the longpress is still mapped to voicesearch
I can remap it if really necessary
Sent from my SPH-D700 using XDA App
smeyerhuky said:
For this release the longpress is still mapped to voicesearch
I can remap it if really necessary
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Long press gives me the option for silent, airplane mode, or power off for me...
Sorry.
Your right just realized I was running a test build w/o the changes XD
Sent from my SPH-D700 using XDA App
Hi All,
Long time lurker, first time poster. I have had a search around for the correct forum to post this in - sorry if it is the wrong one...
I have recently bought a Zenithink ZT-280 c91 for my Nan to get her on the internet, I am trying to simplify it as much as possible and have come across a problem that no amount of googling has seemed to clear up.
The pad has 4 hardware buttons (Options, Home, Back and Search), however as it has ICS on it, it also have the ICS virtual buttons.
I want to remove these virtual buttons but keep the task bar if possible, having 2 sets of buttons is likely to confuse the old dear.
All threads ive seen so far relate to disabling the hardware buttons but keeping the on screen ones? The task bar is useful and id like to keep it (or if there is an alternative option then that would be great if i can just scrap the buttons!).
I have tried replacing the home launcher - this hasnt done anything so far!
Any help would be greatly appreciated
goto settings >> launcher>>home screen>>there will be settings for that
else use other launcher such as adw,ss,360 launcher..
There are no settings for disabling the buttons, adding a new launcher doesnt make a difference, the buttons remain?
I found instructions on how to enable the virtual buttons on any ROM. From what I can see it should just be a case of using the word "false" instead of "true".
http://goo.gl/VAKqU
Good luck
I did see that one but was hoping there was something even simpler - guess ill have to bite the bullet and give it a shot if not - thanks
there is a youtube vid for this.. haven't tried it yet though
link since I can't get the YT link to work
I would like to thank you guys..
I was going to ask this question but found fortunately it already asked and answered..
Found another solution
I've came across this too tryin' to remove the Virtual button at the bottom of my Android device. I'm using Xperia Arc, with Viper Xperia v4.5 ROM, after that the Virtual Button appear and I kept accidentally hittin' on it.
I have found a tweak that worked for me, try at your own risk.
1. File Explorer with root access (I'm using ES File Manager)
2. Locate build.prop located at system/ (system/build.prop)
3. It is recommended you make a backup copy of build.prop to your SD card (long press options>copy)
4. Long press build.prop and choose to open with a Text Editor or Note Editor (for me it was File Editor)
5. Scroll all the way down and enter this line at the bottom - qemu.hw.mainkeys=1
6. Save and reboot
Hope this helps some of you