FORUMS
Remove All Ads from XDA

[HOWTO] Manually remove 3-dot menu (NO FLASH, any version/stock or custom)

33 posts
Thanks Meter: 12
 
By tknz, Member on 25th May 2012, 12:41 PM
Post Reply Email Thread
Hey guys. I had a frustrating time trying to get this going with stock rom. This method requires no flashing.

REQUIRES ROOT, ADB and SU

Important:

Please note. This will not remap the application switcher to HOME LONG PRESS. I don't know how to do it. If you know, you can reply here and we'll add this part.

Second note. This will remove the ICS menus (such as GMAIL on the top right). Again I'm not sure how to fix these, this is the default behaviour for phones that have a physical menu key. If someone knows of a hack to avoid that, please share.



All you need to do here is edit build.prop and add qemu.hw.mainkeys=1. THen edit your keyboard layout (qwerty.kl file) and change MENU 88 from APP_SWITCHER to MENU.



Step-by-Step

First of all make a back up of build.props and qwerty.kl

> adb pull /system/build.prop build.prop.backup
> adb pull /system/usr/keylayout/qwerty.kl qwerty.kl.backup

Make the system rewriteable

> adb shell
$ su
# mount -o remount,rw /system

Append the following line to the end of build.prop file

# echo qemu.hw.menukeys >> /system/build.prop

Exit out of root and shell

# exit
$ exit

Now we need to remap the menu key.

> adb pull /system/usr/keylayout/qwerty.kl

For this part, we need to edit qwerty.kl and remap the Application Switcher to the Menu key. IF you want to make a backup of your keyboard file you can make a copy of it now (we are just changing one line though)

> notepad qwerty.kl

Edit the last line:
key 88 APP_SWITCH WAKE_DROPPED

to:

key 88 MENU WAKE_DROPPED

If you try to push the file back, you might get a read-only error. So what we do here is make the file writeable and overwrite it.

> adb shell
$ su
# chmod 777 /system/usr/keylayout/qwerty.kl
# exit
$ exit

Now try pushing it!

> adb push qwerty.kl /system/keylayout/qwerty.kl

Reboot and you're done!

The Following 4 Users Say Thank You to tknz For This Useful Post: [ View ] Gift tknz Ad-Free
 
 
25th May 2012, 12:47 PM |#2  
Account currently disabled
Thanks Meter: 267
 
More
Thanks for your contribution .
25th May 2012, 01:09 PM |#3  
Member
Thanks Meter: 1
 
More
Those damn dots !!!!

Stock uk 1.28 on T-Mobile

Sent from my HTC One X using XDA
25th May 2012, 01:37 PM |#4  
Daekin's Avatar
Senior Member
Flag Bratislava
Thanks Meter: 1,836
 
Donate to Me
More
  1. nice, but this probably removes also menu button in action owerflow? (native ICS menu in Play, Gmail etc...)
  2. and there is no way to remap home long press to mnu...is there?
25th May 2012, 01:49 PM |#5  
tknz's Avatar
OP Member
Flag Dunedin
Thanks Meter: 12
 
More
Yup I mentioned it does remove the action overflow button or what ever they all it in GMAIL, Play etc. I've mentioned that.

I don't think there is an easy way to fix that seems like it's a framework change, I tracked it to the PhoneWindowManager class but I'm not sure what names they've used.

Not sure how to do long menu press either. Trying to find out now.
25th May 2012, 02:01 PM |#6  
Daekin's Avatar
Senior Member
Flag Bratislava
Thanks Meter: 1,836
 
Donate to Me
More
yes, that wou;d need to include framework change - as noted in original mod thread

probably you will not be able to make it for long press...original mod makes that by changing SMALI code and not remapping keys...
Post Reply Subscribe to Thread

Tags
3-dot menu, htc one x, legacy menu, old menu, remove menu

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes