[MOD] CM10/CM9/MIUI softkeys & Hardkey re-map

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
Soft key mod for CM9DX2

What this mod will do:

1. Enable on screen soft keys.

2. Disable button backlights.

While looking for a fix for this I stumbled on this app: Button Remapper

Unfortunately this app will not work on our device. I think that I can manually do remap them to work how the app works. But this would mean that everybody would use the buttons for the same thing. I was thinking of using them as media buttons as in menu=previous song home=play/pause back=next song.. let me know what you think.

If you want your hardkeys mapped a certain way just ask nicely! Maybe I can do it for you.

As always.. **Flash at your own risk**

Credits:
Evilisto for a great writeup on how to enable them.
Go thank mattmanwrx for helping me with the framework.apk
motcher41 for some help on the updater script.
Many people on xda for threads that I seached through.
Most of all.. DZK for giving us CM9! :)

How to flash:

Like any other mod.

1. Boot into recovery.
2. Make NANDROID backup!
3. Wipe dalvik/cache. (NO NEED TO WIPE DATA/FACTORY RESET ;))
4. Flash zip.
5. Reboot.

CM10
Alpha 3

CM9

Beta 1 softkeys

Beta 1 disable

MIUI 2.8.10

2.8.10 enable

2.8.10 disable

By going to:
Settings >
System >
Navigation bar >

You can edit and add or remove features of navigation bar. Thanks again dark_system for pointing this out.


Hardkey remap (these will work for all versions even though they are labeled for alpha 4)
Flash this after softkey mod if you want your hardkeys to be media buttons:
Menu= Previous song
Home= Play/pause
Back button= Next song
Please note:These will work while screen is OFF, so if you have issues with hitting the buttons while your phone is in your pocket I do not suggest flashing. I did it this way because I play music off of my phone a LOT and I do not want to wake it every time I wanted to go to the next song.

This zip will do the same as above, but will also use the search key as a camera button like the one on a droid x for example.

This one is made for gamers. It will turn your hard keys into dpad keys.
Menu= Dpad left
Home= Dpad up
Back= Dpad down
Search= Dpad right

And here is the zip for the stock hardkeys so you can try out both the mod and hardkey zips and flash back to stock easily.
 

Attachments

Last edited:

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
The mods here will come from the thread in jsgraphicart's post in this post. Just to be clear, this is not my work, it is work of the developers who make the originals in that thread.

I am not going to make a zip for every one of the mods, but if a couple people request it I can get one made.

Newest MIUI softkeys come with the robotov2 style.

I have made a zip for CM9 Beta one and ParanoidAndroid using the ics blue reflection. (Although the PA one looks funky, not sure about the others yet)

CM9 Beta 1- Will only work if you already have the softkey mod installed.

ParanoidAndroid

You can also do this yourself, it is not very hard.

1. Take one of the softkey mods for your rom.

2. Unzip the files and navigate to system/app/SystemUI.apk

3. Extract the SystemUI.apk files and navigate to res/drawable-hdpi

4. Unzip the mod with the softkey you would like and navigate to the folders with the softkey images.

5. Move the images from the you want into drawable-hdpi.

6. Rezip all contents of SystemUI.apk.(assets, meta-inf, androidmanifest, ect.) Make you have .apk on the end.

7. Place your new SystemUI.apk back in system/app and delete what was leftover.

8. Rezip the contents of the mod and sign using this tool.

9. Flash and enjoy.​
 
Last edited:

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
that's pretty neat/weird that it makes your settings app think it is on a tablet.
that's how it looks when on a tablet.

Sent from my Galaxy Nexus using Tapatalk 2
Yeah, I don't understand why that happens. I didn't touch anything other than change the nav bar value to true and add a few png files to system ui. Looks alright in landscape, it's hardly useable in portrait though. I'm trying to find a fix in the thread that I got the directions for this from and it seems like there are a lot of people that posted with the same problem but none posted a solution, at least that I could find.

Sent from my CM9'ed DX2 using Tapatalk 2
 
  • Like
Reactions: optimusprimeuya

Furioustylez

Senior Member
Jun 27, 2011
381
153
0
Do not flash this! You've been warned. This does not work in Alpha 4. Causes phone to hang on the Caynogen 9 boot screen. Luckily I backed up my rom.

