Since my volume rocker is gone hence couldn't benefit from skip track with volume mod, I was hoping to assign search key to music events like this :
- long clic : play/pause music
- simple clic : play next
- double clic : play previous
is there any mode in keylayout to do so ? also I noticed that AVRCP.kl file in /system/usr/keylayout/ has some potential but I think it's for bluetooth headset.
I'm on GB and xposed for GB is an alternative I think but I wished for a less radical way ...
sheraro said:
Since my volume rocker is gone hence couldn't benefit from skip track with volume mod, I was hoping to assign search key to music events like this :
- long clic : play/pause music
- simple clic : play next
- double clic : play previous
is there any mode in keylayout to do so ? also I noticed that AVRCP.kl file in /system/usr/keylayout/ has some potential but I think it's for bluetooth headset.
I'm on GB and xposed for GB is an alternative I think but I wished for a less radical way ...
Click to expand...
Click to collapse
There is an app that change R/L buttons
https://play.google.com/store/apps/details?id=com.hatcyl.android.Change_Shoulder_Buttons
Try and see is it work for you
yep it's a solution but it doesn't work on screen off and it get triggered while playing on games (for example in media profile the action in n64oid is executed but next/previous is executed too !)
after remapping search key with xposed additions, screen off option don't work either
EDIT : ok it worked while off-screen but with home and power key , in xposed additions just enable profile of home and power key in off-screen like this :
Home key (screen off) :
- Clic Action : Power Forced
- Double Clic Action : Media Play/Pause
- Long Press Action : Media Next
Power key (screen off) :
- Clic Action : media previous
- Double Clic Action : Disabled
- Long Press Action : power Forced
I need a way to enable the other keys in screen off but it's a kernel matter
Related
Hi is there a way to zoom in opera with volume keys in landscape on Htc Blackstone ?
That would be great !
Ciao
Fred
Indeed very good idea. Does AEB Plus allow for per-program settings? That would rock muchly.
I have AEB+ and have volume up/down mapped to arrow up/down.
Zoom on Opera would be nice. So I explored the app on the phone.
Found nothing so looked at the web site and found this in the FAQ (http://ae.inc.ru/aebplusfaq.php):
"
Is it possible to set application-specific keypress bindings?
No, AEBPlus was not designed to distinguish current context. There are two exceptions only:
Red phone button may be set up to terminate current voice call (if any) or perform actions selected otherwise
Volume slider may be set up to emulate original functions if Today screen / voice call / "Phone" application is active
"
it will be great to have zoom with volume keys in landscape just like Nokia N810...
I made little mod for HTC Desire rooted roms.
It adds physical trackball pressing action (play/pause default Android player) while screen is off and device locked. When unlocked, trackball works normally.
All you must to do is add file (curcial-oj.kl) from attachment to your /system/usr/keylayout/ .
It contains just one line:
Code:
key 272 MEDIA_PLAY_PAUSE WAKE_DROPPED
(key mapped as '272' (trackball) is execute "MEDIA_PLAY_PAUSE" command with 'WAKE_DOPPED' flag)
You can also swap this command for one of these: MEDIA_NEXT (next song) , MEDIA_PREVIOUS (and previous one).
I'm still looking for option to control music player (next/previous) with other buttons, without loosing posibility for eg. changing volume levels by physical keys (if I map volume buttons as changers).
Anyone could help me?
May I suggest a zip to flash?
It would be much easier to use...
Thx, very useful for me
BalooZ said:
May I suggest a zip to flash?
It would be much easier to use...
Click to expand...
Click to collapse
I'll afford your order, soon.
Oligoy said:
Thx, very useful for me
Click to expand...
Click to collapse
Youre welcome.
Does anyone know an application to change (selective like for Acrobat Reader or other non audio apps) the function of the volume keys to a scroll function (eg. up/down with „single click“ and left/right with „double click“)? Perhaps via „/system/usr/keylayout/“
Sorry bro, but I only know about scrolling through volume keys in web browser.
Greetings,
I just wanted to share some tweaks that I've done on my phone to make it much more user-friendly.
Disclaimer: I am not an android expert, until two days ago I had no idea how to root a phone. I realise some CM and other roms can do some of this stuff, but from my linux days I didn't want to go down this road.
Click to expand...
Click to collapse
ROM: This works with the stock Galaxy Y rom, and can be adapted to pretty much any Android phone, I think.
The Main Event: Media control using hardware buttons
1. Root your phone.
2. Install the XPosed installer backported by liudongmiao, found as an attachment from the following link: http://forum.xda-developers.com/showpost.php?p=44034334&postcount=1
2.1. Using the installer, download and install the XPosed framework. For more help on this see this video by galaxyyarchive (the link in the description did not work for me) https://www.youtube.com/watch?v=YsmQsP-lDWU
3. Using the Xposed installer, you will need to download and enable the module Xposed Additions. I also highly recommend the App Settings GB module.
4. Once it's all installed and rebooted, open the Xposed Additions app. Click on Buttons, Add New Key. Press the key you want. Add a condition (screen on / off / lock screen). Select the actions. Repeat this for all the keys and actions that you would like!
How I have my phone configured: Hold volume up to play/pause (regardless of screen condition). Hold volume down to go next song (regardless of screen condition). Hold back to go previous song (unless the screen is off).
It works flawlessly for me, never had unexpected results.
Problems / Tweaks
This method can not control the stock music app!. Most other players seem to work, I like to use RocketPlayer. It also works with pandora and jango.
On my phone, holding any of these buttons will start rocket player, even when the screen is off. So don't accidentally hold down volume down when you desperately want silence!
Do not install the Xposed framework or modules on the SD card (link2sd). They need to be loaded on boot.
How to prevent the screen turning on
1. To prevent media controls from waking the screen, you will need to edit a few files. Using root explorer or similar, navigate to /system/usr/keylayout
2. Open each of the files, and wherever it says VOLUME_UP or VOLUME_DOWN, remove the word WAKE from the same line.
3. Reboot.
Small problem
Rocket player has a really cool lock screen with media control, which works great together with the stock lock screen. However, when this is on, the phone will wake regardless of the above changes, when pressing volume buttons.
Camera Tweaks
If you install the App Settings GB module in XPosed, you can tick the box "show when locked" on the camera. Now when the camera is open and you lock the screen, when you wake the phone you will still be in the camera app! Close it and the screen is still locked.
This App also allows other handy tweaks, like forcing auto rotation or full screen (or not) in any application. Like Gallery!
I've also set holding menu to open the camera using XPosed Additions when the screen is on.
I hope this information will be helpful to someone! All the above, together with link2sd and juicedefender have made me like my phone again!
FlashlightAccessibilityService
I provide here this basic app to toggle flashlight from vol up + vol down and/or power + vol up.
It uses a new feature introduced with Android 12 to toggle accessibility services from these key combos.
How to use:
Install the app.
Go to Settings app, then Accessibility, and Advanced settings.
Select your key combo, then go down and select Activate flashlight.
Enjoy!
Requirements:
Since it is an Android 12 exclusive feature, this will only work on One UI 4.
To get a proper cohesion between this app and the quick setting flashlight tile.
You should consider, but it is not mandatory, to give WRITE_SECURE_SETTINGS permission to this app.
Here it is only used to read secure settings but we need the permission as well.
To do that, two choices:
Using ADB :adb shell pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGSUsing terminal app (as Termux) :pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS
Changelog:
v1: Initial release
v1.1 : Drastic size reduction (removed unneeded dependencies + build optimisation)
v1.2 : Proper handling between the key combination and the quick setting torch tile
This works great! I've always wanted something that's similar to holding the power button for torch on LineageOS on a stock phone! This does the trick!
Thanks..perfect!