yashsingh1/xdaforums huggingface dataset:
[Desire Themes and Apps] esk02k:
Check this thread out :

[TUTORIAL] Where to find the colors for making a theme

http://xdaforums.com/showthread.php?t=831715

You want to get apk manager so you can decomplile your

apk(framework) then make your changes to the xml then

recompile it but take note of this :

I highly recommend that you replace the apktool.jar from the apkmanager with

version 1.3.1. Version 1.3.2 can create not working framework-res.apk files.

Version 1.3.1 is creating *-v4 drawable-directory names. Be sure to remove the

-v4 or add it to the directory names you want to keep.

(taken from tutorial thread)

If theres anything in particular (colour-wise) that you want to know

you can ask me and see if i know it.
[Desire Themes and Apps] Ninolina:
OK..:-) Thanks..:-) I saw that thread but I didn't think it has an answers to my questions.. I'll take a look on that..:-) Thanks again..:-)
[Desire Themes and Apps] ara.armagedon:
Hey guys

I cant flash the theme and i dont know why it just show me an error whichs says somthings wrong with recovery...

Can u help me?
[Streak 5 General] dave.5:
Guys need some advice. I have a problem. I tried to update to 2.2 but I ended up with the same jams on the Dell screen. I tried to flash through update.pkg However, when I installed in recovery mode using the SD update.pkg nothing happens, ended with the black screen. When I try again and again through the method FastBoot I still just get the Dell logo stucked. The only thing I managed to Establish that because I clockworkrecovery flashed 1.6, but O2, i need not branded (00, not 21 or 31), and crazy flashing LED buttons home / back / menu. I need to put there 1.6tku official classical ideal. Please advice ... Any help appreciated. Thanks for responses, it makes mi crazy too.
[Streak 5 General] topshelf95:
If u have white dell streak u cant upgrade conventional way. Check out forum at modaco. Special software tool needed they are working on a tutorial.
[Android Apps and Games] appelflap:
Important questions will be marked with the tag FAQ when they are answered in this thread. Search for FAQ with the "search this thread" button to fetch them.

-------- Update notes --------

Update (Jan 22): New, separate version for the Samsung Galaxy S (This version is not compatible with the Galaxy S variants like the Captivate and Vibrant. A version compatible with these devices will be posted soon)

A special version for the Galaxy Tab can be found here .

------ Initial Announcement --------

* Beta* for full rooted devices. (NAND unlocked. Full, permanent write access to the system dir is needed)

Tool to remap the hardware buttons. Or better: a generic tool to edit the key layout map file Android uses to map the keys. (For info about key layout files, see:

http://xdaforums.com/showthread.php?t=695936 and

http://source.android.com/porting/keymaps_keyboard_input.html)

Supported devices: All, except Samsung Galaxy S variants (only partial support. Update: new, separate version for SGS attached to this post), Droid 2 and Huawei U8110/Android 2.1. On the Vibrate and Captivate only a few buttons can be remapped.

(If you have issues with your device, please let me know)

Functions that can be assigned:

"Power",
"Home",
"Menu",
"Back",
"Search",
"Volume up",
"Volume down",
"Camera",
"Focus",
"Endcall",
"Call",
"Media Play Pause",
"Media Stop",
"Media Next",
"Media Previous",
"Media Rewind",
"Media Fast Forward",
"Dpad center",
"Dpad up",
"Dpad down",
"Dpad left",
"Dpad right"

As it with all root apps a Nandroid backup is adviced, because you never know.

Tips

In generall, these are the codes of the keys on a standard Android device (for people who can also edit the keyboard codes of a hardware keyboard):

102, // home button
114, // Volume down
115, // Volume up
116, // Power
139, // Menu
158, // Back
217, // Search`
231, // CALL
232, // DPAD_CENTER
108, // DPAD_DOWN
103, // DPAD_UP
105, // DPAD_LEFT
106, // DPAD_RIGHT
211, // HEADSETHOOK
212, // CAMERA
242 // FOCUS

Attached is a little helper app (KeynrTracker.apk) to identify the keynumber you want to remap .

Faq

Q: can you do also other remappings with the buttons, like for example long pressing, double press, context sensitive remappings etc.

A: For now, this is pretty much it. Check out LaunchKey if you also want to remap the long-press search button.

Q: So this is it?

A: I do plan to add some more functionality and to update the interface, but when that will be I can't tell.

Reviews

Review by Android Police

Review by Gizmoninja

Changelog

v0.2.4: Fixed restore problem on some devices (Thanks ljjehl for noticing)

v0.2.3: Hasn't never been released :)

v0.2.2: * Added support for the Droid X (Thanks Doug for your feedback!) * added an option to hot reboot the device after applying a change, so one can almost change buttons on the fly.

v0.2 Fixed UI issues * Fix for Galaxy S Variants * added (camera) focus as an option to the "remap list"

--

If you like the app and/or wish to support this project consider buying the donation version from the market (Search term: ButtonRemapper). Don't feel obliged though!
[Android Apps and Games] overground:
So on a nexus 1, this will only remap the power, volume rockers and possibly trackball? Will it work for the capacitive buttons?
[Android Apps and Games] appelflap:
Absolutely. It will remap all buttons. I added a list of functions that can be remapped. (Also hardware keyboards can be remapped with this app... )

I plan to integrate this with the LaunchKey app in the future, so it would be possible to assign also apps etc to buttons.
[Android Apps and Games] overground:
I'll be giving it a shot shortly, then. Thanks, AF!

EDIT: donated :)
[Android Apps and Games] appelflap:
Thanks.

