Hello everyone!
I've been in touch with
he_stheone64 who put together this thread for deodexed ROMs and he's pointed me to the actual smali files that need changing to get this to work on other ROMs. Credits also go to
blubbers and
Virtuous Team who pioneered and finetuned the code for 1.53 base.
Following his suggestions I managed to put together a flashable
button-mod.zip for
HTC Stock ROM v1.78.401.2 (EU) - see at the bottom. This mod will
completely remove the ICS 3-dot menu and will
remap the recent apps button to work as menu button and
long-press home to bring up recent apps.[/SIZE]
If for some reason you want to go back to the stock configuration (i.e. with 3-dot soft menu button), I've also prepared a
restore_old_button_files.zip that you can flash - see at the bottom.
As always, before you flash ANYTHING, I strongly recommend that you do a fresh nandroid backup so you can go back to your initial configuration in case something goes wrong in the process!
WARNINGS:
1. This mod has been built and tested on HTC Stock ROM v1.78.401.2 (EU) - Network Unbranded. If you flash this mod on any other ROM (e.g. network branded) you are likely to get stuck at boot or a boot loop!
2. If you have manually changed your build.prop and cy8c-touchkey.kl files, DO NOT flash this as it will overwrite your old files!
NOTE: When I get a bit more time I'll try to write a tutorial on how to manually patch the
android.policy.odex file using the smali files from
he_stheone64's mod.