Hi,
I have a rooted 4.6.1 fire phone with Xposed, and I was wondering if it is possible to remap the phone's camera button to another camera application
I have already briefly tried remapping with the additions module, but it didn't recognise the key.
Cheers,
--Fid
I tried some apps (unfortunately they were a bit "old": 2011/'12) which can map buttons to apps, none worked really, except one was promising but I couldn't finish testing because the xxxxxx320 version had some Amazon voodoo going on, I'm not even going into details.
I will go back on 820 and edit this post when I'm done testing. Btw. I guess you saw the threads here on XDA about hardware key mapping, press buttons to run a script (to launch an app), etc.?
edit: "Home2 Shortcut" was unsuccessful. The app is from 2011 and made for Android 2.x. I could select and configure everything I wanted but nothing happened.
Same problem, as seen from CM11
Home2 worked for me, using CM11. Requires a long press, and can't seen to use it as if hoped (as a back button, to let me kill the on-screen buttons) but it's something.
Tried some other older apps, as you mentioned: KeynumberTracker showed key # 358, but the associated ButtonRemapper app doesn't give that as an editable option.
Related
i really miss hardware scroll buttons.
on the rhodium there are two little side buttons for adjusting the volume. i'd really like to repurpose these as scroll up/down. For example, to work inside a browser. Unfortunately, there is no standard option (i can find) to redefine the purpose of these buttons.
i'm hoping there's another way. eg registry hack etc.
thanks for any help,
Use AEBPlus
I am doing exactly the same thing with my Volume Up/Volume Down, I've turned them into arrow keys. The lack of these is my biggest annoyance with the TP2.
That said, I have noticed a little flakiness - most of the time they work fine, but sometimes I hit them and they don't scroll as I expect. Then a moment later they start working.
Anyway, it's much better than not having them re-assigned.
Incidentally, AEBPlus has a cool feature where you can tell it not to remap the Volume keys when you're on a call, so they can still be used then.
Thanks for the tip, i'll give it a go!
AEBPlus works? I'll try it. heard from another TP2 user that it caused his device to freeze up resulting in a hard reset...
Putra said:
AEBPlus works? I'll try it. heard from another TP2 user that it caused his device to freeze up resulting in a hard reset...
Click to expand...
Click to collapse
Been OK for me so far
Yes, AEB Plus works (no hard reset), but I can only add the windows button. The <-- (back) button does not work when mapped using AEB Plus.
Also, if you're using the JBed Midlet manager, the arrow keys automatically scroll up and down. It works well with Opera Mini.
AEB plus does nothing for me... i just have a list of buttons I can't do anythign with, a giant memory leak and crashing.
julienrl said:
AEB plus does nothing for me... i just have a list of buttons I can't do anythign with, a giant memory leak and crashing.
Click to expand...
Click to collapse
Yeah there appears to be no way to open an entry from the list using touch alone - must be a bug.
Highlight one of the buttons in the list, flip out your keyboard and then press enter/return. It will open the Edit menu where you can assign that button to something.
tjobbins said:
Yeah there appears to be no way to open an entry from the list using touch alone - must be a bug.
Highlight one of the buttons in the list, flip out your keyboard and then press enter/return. It will open the Edit menu where you can assign that button to something.
Click to expand...
Click to collapse
ahhhhhhhhhhhhhhhhhhhhhh! lol, I was wondering why people were talking so much about an app that does nothing
Did you guys install to main memory? I had no problems with AEB Plus on my 1.19.707.2 ROM.
I could assign the vol up/down keys and could also add the windows key. It is a bit tricky using the windows key as the first press brings up the programs tab.
I added the back key also, but couldn't get it to work. I didn't touch the send and end keys.
BTW, I used AEBPlus v2661
Putra said:
Did you guys install to main memory? I had no problems with AEB Plus on my 1.19.707.2 ROM.
I could assign the vol up/down keys and could also add the windows key. It is a bit tricky using the windows key as the first press brings up the programs tab.
I added the back key also, but couldn't get it to work. I didn't touch the send and end keys.
BTW, I used AEBPlus v2661
Click to expand...
Click to collapse
This all is my biggest concern upgrading from a Tilt.. I REALLY like hardware buttons, and make extensive use of AEButtonPLus as it is...
tjobbins said:
Yeah there appears to be no way to open an entry from the list using touch alone - must be a bug.
Highlight one of the buttons in the list, flip out your keyboard and then press enter/return. It will open the Edit menu where you can assign that button to something.
Click to expand...
Click to collapse
Press the entry in the list and keep holding for a few seconds more.
I've been using it since I had my touch hd and it works perfectly and I haven't found it to cause any issues.
Personally i assign one volume button to a task switcher (spb ms3 task manager) which makes multi-tasking far easier. You can then map double clicking to the original volume functions and even long hold to something else useful such as comm manager.
Awesome Tip. AEBplus Confirmed to be working fine on TP2 from T-Mobile (still stock rom for now). I made the volume buttons map to up and down like suggested but also made a long hold for volume up do "enter/activate" and a long hold for down do rotate the display.
my phone (telus rom) keeps getting screwed up when I install AEBplus and gets back to normal when I undo it.
When I m eg in the Market or running Internet and press the Home Button I don t return to the home screen anymore. I must have changed something but don t now what.....
no ideas anyone?
Ideas about what?! You're not describing your problem. What happens when you press Home?
I only see the screen 'flicker' 1 time
Have you tried rebooting the phone? Is your phone rooted? Is it unlocked or branded? C'mon, give some more details if you want help!
You might try installing "Home Switcher" from the Market and see if it helps.
Rebooting does not help. Original 2.1 rom, installing home switcher does not help either. Did I clean install last night, home button worked fine for some hours and after this there s again the same problem => no returning to the home screen and only a short 'screen flicker' when pressing the home button.
I would speak to HTC if that did not work. They should repair it for free because its under warranty.
It's unlikely to be a hardware issue if it sometimes works.
When using Home Switcher, what apps show up in the list? (might be a rogue app that is stealing the home button function by registering itself as a launcher application).
Do you have any apps installed? (you said you have done a clean install but it's not clear if you installed any apps after that; please note that you might have enabled backup to your sd card [Settings -> Privacy] and that even after a clean install some of your settings will he restored from that backup).
sanderh said:
Rebooting does not help. Original 2.1 rom, installing home switcher does not help either. Did I clean install last night, home button worked fine for some hours and after this there s again the same problem => no returning to the home screen and only a short 'screen flicker' when pressing the home button.
Click to expand...
Click to collapse
I'd suggest booting into safe mode as this will stop all 3rd party applications from running. If it works from there, it seems pretty likely that the issue is related to an application you have installed.
To get into safe mode, power off your device, and then power back up again whilst holding down the menu button, and keep it held down until the phone has completely booted. Once booted, you should find it says "safe mode" in the bottom left corner of the screen.
Note that if you do this, all your 3rd party widgets on the home screens will stop functioning - even when you have exited safe mode. You will need to delete and re-add them.
Regards,
Dave
foxmeister said:
I'd suggest booting into safe mode as this will stop all 3rd party applications from running. If it works from there, it seems pretty likely that the issue is related to an application you have installed.
Click to expand...
Click to collapse
Very good idea/advise.
This worked for me
Reading through this thread made me wonder whether the fact my Home and Search buttons suddenly weren't working could have been caused by an app I installed the day before (No Lock).
Before uninstalling it I decided to give it a test. It was on "Locking Disabled". I set to "Locking Enabled" and tested the Home button - voilĂ , it worked. Tested the Search button, it worked too.
Set the app back to "Locking Disabled" - Home and Search buttons still working.
My buttons, home and both volume buttons are dying. I think it's just wear and tear really which is bad because I've had it less than a year.
Was thinking of ordering one, curious how unlocking the Xoom worked with the keyboard. Thanks!
I just checked and no, you cannot unlock with the keyboard. You can switch the screen on duration to fit your needs.
Sent from my Xoom using XDA Premium App
Actually, yes you can. if you have a keyboard with the "menu" key (usually on the right side of the keyboard near the Ctrl+Alt keys) it will work. I tried it last night and from sleep, one press takes to the unlock screen, one more unlocks the Xoom. Even without the Motorola Android specific keyboard, I found a lot of amazing shortcuts on a normal keyboard, do a google search, there are a lot, from opening Gmail/the browser to composing e-mails, etc. Just typing on the home screen brings up the search, which is great, and you can navigate most things, including going between home screens with the arrow keys. It convinced me that using the Xoom as a mini laptop replacement is relatively possible.
Hmmm, I tried every key on the moto keyboard and it will not wake it. Interesting that a generic keyboard would have that function.
I really do like the official keyboard however, I wish there was some way to map some of the keys. Its not really optimized for 3.0. Some of they keys do nothing and I haven't found a way to access the app drawer. A bit disappointing.
I think you modify the keylayout file so the button you want to wake has the "WAKE" attribute.
any idea on how to modify the keylayout on the motorola BT keyboard?
Half-way there
Actually, you can bypass the lock screen by hitting the "settings" button (or whatever it is called) 2 keys to the right from your spacebar on the Moto keyboard. However, I still can't get it to actually wake via a keypress.
Edit the /system/usr/keylayout/Vendor_22b8_Product_093d.kl file, assuming you are rooted.
On line 99, add the word WAKE beside MENU like this:
key 125 MENU WAKE
Save it and reboot. Be sure to make a backup of this file first in case you have any issues. Press Menu button once to bring it out of sleep and a second time to unlock it.
Thanks. I'm actually not rooted. Maybe I'll give that a try as well...
this worked perfectly! thanks very much
I have gotten my Xoom to wake up by pressing and holding the power button on the keyboard. It doesnt always work. It seems to depend of if the keyboard is awake itself. I have gotten them apps menu to open using the keyboard as well - its not an easy task. It depends on your ability to navigate to the top line on the home screen. Pressing enter will allow you to see if you have selected the top line (the top line is the row with the apps button, text and voice search, and the plus button). I can press alt+tab to select row, and then can cycle through the 4 options using tab. It is really hard to know which option you are on since it does not highlight as you cycle through. You simply press enter when you think you have it right. I think its much easier to just start typing the name of the app you wish to use and allow the xoom to search for it.
anthony_m_king said:
Edit the /system/usr/keylayout/Vendor_22b8_Product_093d.kl file, assuming you are rooted.
Click to expand...
Click to collapse
Is there any way to find out what file will be used for a keyboard? I bought a generic BT keyboard from eBay that has lots of Apple-specific keys. I wanted to remap them to take advantage of Android commands. I got the scancodes for each key and modified the Generic.kl file. In this file, however, it recommends to create a separate file for each device but I have no idea how I would make HC aware to use the specific file. Any ideas?
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
So I started Searching around on how to do it. I found an application that claimed to be able to do it called "buttonremapper". Unfortunately this program only sees the Menu and back button. 2 buttons I do not wish to remap.
I did find a program called Keynrtracker on XDA that allows me to see the ID's of every button pressed including the Hardware buttons.
I researched a little more and found where the Key mapping files are located:
"system/usr/keylayout"
In here, there are many files that have to do with the keyboard. I found the one to modify is the:
"STMPE_keypad.kl"
this file has all the keys and I simply wanted to change the Search button from the keypad to bring up the Camera so I did this:
key 217 CAMERA WAKE_DROPPED
where previously 217 was:
key 217 SEARCH WAKE_DROPPED
"Wake dropped" is to tell the button to wake up if asleep or not.
Make sure you backup before have root and save. Reboot to load changes.
Well it now works I have a Hardware Camera button. One thing I noticed is I have to Hard press the button and hold not just click. Anyone know why? Added benefit is once the camera app is open, it also takes pictures by pressing on that same button.
JB
nice ^__^
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Nardholio said:
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Click to expand...
Click to collapse
Short press on its own does nothing. Pressing it with any other key does a normal search.
dudejb said:
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
JB
Click to expand...
Click to collapse
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
clockwork58 said:
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
Click to expand...
Click to collapse
Agreed 1 touch I also like the ability of knowing I can change any key on the keyboard like that useless "www.com"button.
Sent from my SAMSUNG-SGH-I927R using xda app-developers app
it's just a totally useless option, since I immediately disable the assistant anyway, and it seems that generic button remapping apps don't detect that, and setting something else as the "assistant app" doesn't trigger on the button press either, any ideas?
I do have magisk, if that's the only way, although would be nice if there was an option not to...
Given its position, the ideal re-map for me would be a "shutter" button for the camera. Actually, having this as a physical button should be mandatory.
I found that just like on some other phones, it's hooking the button and explicitly calling a google assistant activity, and since it's "handled already" other apps, such as button mappers, can't do anything with it, but even at those other threads, I didn't see any solutions... I don't NEED the button, but I'd love to give some use to a useless button, such as an optimizer app, and flashlight (currently using like a xposed module or something, to trigger flashlight when screen's off, using power button), it's actually at a pretty great position for being a camera trigger too, yeah...
How to remap "assistant" button! [ROOT REQUIRED]
it seems that while adding non-remappable assistant buttons is a growing trend, solutions aren't easy to find, however the solution is real simple, you just have to modify the keymap file... I successfully managed to get the button detected by...
forum.xda-developers.com
I figured it out!
I did it with a magisk module.
Kuntitled said:
I did it with a magisk module.
Click to expand...
Click to collapse
Which one?