Why do headphone remote do not fully function on some custom roms? - Xiaomi Redmi 4X Questions & Answers

I've tried a number of different ROMs (ViperOS, a few AOSP, and various others based on Lineage 14) and most of them do not seem to register key presses for the volume (+/-) on my headphone remote control. I know my headphones works because it worked when I was previously using the global stock MIUI ROM and it also works on a Samsung S4 and S8.
Only the ViperOS and AOKP one registers the key presses albeit skipping the tracks instead of changing the volume. So I have to use a Headset Control Center as a workaround to map the keys to the correct function.
What is missing and is there a way to get it to work without using a app as a workaround?

topcorner said:
I've tried a number of different ROMs (ViperOS, a few AOSP, and various others based on Lineage 14) and most of them do not seem to register key presses for the volume (+/-) on my headphone remote control. I know my headphones works because it worked when I was previously using the global stock MIUI ROM and it also works on a Samsung S4 and S8.
Only the ViperOS and AOKP one registers the key presses albeit skipping the tracks instead of changing the volume. So I have to use a Headset Control Center as a workaround to map the keys to the correct function.
What is missing and is there a way to get it to work without using a app as a workaround?
Click to expand...
Click to collapse
Even I want to know....

add lines to the /system/usr/keylayout/Generic.kl file
Code:
key 250 VOLUME_DOWN
key 251 VOLUME_UP

ijolashonda said:
add lines to the /system/usr/keylayout/Generic.kl file
Code:
key 250 VOLUME_DOWN
key 251 VOLUME_UP
Click to expand...
Click to collapse
Thanks!
I commented out the existing entries for key 250 and 251 and replace them with these, however, the back and the home keys on the phone itself stop working. So I had to restore the unchanged version of the file back.

topcorner said:
I've tried a number of different ROMs (ViperOS, a few AOSP, and various others based on Lineage 14) and most of them do not seem to register key presses for the volume (+/-) on my headphone remote control. I know my headphones works because it worked when I was previously using the global stock MIUI ROM and it also works on a Samsung S4 and S8.
Only the ViperOS and AOKP one registers the key presses albeit skipping the tracks instead of changing the volume. So I have to use a Headset Control Center as a workaround to map the keys to the correct function.
What is missing and is there a way to get it to work without using a app as a workaround?
Click to expand...
Click to collapse
Same Issues on RR, CrDroid And also The High-res audio output option in PowerAMP Alpha v704-Uni is not working (even in MIUI 9 Too) soo reverting back to MIUI 8 for Now... In near future this headphone control and that High-res output gets solved I will lovings be a RR ROM user. But Music is a greater priority :highfive:

ijolashonda said:
add lines to the /system/usr/keylayout/Generic.kl file
Code:
key 250 VOLUME_DOWN
key 251 VOLUME_UP
Click to expand...
Click to collapse
Thanks dude, working fine with my Soundmagic E10c :highfive:
On RR N-Final.

topcorner said:
Thanks!
I commented out the existing entries for key 250 and 251 and replace them with these, however, the back and the home keys on the phone itself stop working. So I had to restore the unchanged version of the file back.
Click to expand...
Click to collapse
Same thing happened with me at first. Don't replace any other key layouts or add in between key layouts. Add them at the end of the file. Seems to work fine with me now. However, I still don't know how to get double press working.
Something I'm gonna try figuring out tonight.

__PG__ said:
Thanks dude, working fine with my Soundmagic E10c :highfive:
On RR N-Final.
Click to expand...
Click to collapse
I have a Soundmagic as well (E50 though), does everything work? Such as Triple press for previous track and double press for next track.
mfu.khan said:
Same thing happened with me at first. Don't replace any other key layouts or add in between key layouts. Add them at the end of the file. Seems to work fine with me now. However, I still don't know how to get double press working.
Something I'm gonna try figuring out tonight.
Click to expand...
Click to collapse
Thank you! I'll give this a go.
If double press doesn't work for you, try Headset Control Center from play store as an alternative. It's better than nothing.

topcorner said:
I have a Soundmagic as well (E50 though), does everything work? Such as Triple press for previous track and double press for next track
Click to expand...
Click to collapse
I am using PowerAMP music player. The centre key is doing the job just fine. Double press for next track & triple for Previous. Now Vol +/- is also working with it

__PG__ said:
I am using PowerAMP music player. The centre key is doing the job just fine. Double press for next track & triple for Previous. Now Vol +/- is also working with it
Click to expand...
Click to collapse
Likewise with PowerAMP. Excellent news!