As always your critical feedback is very much appreciated.
[Android Apps and Games] overground:
What's "Grave" ? And there's 2 search entries and 3 menu entries. A little confusing. Are these for long press, double tap, etc. or are those for possible layouts across devices? How does one get to the "Apply" screen pictured? Will play around some more.
[Android Apps and Games] appelflap:
Well, I don't know :D

At the moment this app is just a tool to play around with the low level key layout mapping files Android uses for mapping the keys. It's sort of a power user tool.

In the future I'll need this layer to make a user friendly key remap tool that can do some low level remapping. Then I will hide much of the definitions that can be tweaked with this app.

Some background info about the key layout mapping files:

http://source.android.com/porting/keymaps_keyboard_input.html
[Android Apps and Games] Pat123:
Looks good..Will give it a shot soon..
[Android Apps and Games] ldc2335:
SWEET, im wondering if it will eventually be possible to use search button on evo to actually take pics(not just open the camera)
[Android Apps and Games] hav0c:
Just what I needed. Thanks a lot appelflap.

Would be nice to have the "call" and "end call" function on 1 button (because the only button I do not use on my DHD is the search button..) Don't know if that is possible tho..

Thanks again!

Edit: I'll donate on the final version for sure.
[Android Apps and Games] appelflap:
It's possible to add a "focus" mapping. Haven't tested that one out yet. Maybe it will focus and take a picture in one step. I will add the function so one can test that out.

Very good idea. I think it's possible

----

@all: I really like to know if this works on your device. If so, I can update this app with the functionality of the LaunchKey app and lots and lost of more functionality.
[Android Apps and Games] appelflap:
Assigning CAMERA to a button will open the camera, but it will act as a shutter too if you have the camera open! So yes it is possible to use the search button to take pics
[Android Apps and Games] wes342:
Great job with this app.

I would love to see some remaps

For apps. I want search button to open contacts.

Let me know if you want any help.
[Android Apps and Games] creator2456:
Opens and asks for SU permission on first run, but force closes immediately and every time opening afterwards.