Sent using your Girlfriends CM9 Droid X2
 

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
Do not flash this! You've been warned. This does not work in Alpha 4. Causes phone to hang on the Caynogen 9 boot screen. Luckily I backed up my rom.

Sent using your Girlfriends CM9 Droid X2
If you did try to flash you could have just reflashed cm9 without wiping data.
Also, I'm glad you made a backup.. But the op does states that the zip was only tested on alpha 3.

Sent from my MB870 using Tapatalk 2
 
Last edited:
  • Like
Reactions: optimusprimeuya

gdeeble

Senior Member
Oct 8, 2011
95
7
0
I love the soft buttons, and can't wait for them to be done for Alpha 4, but curious, is there any way for them to be located on the bottom at all times(Portrait or Landscape Mode)?
 

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
I don't think so, that's the way they were designed. I googled to see if there was any kind of mod out there that would do this and I couldn't find anything. It's probably possible, but I don't think anybody wants to put in that much time.
 

jsgraphicart

Senior Member
Nov 25, 2011
6,281
1,876
253
Yeah, I don't understand why that happens. I didn't touch anything other than change the nav bar value to true and add a few png files to system ui. Looks alright in landscape, it's hardly useable in portrait though. I'm trying to find a fix in the thread that I got the directions for this from and it seems like there are a lot of people that posted with the same problem but none posted a solution, at least that I could find.

Sent from my CM9'ed DX2 using Tapatalk 2
What is your DPI set at? I dont know how android works behing the scenes but maybe the settings app has changed to tablet version because of the DPI. I know my TouchPads DPI is set to 140. I think phones have a higher DPI though.
 

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
What is your DPI set at? I dont know how android works behing the scenes but maybe the settings app has changed to tablet version because of the DPI. I know my TouchPads DPI is set to 140. I think phones have a higher DPI though.
The default on our phone is 240. Which is what mine is set at. I have no idea why the tablet settings come up. It's supposed to if you change the dpi to 160 or less.. So I'm lost there lol.

Sent from my MB870 using Tapatalk 2
 

jsgraphicart

Senior Member
Nov 25, 2011
6,281
1,876
253
The default on our phone is 240. Which is what mine is set at. I have no idea why the tablet settings come up. It's supposed to if you change the dpi to 160 or less.. So I'm lost there lol.

Sent from my MB870 using Tapatalk 2
Thats what I thought. Hmm, thats weird.
 

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
Well I am in the process of sbf and re-installing cm9 after flashing this mod.
Not sure what I did wrong but it just hangs on cid at boot-up.

Be cautious with this mod!
Hmm I haven't had any problems flashing back and forth. And you shouldn't have to sbf, recovery should still be installed, you should either have a nandroid backup or you can flash cm9 again with wiping only cache and dalvik.

Now which file were you trying to flash and which version of cm9 were you on? And what steps did you take.

Sent from my MB870 using Tapatalk 2
 

dark_system

Senior Member
Jan 20, 2012
193
80
0
FL
I was flashing the latest alpha 4 mod file, and I am on cm9 alpha 4. I didn't sbf. just restored nandroid. I thought I was going to have to since it didn't go into recovery at first. But I pulled battery and then was able too.

I wiped the big three and then flashed the mod .zip through bsr.
Then it just stays at boot animation forever. I pulled battery and same thing. 3 times.
 

csking33

Senior Member
Sep 19, 2011
607
962
133
Buffalo
I was flashing the latest alpha 4 mod file, and I am on cm9 alpha 4. I didn't sbf. just restored nandroid. I thought I was going to have to since it didn't go into recovery at first. But I pulled battery and then was able too.

I wiped the big three and then flashed the mod .zip through bsr.
Then it just stays at boot animation forever. I pulled battery and same thing. 3 times.
Don't wipe data/system reset. This only modifies the ROM.
 
Last edited:

jsgraphicart

Senior Member
Nov 25, 2011
6,281
1,876
253
I was flashing the latest alpha 4 mod file, and I am on cm9 alpha 4. I didn't sbf. just restored nandroid. I thought I was going to have to since it didn't go into recovery at first. But I pulled battery and then was able too.

I wiped the big three and then flashed the mod .zip through bsr.
Then it just stays at boot animation forever. I pulled battery and same thing. 3 times.
Also note that when you wipe the dalvik, it takes longer to boot since it has to build it again. How long did you wait before concluding it was stuck?