Related

[Resolved] Remap volume control buttons

Sorry if it was already covered elsewhere, - is there any way to remap auctions for these side buttons on Diamond ? I don't change volume level that often, all done through profiles, imho up/down arrow or scroll function would be much more beneficial ...
Update: AEButton Plus does the thing perfectly, thanks to Geekess for the hint
volume up/down is OK but long press may be very useful for Explorer, task manager etc...
In other words configurable .. would be great for camera too, not easy to make pictures with central button, not stable enough ...
I did not follow development news for previous HTCs, so not sure if it was ever done before ...the fact is that these buttons are not available from Settings (
You can use PQZ II for remapping the volume key. Try to google it.
csc0503 said:
You can use PQZ II for remapping the volume key. Try to google it.
Click to expand...
Click to collapse
thanks mate, you are a star
http://www.nicque.com/PQz/PQzII.htm
no version for diamond yet, will play with WM6 version tonight ...
hertc said:
will play with WM6 version tonight ...
Click to expand...
Click to collapse
well, does not look good at the end, maybe these are hidden features, but I could not find a way of how to use the volume buttons independently (they work as Ctrl or Alt, no problem here, but I wanted to use them as one button - one action, not two buttons - one action). Another problem, Up/Down or Scroll are not available for selection as actions ....
So it should be possible to change that, the matter of finding the right program now ..
Wish there were more buttons on Diamond, or at least proper navigation buttons ...
Hmm... for me it does not work, get the message:
keyboard hook faild
any suggestions?
What works for me is AEButton Plus (payware, no affiliation). I have reconfigured my volume buttons to single press = arrow up/down and long press to volume. The program has a nice function: you can choose to let the volume buttons have their default behavior during a phonecall.
I'm using the trial right now, but if I can't find a freeware program that has the same functionality I will probably buy this.
May I ask how you've gone on with AEButton? I'd be interested to hear your long(er) term experience of having used it as it sounds like exactly what I want/need.
Mathew
all good, does what it says, configured it once and just using since ..
Tried latest HButton 2.3, but think it is not compatible ... anyone else tried it?

Would you recommend remapping the volume buttons?

Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
If you're using nookie Froyo, you can try the MENU/BACK soft buttons in the status bar mod, instead of remapping the vol+/- buttons. I've been using it since it came out, and can confim it works for nookie Froyo 6.7. Here's the link to the original thread: http://forum.xda-developers.com/showthread.php?t=932631
It does have it's issues, mainly with the stock browser, and causing it to FC. Other than that I have not noticed any other problems.
If you are interested in useing the mod, but don't know how to install it, let me know. I'll pm you or post instructions.
I absolutely recommend remapping the volume buttons. Softkeys is nice, but kind of a pain sometimes. For instance, when I would view pictures in the XDA APP, I would have to restart the app instead of backing out, for some reason softkeys wouldnt let me back out of the picture viewer. It's just much easier to have the menu and back buttons always available than rely on software. I installed volume volume control if I need to adjust volume for some reason.
Is there an app that puts volume in the status bar that anyone knows of?
buffnutz1 said:
Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
Click to expand...
Click to collapse
Yup... I've got a Pandigital Novel(white v2) w/custom fw and it'd be essentially useless w/o re-mapping the vol keys to menu and back along with soft-keys in the notification bar...
NC has one up on the WPDN though, it has the n home key plus the 2 vol keys and volume can be controlled through setting or a quick-settings app anyways or by adding soft-keys... still no substitue for physical keys or capacitive screen keys though, unfortunately... (spoilt by gtab with the full complement...)
-------------
buffnutz1 said:
I'm sure you guys know where I'm screwing up. After I adb pull, I only get this
/system/usr/keylayout/twl4030-keypad.kl -> ./twl4030-keypad.kl
/system/usr/keylayout/qwerty.kl -> ./qwerty.kl
/system/usr/keylayout/AVRCP.kl -> ./AVRCP.kl
but it says to edit " 'TWL4030_Keypad.kl' and 'omap_twl4030keypad.kl' "with your text editor of choice; I used vi, always a safe choice.
I don't have the omap. what should I do?
Click to expand...
Click to collapse
Just modify the qwerty.kl in the place of omap. That's what I did and things are working fine.
--ex
Love my remapped buttons and i saved the originals so i can go back anytime i wish.
buffnutz1 said:
Is there an app that puts volume in the status bar that anyone knows of?
Click to expand...
Click to collapse
I am on the stock 1.1 rooted and have mapped my volume buttons - I have tried the other ones, and I MUCH prefer having hard buttons.
I downloaded a volume app "Volume Master Free". It has about 5 different volume controls, but I only use the system volume and the media volume controls.
I use Zeam as home screen; and I put a shortcut to Volume Master on the bottom right of my Zeam shortcut bar. It works very well. I do need to go to the home screen to change volume; but I can tap on the notification bar and toggle mute, so that works for me.
Yes, it makes a huge difference on the stock rom and froyo -- though honeycomb's soft buttons eliminate the need to do so.
Can't recommend remapping the keys enough. On froyo it makes a huge difference in functionality on. The device, life is a pain without it.
how do you remap the vol buttons? i would love to do it
TweetyBear said:
how do you remap the vol buttons? i would love to do it
Click to expand...
Click to collapse
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
I remapped.
I also recommend remapping your volume buttons. It's handy having tactile buttons for the back and menu functions.
What really sold me on remapping was that I didn't like to have a Softkeys button floating on the home screen. Without a floating button, I would have to double tap the hardware "N" button to bring up the Softkeys interface, then hit "menu" or "back." If I have to double tap a hardware button to use "menu" or "back," I might as well just remap those functions to the volume buttons and use a single tap.
evilxenu said:
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
Click to expand...
Click to collapse
thanks. will attempt over the weekend
can remapping the volume buttons be done when running cm7 nightlies off SD ?
I didn't find a definitive answer
I ran with the CM7 softkeys, Button Savior, remapped volume keys and I just finally settled on zMooth.

power button options

is there a way to add options when we long press the power button? optionto not only shutdown the phone but also reboot.
The CyanogenMod (CM7) ROM, does this. If you can live with that ROM (or any ROM based on that), I can highly recommend this one from wgspoelstra.
does it have the 64RAM hack (freeing up an extra 64 mb ram)
Yes, CM7 uses the vorkKernel which has this hack.
thanks! i have the WGSPOELSTRA on my phone, working great, i am on v.26, i haven't updated to the latest because i'm seeinig some negative feedback on the release
It would be great to use the volume buttons to unlock the screen.
Anyone knows if it could be plausible?
i can't find it again...i knew i found an option that does that... now i'm not sure if it's in the slick custom roms or the WGSPOELSTRA's
Graffin said:
It would be great to use the volume buttons to unlock the screen.
Anyone knows if it could be plausible?
Click to expand...
Click to collapse
CM7 has this functionality.
yan go to CM7 settings --> input --> and volume rocker wake option
baste07 said:
is there a way to add options when we long press the power button? optionto not only shutdown the phone but also reboot.
Click to expand...
Click to collapse
Whilst it is possible with stock it's a lot of framework edits. I took a look and hacked together a reboot proof of concept... you have to call an existing function and LG have obfuscated this function in their framework...
Graffin said:
It would be great to use the volume buttons to unlock the screen.
Anyone knows if it could be plausible?
Click to expand...
Click to collapse
WidgetLocker supports this.
baste07 said:
yan go to CM7 settings --> input --> and volume rocker wake option
Click to expand...
Click to collapse
Brilliant. I love LG 2X but the power button at the top and volume buttons on the right are a big fail in my opinion. I might be too use to the layout on SGS.
Having said that I don't mind if there is a workaround and this for me is perfect. Thanks.

[Q] Disable Capacitive Buttons With CM9 Installed

Is there a way to disable the four capacitive buttons on the Tab with CM9 installed? I downloaded Tab Button Remapper from the market, but it only FC after giving it root permission.
Not yet at the moment. Perhaps you could try disabling the soft buttons instead. That's why I did for now anyways.
Sent from a Galaxy S 2 Far Away
Yes u can, install this zip with recovery mod in your external sd. This fix and remove soft bottoms and enable usb mass storage when u conect to pc
Excellent! Thank you both for the reply and tavooluis for the file!
EDIT-Ah well I guess I wasn't clear enough on the buttons i wanted disabled--the four buttons on the bottom of the Tab (menu, home, back, search) not the onscreen buttons, but, hey, it IS great to have USB working!
lambstone said:
Not yet at the moment. Perhaps you could try disabling the soft buttons instead. That's why I did for now anyways.
Sent from a Galaxy S 2 Far Away
Click to expand...
Click to collapse
Ok, figured it out......I'm not a DEV, so especially [insert standard disclaimers here].
I used ES File Explorer to go to /system/usr/keylayout/ and I commented out (#) all four of the following entries in AT42QT602240_Touchscreen.kl:
key 139 MENU WAKE_DROPPED VIRTUAL
key 102 HOME WAKE_DROPPED VIRTUAL
key 158 BACK WAKE_DROPPED VIRTUAL
key 217 SEARCH WAKE_DROPPED VIRTUAL
I, personally, like using just the onscreen buttons. Now to get the LEDs to stay off. For now I'm using Button Brightness Widget from the market to turn them off while I'm using it.
ICS Soft buttons only (disabled & dim-able capacitive buttons!)
NovaChief said:
Ok, figured it out......I'm not a DEV, so especially [insert standard disclaimers here].
I used ES File Explorer to go to /system/usr/keylayout/ and I commented out (#) all four of the following entries in AT42QT602240_Touchscreen.kl:
key 139 MENU WAKE_DROPPED VIRTUAL
key 102 HOME WAKE_DROPPED VIRTUAL
key 158 BACK WAKE_DROPPED VIRTUAL
key 217 SEARCH WAKE_DROPPED VIRTUAL
I, personally, like using just the onscreen buttons. Now to get the LEDs to stay off. For now I'm using Button Brightness Widget from the market to turn them off while I'm using it.
Click to expand...
Click to collapse
Thanks a ton for this info... maybe this tidbit will help you a bit -
Did you know that there is a button back-light on/off function built in the ICS CM9 kernel for our Tabs !
koxudaxi developed this in his own kernel and yes it is in there
To use, simply tap and hold the menu key for like 3 seconds then release !
Do the same to toggle back on.
***Edit - I got to thinking....that with the buttons disabled then ofcourse koxudaxi's switcher wouldn't work right?
BUT to my surprise now I have CM9, soft buttons only, with capacitive buttons disabled, and press menu for 3 secs - lights out !
I am now super happy with ICS on tab
Thanks to koxudaxi, humberos for kernel, and NovaChief for this missing puzzle piece.
-peace-
nadiros said:
Thanks a ton for this info... maybe this tidbit will help you a bit -
Did you know that there is a button back-light on/off function built in the ICS CM9 kernel for our Tabs !
koxudaxi developed this in his own kernel and yes it is in there
To use, simply tap and hold the menu key for like 3 seconds then release !
Do the same to toggle back on.
***Edit - I got to thinking....that with the buttons disabled then ofcourse koxudaxi's switcher wouldn't work right?
BUT to my surprise now I have CM9, soft buttons only, with capacitive buttons disabled, and press menu for 3 secs - lights out !
I am now super happy with ICS on tab
Thanks to koxudaxi, humberos for kernel, and NovaChief for this missing puzzle piece.
-peace-
Click to expand...
Click to collapse
Is usb storage working for you? The stock cm9 usb storage I mean. I flashed the zip provided to remove the soft buttons and it worked. So if you did not flash the particular "fix" and instead just disabled the capacitive buttons, does the usb storage work?
lambstone said:
Is usb storage working for you? The stock cm9 usb storage I mean. I flashed the zip provided to remove the soft buttons and it worked. So if you did not flash the particular "fix" and instead just disabled the capacitive buttons, does the usb storage work?
Click to expand...
Click to collapse
No it's not working ATM. I did flash the zip, but when I noticed that the onscreen buttons were gone I flashed back. I did copy/paste the "volds" that was posted in the DEV thread to switch the mount points, but have not gotten usb to pc to work yet. Not a big deal for me right now because i can use BT to transfer files to/from the pc. Takes a bit longer than USB, but it works.
nadiros said:
Did you know that there is a button back-light on/off function built in the ICS CM9 kernel for our Tabs !
koxudaxi developed this in his own kernel and yes it is in there
To use, simply tap and hold the menu key for like 3 seconds then release !
Do the same to toggle back on.
***Edit - I got to thinking....that with the buttons disabled then ofcourse koxudaxi's switcher wouldn't work right?
BUT to my surprise now I have CM9, soft buttons only, with capacitive buttons disabled, and press menu for 3 secs - lights out !
I am now super happy with ICS on tab
Thanks to koxudaxi, humberos for kernel, and NovaChief for this missing puzzle piece.
-peace-
Click to expand...
Click to collapse
That, plus BLN Control Free keeps the lights off perfectly. Thanks for that tip!
oh dear , how i install Cm9 ??? help me and please got it screen shoot in topic
lambstone said:
Is usb storage working for you? The stock cm9 usb storage I mean. I flashed the zip provided to remove the soft buttons and it worked. So if you did not flash the particular "fix" and instead just disabled the capacitive buttons, does the usb storage work?
Click to expand...
Click to collapse
Eh - There appears to be conflicting info in this thread.... OP wanted capacitive "hard" buttons disabled.
The "sbradymobile_fixes.zip" that was posted to help removes the soft buttons entirely
and that is just counter productive
***in short DO NOT flash the zip if you wish to achieve what the OP wanted***
Posts #5 & #6 have all the info needed
-peace-
IT WORKS! Thank you so much. Finally,a great ICS experience on my old Tab.
Nice!
What roms are you guys using?
Maybe we could get the chefs to cook this in as activated by default?
Sent from my GX-I9932 using XDA App

Is it possible to replace the menu button with the ICS Task Manager/Multitasker?

Is it possible to replace the menu button with the ICS Task Manager/Multitasker? like in the galaxy Nexus? I think even the icon looks similar in a way to a list of apps. This would be useful especially since ICS deals with this perfectly by showing a menu button when it doesn't detect it as a hardware button.
What do you guys think about this idea?
Why not just hold the home button to bring up recent apps..
Sent from my GT-N7000 using xda premium
joshnichols189 said:
Why not just hold the home button to bring up recent apps..
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
pachi72 said:
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
Click to expand...
Click to collapse
Agree. Home buttons degrade and break.
pachi72 said:
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
Click to expand...
Click to collapse
VTEChump said:
Agree. Home buttons degrade and break.
Click to expand...
Click to collapse
Yep, and because given the choice, I'm sure most will opt to use it this way. the menu button is getting deprecated as a hardware button and being implemented more and more inside applications.
Hopefully some more ICS ROM devs will see this and review this suggestion. I would love to know what they have to say about it.
I wouldnt mind a widget to do it either. That shouldnt be to hard to do.
moyajaya said:
Is it possible to replace the menu button with the ICS Task Manager/Multitasker? like in the galaxy Nexus? I think even the icon looks similar in a way to a list of apps. This would be useful especially since ICS deals with this perfectly by showing a menu button when it doesn't detect it as a hardware button.
What do you guys think about this idea?
Click to expand...
Click to collapse
+1.
Regards.
This was the first thing I wanted to do after installing ICS. The capacative buttons are mapped in /system/usr/keylayout/melfas-touchkey.kl;
Code:
key 158 BACK WAKE
key 139 MENU WAKE
I'm just not sure what to replace 'MENU' with. 'TASK'?
Hate to double post but I thought I'd share what I've discovered.
I tried replacing 'MENU' with 'APP_SWITCH' in melfas-touchkey.kl and sec_touchkey.kl and got the menu button to act just like the recents button, however there was then no way to access the menu
I had a brief look at the android source code and it looks like the value that decides to show the action overflow button in the toolbar is set depending whether the on screen buttons are being used. Not at all sure about that though and I've seen the new HTC one phones have a hardware recents button replacing the menu so it can't be impossible.
bootlessjam said:
Hate to double post but I thought I'd share what I've discovered.
I tried replacing 'MENU' with 'APP_SWITCH' in melfas-touchkey.kl and sec_touchkey.kl and got the menu button to act just like the recents button, however there was then no way to access the menu
I had a brief look at the android source code and it looks like the value that decides to show the action overflow button in the toolbar is set depending whether the on screen buttons are being used. Not at all sure about that though and I've seen the new HTC one phones have a hardware recents button replacing the menu so it can't be impossible.
Click to expand...
Click to collapse
Thank you for trying this and letting us know about the results. I was thinking if all fails maybe the search option that appears when you click and hold the menu button could be replaced with the menu?
Clicking the Old menu button = New app switcher
Holding the old menu button = Menu
how about that? I think most apps include a search icon if/when they include search functionality.
Had a brainwave today and got it 90% there. I decompiled framework-res.apk and enabled the navigation bar AND resized it to 0. This means the action overflow button shows up in apps without the galaxy nexus-like software keys getting in the way. I then remapped the menu key and it is working like a charm
Of course then there is the little issue of bringing up the menu when using a pre honeycomb app. The simplest solution for me was to use the pen's button+swipe up gesture. This isn't ideal and doesn't even work for people using CM9 or stock ICS.
Here is the modified framework-res for the Team Rocket ROM v1.5:
dl.dropbox dot com/u/2340506/navbarhidden.zip
These forums don't trust me with links
Install with CWM recovery. Don't use it on any other ROM! I can't even guarantee it'll work on every team rocket rom. I'm too lazy to load every ICS ROM but if you post your framework-res.apk I can edit it for you.
After you can remap the hardware keys in /system/usr/keylayout/melfas-touchkey.kl and /system/usr/keylayout/sec_touchkey.kl like I mentioned earlier with Root Explorer or ES File Explorer. I have it set up to mimic the HTC one phones and the galaxy nexus's layout, since I keep the key lights off.
Hopefully this is useful to people. A better way to access the menu on old apps should be easier to do once people start tinkering with the HTC one phones.
bootlessjam said:
Had a brainwave today and got it 90% there. I decompiled framework-res.apk and enabled the navigation bar AND resized it to 0. This means the action overflow button shows up in apps without the galaxy nexus-like software keys getting in the way. I then remapped the menu key and it is working like a charm
Of course then there is the little issue of bringing up the menu when using a pre honeycomb app. The simplest solution for me was to use the pen's button+swipe up gesture. This isn't ideal and doesn't even work for people using CM9 or stock ICS.
Here is the modified framework-res for the Team Rocket ROM v1.5:
dl.dropbox dot com/u/2340506/navbarhidden.zip
These forums don't trust me with links
Install with CWM recovery. Don't use it on any other ROM! I can't even guarantee it'll work on every team rocket rom. I'm too lazy to load every ICS ROM but if you post your framework-res.apk I can edit it for you.
After you can remap the hardware keys in /system/usr/keylayout/melfas-touchkey.kl and /system/usr/keylayout/sec_touchkey.kl like I mentioned earlier with Root Explorer or ES File Explorer. I have it set up to mimic the HTC one phones and the galaxy nexus's layout, since I keep the key lights off.
Hopefully this is useful to people. A better way to access the menu on old apps should be easier to do once people start tinkering with the HTC one phones.
Click to expand...
Click to collapse
Great finds! Thumbs up!
Thank you for your efforts!
I would love to try those but I moved back to Gingerbread for the time being. ICS in the note is far from being a daily driver for me. A lots of bugs and battery drains compared to Gingerbread. Hopefully this will change quickly. I trust the dev community and i'm sure they'll beat samsung in having stable ICS releases...
Back to ICS. Using ICS Stunner 4.3 ROM with the new LP5 kernel and modem. This setup is simply stunning. Best ROM I've tried so far.
Back to subject, how can the process go for AOSP ROMs? Like this one I'm using...
Anyone found any other way around this? Thanks !
Sent from my GT-N7000 using Tapatalk 2 Beta-5
moyajaya said:
Back to ICS. Using ICS Stunner 4.3 ROM with the new LP5 kernel and modem. This setup is simply stunning. Best ROM I've tried so far.
Back to subject, how can the process go for AOSP ROMs? Like this one I'm using...
Anyone found any other way around this? Thanks !
Sent from my GT-N7000 using Tapatalk 2 Beta-5
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1450138
I looked into doing the same thing as you did only because I love the tablet layout and holding the home button doesn't bring it up.
In order to get what you and a few others would want on select roms, the source for the framework would have to be adjusted as said in the thread, meaning each dev would have to implement this independently.
The second thing is alread mentioned in this thread, which is changing the key layout.
You can hope that the dev has no issues with inserting it into their build.
NOT changing the source but editing the key layout will only bring up the a Gingerbread styled task switcher. I've tried ;_;
I personally might I add, would just love the same hold the home button functionality while in tablet mode.
evilisto said:
1) change source code related to APP_SWITCH keycode.
platform/frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
from :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0) {
showOrHideRecentAppsDialog(RECENT_APPS_BEHAVIOR_SHOW_OR_DISMISS);
}
return -1;
}
to :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0 && !keyguardOn) {
try {
mStatusBarService.toggleRecentApps();
} catch (RemoteException e) {
Slog.e(TAG, "RemoteException when showing recent apps", e);
}
}
return -1;
}
2) edit your keylayout files..
/system/usr/keylayout/
for example, if you want to use search key to recent apps on nexus s...
cypress-touchkey.kl
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
and mxt224_ts_input.kl (it would be better to edit both files..)
Code:
key 158 BACK WAKE
key 139 MENU WAKE
key 217 APP_SWITCH WAKE
key 102 HOME WAKE
Click to expand...
Click to collapse

Categories

Resources