Phone in sig.
[Android Apps and Games] Crowds:
unfortunely doesn`t work on X10
[Android Apps and Games] appelflap:
That's definitely not good :) It would be great if you can send me a logcat.

You can download catlog from the market, open it, open the buttonremapper app, wait till it Force closes and than go back to catlog and choose "send log" in the menu (->more) . You can send it to the email address in the about window of the app.

Would be great and very helpfull if you can do that. Thanks
[Android Apps and Games] appelflap:
Do you get a FC or does the remapping not work? Anyway if you like this to work, maybe you can send me a log.

This is how you can do it (quote from another post):

Download catlog from the market, open it, open the buttonremapper app, and than go back to catlog and choose "send log" in the menu (->more) . You can send it to the email address in the about window of the app.

Thanks.
[Android Apps and Games] raysearcher:
Button shortcuts to touchscreen keys

Do you think it is possible to have software shortcuts to the hardware buttons?

Something like:

http://xdaforums.com/attachment.php?attachmentid=445304&d=1290250580

http://xdaforums.com/attachment.php?attachmentid=445464&d=1290269366

From the thread: http://xdaforums.com/showthread.php?t=841559

Thank you in advance!

Best regards
[Android Apps and Games] Crowds:
sorry but strangely after remove and install again it work:confused:

go and play a little the give you some feedback;)
[Android Apps and Games] creator2456:
Here's a logcat for ya...zipped for size.
[Android Apps and Games] hav0c:
Still use this app a lot. Any news on the call/hangup functionality one 1 button? Really looking forward on this..
[Android Apps and Games] minisergium:
I'd like to help, but I'm not sure I can. Just entered Android world a few days ago and I don't know very much about it, but if you tell me exactly what to do I'll give it a try...
[Android Apps and Games] ljjehl:
That's perfect.....if you have any type of tinkering experience in Windows Mobile, you will be just fine in Android. I would suggest downloading "ES File Explorer" or better yet, "Root Explorer". You need to be in Root ( / ) to get the information you need to help AppelFlap.
[Android Apps and Games] appelflap:
not yet. I'm kinda busy right now. If I have the time I want to go to the next stage with this app and add some extra functionality. At that time I can say if your idea is possible or not.

First it would be really helpfull when you download "catlog" from the market. Catlog is a little app that will record some development output of the buttonremapper app. If you install that app, open it and hit home and open the buttonremapper app it will record some important info. It would be great if you save that info to a text file and mail it to me (address in the about box of the app) or post it as a text file in this forum. Saving and mailing can all be done from the catlog app menu.

Thanks
[Android Apps and Games] midnightzak:
CDMA HTC Hero (Sprint) running CM6 nightlies

Couple questions:

1. I have an CDMA HTC Hero (Sprint) that I've had rooted for months, however this app says that I do not have full r/w root access. To use your app am I going to need to re-root my phone with a different rooting method? If so could you provide the name or link to what I need to do?

2. I really would like this app to be able to remap my Search key to be a task killing key. Either CM6 or LPP+ have enabled a 'kill current app' via long press on the Back key. This however seems to kill apps more frequently than I would like (IE, phone is running slow and thinks i did a long press when I did not..). Can or will this app do that function?

Thanks for any help you're able to provide!
[Android Apps and Games] appelflap:
1. Try z4root: http://xdaforums.com/showthread.php?t=833954 ... it should give you r/w permission to the system directory. Otherwise try OneClickRoot.

2. I can be short: no.
[Android Apps and Games] hav0c:
Okay, thanks for the reply and good luck with whatever you are busy :)
[Android Apps and Games] minisergium:
Thanks to you for your nice explanation... I'm waiting for a SD card which I hope I'll receive on monday. As soon as I have it, I'll record the log and send you.
[Android Apps and Games] starbase64:
Hi,

does not on my desirehd, sense crashed with error: This feature is not supported

with friendly greet

starbase64
[Android Apps and Games] appelflap:
I developed it on the Desire HD and am currently using it on the DHD w/o any probs.

Do you have full-root access (root with permanent r/w access to the system dir)?

Edit: I see that you have a Rom and kernel on board, so you must be full rooted. Maybe they programmed the kernel in a way that the remapping isn't supported anymore.

Can you make a note of the exact message you got? "Feature not supported" is not a message I know. Maybe "Device not supported"?
[Android Apps and Games] starbase64:
Hi,

yes, i have root. Error message: This feature does not support the current system version.

with friendly greet

starbase64
[Android Apps and Games] NeoMatrixJR:
Suggestion: allow assigning long-press/hold of keys.
[Android Apps and Games] Tibedabeeto:
Agree, I am on a Sense Rom swtich back from CM and I made the volume up and volume down media next and previous. I would rather keep them as VOL controls and media controls when long pressing them.

The first time I loaded the app it said I did not have full root access. I tried to load the app again and got in fine. When I changed my vol controls to media controls it didnt restart the phone by itself so I did a hot reboot. Doesnt seem to keep the changes. On a rooted HTC evo nand unlcok and s-off. Any suggestions?
[Android Apps and Games] appelflap:
It means the kernel/rom you are using is using a keymapping method that isn't supported by this app. I'm using a generic search procedure to see what keymap files are loaded by a device. This works for most devices, but on some it doesn't work (unfortunately).

Nevertheless I'm trying to create a workaround by introducing a layer between the "hard coded" mapping files and the buttons.. Don't know yet if that will lead to something :) But if so, that would mean in principle that I could support all devices.

Yep, good idea.... :) For some buttons it is straightforward and supported by Android (like the long press search key and some others). For most buttons though it isn't possible (at first sight :) )

Rooted and Nand unlocked and still a warning that you don't have root access?

What I do when I check for root and r/w access is to mount the system dir for r/w access and write a little file to the system dir. If something is going wrong with that the app gives a "no full root access" message. So I think you don't have full root.

BTW that you could get in the app the second time is a little flaw... I only check for root access the first time the app is run (ok that's not cool, I know...)
[Android Apps and Games] Tibedabeeto:
That was my bad. I noticed su was uninstalled on my phone. I put it back on and your app worked like a charm. Now if u can integrate long press that would be awesome. Keep up the good work.
[Android Apps and Games] iTouch24:
how do u remap button hold .. i see how u can just remap each button press on the evo but not sure how to remap volume up hold to launch camera
[Android Apps and Games] andjohn:
Your answer to the hold is exactly 2 posts above yours. Read please.
[Android Apps and Games] EtorS:
Hi, using Acer-Liquid with Froyo (Of course, rooted) are not all the buttons. leaving only one (226 Headsethook)

Instead using Eclair are all without problems.

you can update with a fix?

(Google Translate)
[Android Apps and Games] mrcanngo:
I ran this and it says (0) when i push my trackpad.

When running the key remapper tool, it doesn't have (0) as a listed button to remap.

Does this mean, its not possible?
[Android Apps and Games] appelflap:
Interesting. Seems that the Acer-Liquid uses a similar approach as the Galaxy S variants. I think I can fix it with a general heuristic. Can't say when though. :)

I use a android function (getScanCode) for this and in the docs for this function/method it is said that:

public final int getScanCode ()

Since: API Level 1
Retrieve the hardware key id of this key event.[B] These values are not reliable and vary from device to device[/B].
Mostly this is here for debugging purposes.

So I wouldn't infer anything conclusive out of the output of the helper app.

Take a look at this doc:

http://developer.android.com/reference/android/view/KeyEvent.html

The constants here are different constants than used in the second column of the list in the buttonremapper app, but to some degree they correspond to eachother.

When you look at the dpad constants you see that it is stated that "May also be synthesized from trackball motions."

(The numeral values of the constants are complete different values than the scancodes displayed in the helper app: don't infer anything from it)
[Android Apps and Games] appelflap:
(minor) update: for devices that have some layout problems with the list with buttondefinitions on the main page. If you don't have this problem you can skip this update.
[Android Apps and Games] RavenY2K3:
Hi Guys,

I have used this extremley usfull tool, sucessfully on my Dell Streak, for those unfamiliar with the Streak, it only really has one ROM developer (Stephen Hyde), on his last update 1.46 this tool worked a treat, but in the latest one 1.51 it doesn't.

I can edit the keypad file directly and the changes are adhered to on reboot and the changes are even listed in ButtonRemapper after I make the manual change (it looks like BR opens the file and displays what is in the Keymap file currently) , I did think it could be file permission issues, but then dismissed that thought, because as I mentioned before, I can make the changes manually?

Any idea on what could be going on?
[Android Apps and Games] glen_e:
This app sounds like an excellent idea, especially since my Epic's keyboard drops letters like crazy. However, for phones that have keyboards, it would be incredibly helpful to rig a button (such as volume up, or the camera button) to switch from a full/stock profile to a "gaming" profile, which would only allow input from a particular set of keys (W, A, S, D, etc).

This could probably improve game play for a lot of phones equipped with keyboards, given that somebody's fingers will generally slide over or mash more than one key at a time. From what I understand, keyboards are built upon matrix diagrams which can impede input from keys when a particular number of letters are hit at the same time.

Just my 1/50th of $1.00!

- G
[Android Apps and Games] appelflap:
Did you pass the "full" rooting test when you first launched the ButtonRemapper on the new rom? In this test a little file is created in the system directory to check if it has write access and to check whether it is possible to create a new file in that directory. I know from the LCD density changer that on some roms it is impossible to create a new file because of lack of space. Can you try to create a new file in one of the directories in the /system directory tree or in the /cache directory?
[Android Apps and Games] appelflap:
Well thanks for the $0.02 :) (of course it is just 1.5 eurocent, but what the heck) Great idea! I read two potential great ideas in your post:

1. Allowing to create profiles. Not only in your scenario this makes sense but also in a scenario for example that you want to temporarily remap the volume buttons to the dpad up and down button for e-reading.

Surely will add this.

2. To make it possible to disable keys. Actually this request is made before and it is possible. I will also add an option for this in an upcoming version.

It is also possible to make a shortcut for fast switching between profiles (of course one need a hot reboot in between).
[Android Apps and Games] RavenY2K3:
Hi appelflap,

Despite being rooted, it did indeed fail? Does this mean it is down to file permissions?

TIA.
[Android Apps and Games] appelflap:
I think it is not a file permission problem. I'm not an absolute expert on these matters but I think that it has something to do with the space allocated for the system files and/or a not fully nand unlocked device. Download an emulator from the market and enter those commands (you can do it also with adb):

$su

#mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

#cat 1 > /system/hello

(alternatively you can download an app of my called mount /system (r/w). It will remount the system dir for r/w access so you don't have to enter the second command in the emulator)

I think the output of the last command would be "'out of memory" or something like that.

If this is the case I would try to (backup and) delete a app from the /system/app dir. For example of an app you don't use (make sure it isn't a program the system needs). You can also try to root the dell again with one of the root progs in this forum.

(Better yet, is to contact the rom developer)
[Android Apps and Games] Viralata:
Hi there, can someone help me ?

I installed it in my Cliq XT, started and it not showed ANY buttons, only the Apply button, i clicked it.... and now my hardware buttons not work anymore, any way to go back that ? Thx
[Android Apps and Games] appelflap:
On the notification bar you will find a restore button after you rebooted. Click that and it will restore your original mappings.

Otherwise go in the buttonremapper app and choose menu/restore.

BTW do you have time to make this work on the Cliq XT. Doesn't take much of your time. Just download catlog from the market and make a log when you open ButtonRemapper. Please post a saved txt logfile here in this forum or mail it to info . beansoft (monkey tail) gmail . com
[Android Apps and Games] Viralata:
Thx for the Help =D, i used the Screencast for press the Menu Button =p and did the restore. Here is the Log, what i need to do for make it work with cliq ? o.o

Ps.: I was unable to put the log here (issues with Links and new users), i had send it to your e-mail =D
[Android Apps and Games] Jstevenett:
On my fascinate it only gives options for the soft buttons. Not for the power button or volume rocker. Any idea why?
[Android Apps and Games] appelflap:
Thanks for the log and thanks for the feedback. I think I'm going to make the "restore original bindings" button in the taskbar a sticky button (can be deleted if the users whishes). Now it only shows up after the next reboot after a change of the button definitions. My guess is that you rebooted your device again?

It is not supported at the moment. Samsung has a very "interesting" way of handling the keylayouts. I did a workaround for the Galaxy Tab with a special version for the Tab (don't use it on the fascinate). I'm hoping to find a general workaround for all Galaxy S variants in the future.
[Android Apps and Games] scooter1979:
Thank you for this. Turned the never-used search button on my Evo into a somewhat-more-needed camera button. You rock.
[Android Apps and Games] :
sorry to bother but help is needed.

it works when the app hot boots to make changes, but when i reboot my phone normally, the changes i made are back to defaults. any idea?
[Android Apps and Games] appelflap:
Sounds like you are running this on a HTC device without S-OFF?

There are rooting methods for some devices that will allow r/w access until the next (full) reboot. Hot reboot isn't counted as a full reboot, so temporarily changes made to the system are retained after a hot reboot.
[Android Apps and Games] :
my bad...thanks, got it to work.

im on a hd2, and systems edits made on system have to be copied to the sd card, so after i applied the buttons i copied the system/usr to the sd and.....boom! it worked :D