Related
We need to figure out a way to customize the genius button. It would be a great service to everyone, especially if it doesn't require root.
I looked at logCat, and I see that the button fires up the following intent:
Code:
{ flg=0x10000000 cmp=com.nuance.android.vsuite.vsuiteapp/.VSuiteStartSession }
I'm not quite sure how to create an intent handler for something that doesn't have an action or a category. I even created a test app that matches the intent above exactly, but only the stock genius app launches, and I'm not given an option to choose my default handler for the action. I don't think there is a key handler to intercept either. Any ideas
You know, I was thinking about this all morning (eventhough I don't have the device). Back in the day we remapped functions for certain keys (as g1 didn not have search key of any kind). Can someone go into /system/usr and look what's in there? I believe we are looking for keylayout folder. In that folder we should have some .kl files. They named different from device to device (using Cliq now and they are all named MorrisonXXXXX.kl). Look through those files and find genious button function. From there it should be very easy to change it to google search (or voice search) but substituting the function and pushing the file back in its location. I would have no problem doing it but as I said, I don't own the device myself.
Couple more option (highly unlikely to work):
Clear defaults in Genious app
Freeze Genious app
I don't see those working but who knows... we may be able to assign new default after doing this.
kl files
Here are the files from /system/usr/keylayout
Looks like the correct entry is in glacier-keypad.kl, but it is mapped to a "search" function.
Not sure it will help, but I'd love to see search there instead.
I don't mind the genius button, it actually works fairly well the more you use it. However, I don't like that it disables the search button.
It should be single press for search, long press for genius.
That would be perfect.
rjgii said:
Here are the files from /system/usr/keylayout
Looks like the correct entry is in glacier-keypad.kl, but it is mapped to a "search" function.
Not sure it will help, but I'd love to see search there instead.
Click to expand...
Click to collapse
Ok, I'm at work so I can't really do anything with this but I will look into into it later, when I get home. You are correct, it's in the glacier-keypad.kl. Unfortunately, it's set to the same thing as regular search i.e. In G1 we used to set it to SEARCH as well but it would bring up regular search.
I will try to PM GeniusDog (the guy who figured out how to remap keys) when I get home to see if he can give me some insight on this.
Did anyone try to freeze (disable) Genious app to see if it releases G key to regular search?
We should also contact ChiefzReloaded, he would know how to do it since they put CM on Slide which did have Genious on it to begin with.
Ok, so I guess this is a little different then the Slide. Slides G key was mapped to FUNC_4. Our G key already mapped to SEARCH, its just that Genious overtakes it. I twitted Eugene_73 to see if he could help, he was the brain behind Slide's development in this area.
If its helpful to anyone, holding down the menu button will bring out search keyboard. I really wish the would give us a option to chose from the voicesearch ¦,/
Sent from my HTC Glacier using XDA App
borodin1 said:
Ok, so I guess this is a little different then the Slide. Slides G key was mapped to FUNC_4. Our G key already mapped to SEARCH, its just that Genious overtakes it. I twitted Eugene_73 to see if he could help, he was the brain behind Slide's development in this area.
Click to expand...
Click to collapse
Hmm...what about mapping it to a function key (like on the G2) and then assign whatever action we want to that function key? I will try that out as soon as I get some free time.
Alright, so I tried modifying the key layout file on my G2 (vision-keypad.kl) just to test the process and I am not allowed to make any changes. Just get a "Read-only file system" response. I'm sure it would be the same for the MT4G. Anyone have ideas on what else to try? I really want to find a solution without rooting, but any solution would be a good start.
root
We have root now, so we should be able to modify the key mapping files.
If I find any time today I'll give it a shot.
rjgii said:
We have root now, so we should be able to modify the key mapping files.
If I find any time today I'll give it a shot.
Click to expand...
Click to collapse
Great. You will probably have to remount the system partition like this before you can write to it:
su
mount -o remount, rw /system
Oh how I hate that genius button..I would absolutely donate immediately for an app to remap it to search. That would be amazing.
Sent from my HTC Glacier using XDA App
Did anyone try to uninstall (disable) Genious app yet? Since the G key mapped to SEARCH already, this may release it to actuall Google search.... just thinking out loud
I froze it last night. No response from the G button after that.
21productionz said:
I froze it last night. No response from the G button after that.
Click to expand...
Click to collapse
LOL...
They really mean "you" in the commercials!
You gotta customize everything..
Sent From The Moon... With a HTC Glacier
I updated my voice search in the market when I first got the phone, and for a time when I pushed the button is would actually give me the option to choose what app handled the action and I could choose voice search. However, after one time choosing the Genius button it never asked again. I wonder if there would be a way to continuously clear the Default so that it always asked.
borodin1 said:
Did anyone try to uninstall (disable) Genious app yet? Since the G key mapped to SEARCH already, this may release it to actuall Google search.... just thinking out loud
Click to expand...
Click to collapse
I disabled dragon dictation and genius, and after holding the button for a couple seconds, my phone crashed and rebooted. Multiple taps on the button seemed to do the same thing. Leaving dragon dictation enabled and genius disabled seemed to be less prone to crashing.
This has been solved in this thread:
http://forum.xda-developers.com/showthread.php?t=836702
Hi,
I was going to post this in one of the kernel threads but thought maybe it'd be interesting to more people. We've seen a few mods changing the navigation key behaviour (s2l l2h and what not). I previously suggested implementing the nexus layout into the htc using the logo as I'm a fan of having a recent apps key and I think others will like it too. However I think a better solution would be to re program the home key (or maybe the back key since home key uses google now) so that when you swipe up it opens the recent apps. I know it'd only save half a second but would make this more fluid than having to double tap. I'm not a developer but I'm just giving my idea. I thought it might be easy to do as well since it's already done with the home key swiping up to google now, so the same code can just be copied to the back key?
(
So, what do you guys think? If its easily doable I think this will be popular and could be a standard feature in most roms (or kernels?) , like the 3-dot menu removal and such.
(Also, was having a hard time answering the 'is this a question', its more of a suggestion but I could be wrong so sorry
I use the logo for recent apps on my GPe One.
Sent from my HTC One using xda premium
How? Link? That's an ok idea though I don't like how it's not really the logo we touch it's the bottom of the screen, I always hit too high or too low.
Sent from my HTC One using xda app-developers app
You can configure the buttons in ViperOne. I have long press home set to open recent apps. I also use LMT launcher as a menu button, and it also has a button to jump to my last used app. Its awesome for multitasking.
FangorX said:
You can configure the buttons in ViperOne. I have long press home set to open recent apps. I also use LMT launcher as a menu button, and it also has a button to jump to my last used app. Its awesome for multitasking.
Click to expand...
Click to collapse
Thats cool I didn't know that. Although ViperOne is too unstock for my liking lol
3alaawi said:
How? Link? That's an ok idea though I don't like how it's not really the logo we touch it's the bottom of the screen, I always hit too high or too low.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
It's definitely not a perfect solution, and I'm still REALLY MAD at HTC for ruining what would have been the perfect android device, but it's better than nothing.
I flash a kernel tha offers logo2menu and go into system\usr\keylayout and change the bindings and reboot. Obviously requires root.
eallan said:
It's definitely not a perfect solution, and I'm still REALLY MAD at HTC for ruining what would have been the perfect android device, but it's better than nothing.
I flash a kernel tha offers logo2menu and go into system\usr\keylayout and change the bindings and reboot. Obviously requires root.
Click to expand...
Click to collapse
May i know which file under /system/usr/keylayout did u edit? Is it synaptics-rmi-touchscreen.kl?
This is the content for the file
Code:
key 102 HOME
key 158 BACK
key 139 MENU VIRTUAL
I would like to change the HTC logo to multitasking, but im not sure what to change key 139 to.
Any insight on this would be helpful.
Update: figured it out!
for anyone interested in doing this, here's how you do it.
Just modify key 139 to this
Code:
key 139 APP_SWITCH WAKE_DROPPED
Hi
Is it possible to change the home swipe up config or the long press home? I have rooted and custom kernel but any way to do so by file editing?
Thanks
Sent from my HTC One using xda app-developers app
Hello,
So... I successfully remaped the left buttons to hardware Menu and Back buttons, but the top right is giving me headaches. It's set from 4 different places (Settings>Reader, NT Mod Manger, twl4030_keypad.kl file and from Cool Reader itself) to work as page back button, but it still turns the pages forward and I can't get what is forcing it to do so. I've tried to set it as a Menu button just from the twl4030_keypad file and it works as intended, but then again, when I set it to RIGHT_PREVPAGE it goes back to be a < button...
Any ideas how to fix this?
Anyone?
I've tried to bind PREVPAGE to the other buttons, but it doesn't seems to work at all. Am I doing something wrong or what?
Maybe the problem is that too many things are trying to control the button. If you want it to function that way for Cool Reader alone, why not let everything else off the hook and let Cool Reader do its thing? Just a thought. I've not encountered problems with hardware button assignments,but then I've only ever used NTMM to do the work.
nmyshkin said:
Maybe the problem is that too many things are trying to control the button. If you want it to function that way for Cool Reader alone, why not let everything else off the hook and let Cool Reader do its thing? Just a thought. I've not encountered problems with hardware button assignments,but then I've only ever used NTMM to do the work.
Click to expand...
Click to collapse
Thanks for the reply!
It turns out that Cool Reader f*cked up somewhere. I re-installed it before, but I didn't notice that my settings were saved, so I thought the problem was somewhere else. BTW, Cool Reader's button assignment options didn't work at all - something was overriding them. What crossed my mind now was to delete the .cr3 folder and that fixed my problem.
P.S. Aaaaaand the problem is back! And I didn't even touched the Key actions... Interesting.
P.P.S. Changing the tap zones is messing with my hardware buttons... oh well.
P.P.S. So, when I change the left middle tap zone from previous to next page it also changes my top right button. Mystery solved. Right middle is also bugged.
Hi I am on 4.4.2 stock rom rooted. All of a sudden the multitasking key on my S5 when held no longer brings up the menu in any app or home screen it just opens the multitasking as if I pressed it instead of holding. Also, I can no longer take screenshot via pressing the home button and power button at the same time as it just opens Google now. I have home2 launcher installed to open Google now instead of svoice but this does no longer works as well. I am not sure how the problem occurred out of the blue. Does anyone know how to fix this? Thanks.
Blxckcard said:
All of a sudden the multitasking key on my S5 when held no longer brings up the menu in any app or home screen it just opens the multitasking
Click to expand...
Click to collapse
First, you have to distinguish between the key failing to work per se and a key that works fine but does a different action than you expected. If you meant the latter, then simply reassign the function that you prefer to the key.
You said that you had a third party launcher change a key action which no longer works. So go back to your custom launcher settings and reinitialize that setting again. If your app doesn't let you adjust those settings, then reinstall the app to have your key preference set again. Or use an app like xposed to remap the key function.
Another example that you cited was the "multitasking key". That isn't a standard label, so it's uncertain which key you are referring to, but probably you mean the left soft key, located to the left of the home button. Test it by dialing *#0*#
Then Sub key on the hardware test menu
Inevitably the test will show that the key works fine and you just need to remap it's function.
Likewise with your screen shot issue. Go back to whatever app setup that key combination to take a screen shot with those two keys and reset it again.
.
Thanks for the reply, how do you go about remapping the softkey. The screenshot issue has nothing to do with a third party app I have uninsulated all launchers and used the stock touchwiz launcher and the problem persists. All buttons work fine for around 30 seconds after I boot then they start acting as previously mentioned which leads me to believe it's an app that has somehow changed the functions of the hardware keys. I just wanted to know if anyone had a clue what's causing it as I have tried and it is driving me up the wall.
Blxckcard said:
Thanks for the reply, how do you go about remapping the softkey. The screenshot issue has nothing to do with a third party app I have uninsulated all launchers and used the stock touchwiz launcher and the problem persists. All buttons work fine for around 30 seconds after I boot then they start acting as previously mentioned which leads me to believe it's an app that has somehow changed the functions of the hardware keys. I just wanted to know if anyone had a clue what's causing it as I have tried and it is driving me up the wall.
Click to expand...
Click to collapse
Please use paragraphs, those walls of text are hard to read.
Agreed that it sound like apps loading after boot are customizing the key functions in ways that you don't like. You can disable or uninstall as many apps as possible and add them back one at a time to see which ones cause problems. Or, as mentioned previously, use xposed framework to remap the key functions.
You're hoping for a short cut in having someone name what specific apps are involved. That's a long shot at best that someone would just happen to know. And you should have at least listed all of the apps on your phone to narrow it down.. or help jog someone's memory.
.
Home key and app swap soft key not working
I have a galaxy s5 and just updated to lollipop 5.0 and then the home key and app swap key stopped working. Also it was running very slowly and I thought maybe it was because I had 384 apps installed (11 gig). Anyway it was driving me crazy but I didn't want to perform a factory reset. Too many programs into to lose..
I followed the instruction to take out the SD card and SIM card and restart without the SIM card and they started working again so I replaced the SIM card and it works fine now..
Thank you forum..
davemcm said:
I have a galaxy s5 and just updated to lollipop 5.0 and then the home key and app swap key stopped working. Also it was running very slowly and I thought maybe it was because I had 384 apps installed (11 gig). Anyway it was driving me crazy but I didn't want to perform a factory reset. Too many programs into to lose..
I followed the instruction to take out the SD card and SIM card and restart without the SIM card and they started working again so I replaced the SIM card and it works fine now..
Thank you forum..
Click to expand...
Click to collapse
Now they have stopped working again.. FML
davemcm said:
Now they have stopped working again.. FML
Click to expand...
Click to collapse
Every time I take out my Sim card and restart the buttons work for a little while and then stop working again..
Please help me
Hi,
I bought this remote:
http://g03.s.alicdn.com/kf/HTB1clsdIXXXXXXlXVXXq6xXFXXXn/2-4GHz-Fly-Air-Mouse-Wireless-Keyboard.jpg
but I'm having trouble with the "back" key. It's not really acts as back. Instead it acts as right click.
Has anyone been able to fix this problem?
I xposed module would be nice
I did some research and found this:
https://github.com/timduru/platform-frameworks-base/commit/bae953c0063dc1afb9e8c43381f3894329abe115
Think this is exactly what we need to fix this.
Is it possible via xposed module? Maybe any Devs are interested in that one?
Use esc button for back key
ilkerates said:
Use esc button for back key
Click to expand...
Click to collapse
Yes, I'm sure he's already aware of that.
Speaking personally, it would be nice if my back button on my air mouse (the same one as the OP has which, despite being marked as a back button, is effectively seen by Android as a right mouse click) actually worked as a back button. To stop having to turn my air mouse over to access the esc key every time I wanted to go back, given that the QWERTY doesn't work when pointing downwards. I had to remap my Menu button as the back button isn't seen by any key mapping apps.
So yes, a big thumbs up from me too if this can happen in Xposed. I'm rooted and running it already.
Beefheart said:
Yes, I'm sure he's already aware of that.
Speaking personally, it would be nice if my back button on my air mouse (the same one as the OP has which, despite being marked as a back button, is effectively seen by Android as a right mouse click) actually worked as a back button. To stop having to turn my air mouse over to access the esc key every time I wanted to go back, given that the QWERTY doesn't work when pointing downwards. I had to remap my Menu button as the back button isn't seen by any key mapping apps.
So yes, a big thumbs up from me too if this can happen in Xposed. I'm rooted and running it already.
Click to expand...
Click to collapse
Yes this is what I am also trying to do, so if anyone has figured out how to make the right mouse button into the back button that would be amazing!!
Xposed Additions may work for you.
ErAzOr2k said:
I did some research and found this:
https://github.com/timduru/platform-frameworks-base/commit/bae953c0063dc1afb9e8c43381f3894329abe115
Think this is exactly what we need to fix this.
Is it possible via xposed module? Maybe any Devs are interested in that one?
Click to expand...
Click to collapse
what exactly is this? thanks
[email protected] said:
Yes this is what I am also trying to do, so if anyone has figured out how to make the right mouse button into the back button that would be amazing!!
Click to expand...
Click to collapse
It's impossible as far as I'm aware to map the back button on my air mouse to a specific activity. Like I said, I ended up mapping the menu button instead. I've gotten used to it now.
Mogster2K said:
Xposed Additions may work for you.
Click to expand...
Click to collapse
Unfortunately not. In fact, not only did it not work, it caused delay issues in button presses on my NVidia controller. This only stopped when it was deactivated within Xposed.
Only other thing I can think of would be to create a custom profile in /system/usr/keylayout/, however I don't know the details of how to do it.
Sent from my LG-H811 using Tapatalk
nice !
nice !
Any updates with this issue? I was actually coming here to post about a similar problem.
Just picked up my Shield TV and tried using this same remote. The center button (select button; left click button) doesn't function at all. I can scroll up and down, left and right, air mouse cursor works fine. But I can't actually make a selection.
I also find that with either the controller or nvidia remote, I can't navigate in app file structures. So when I side load ES Explorer for instance, I can't get into the center of the screen and navigate the file list, only the top and bottom border menus. Or when I sideloaded ShowBox and other similar apps, I can't navigate the movie lists, only the top or bottom menus.
At this point I'm starting to think I'm either better off taking this thing back and using my old droid tv box. OR flashing this thing to make it act like a droid tablet and lose all the added functionality that the shield uses to set itself apart.
So, I bought this remote from amazon:
https://www.amazon.com/dp/B00UYCLV8Y/ref=cm_sw_r_other_awd_CTeTwbRCVNCP1
Which is pretty awesome so far. Everything works except the back button of course. I've been digging and digging and unfortunately I don't think we can change the behavior as it just doesn't seem to be recognized as a typical key scancode. I'm confident of this because I made a custom key layout file for this device, and literally edited 999 key entries, ranging from "key 0" all the way up to "key 999". I gave every keycode the back button tag. What this essentially did was turn every single button on the remote into a back button (lol), and as you may expect, even STILL the back button on the remote only registered as a mouse click.
After searching, it seems the only way to bypass this would to be to change the behavior of the mouse button itself, which according to resources online, is hard coded into the kernel itself. You would have to actually know how to code and compile a new kernel for your media device.
http://stackoverflow.com/questions/...ped-to-work-for-traversing-back-in-jelly-bean
I have created a simple keylayout that anyone can use if interested. It's pretty much just a rip of the generic.kl file, with the zoom in and out buttons on the remote configured as back buttons. If you use a proper keycode scanner, you can study this keylayout file and eventually customize any button (except the back button of course) to do almost anything you want.
It's a temporary workaround until someone figures it out. If it doesn't work for you, you may need to change the filename to reflect the proper vid and pid of your device. I did this by plugging my device into windows and checking the hardware id for the new mouse and keyboard input that popped up.
I'm not sure which directory the file needs to be in, so I just copied it to both known directories:
Root: data>system>devices>keylayout
Root: system>usr>keylayout
I hope this helps.
Edit: Also, a couple of things to note, in case anyone was curious. If your having any issues trying to program the infrared side for a remote, consider that the source remote may be blasting too much for this remote to learn. I discovered this issue because my Samsung tv would send tons of ir data and causing my remote to have troubles learning. If you have a similar issue, try quickly/lightly tapping the button on the source remote when teaching this remote to learn it. Had no issues teaching my remote once I figured this out.
Finally, an oddity I noticed is that the issue seems specific to Android TV boxes. Connecting the USB to my galaxy note 5 via USB otg cable, the back button works fine on its own on this remote. Oddly though, while it registers as a key using the key test app (Google it), it reports back as having a scancode of 0.
Tried adding key 0 as a button in the keylayout config. Still no go. :/
I've made a custom kernel based on stock kernel to (hopefully) change the rightclick event to back event.
Is anyone brave enough to check this out as I don't give a guarantee to anything?!
ErAzOr2k said:
I've made a custom kernel based on stock kernel to (hopefully) change the rightclick event to back event.
Is anyone brave enough to check this out as I don't give a guarantee to anything?!
Click to expand...
Click to collapse
tried your boot.img, and as far as i can tell, nothing.
my shield tv is already unlocked and rooted, so i just used "fastboot flash boot boot.img" in adb to flash the boot image to my device. booted up fine, just i dont see any changes regarding right mouse click.... :/
has anyone figure this out yet. I really need to change the right click to function as "back"
Has anyone been able to fix this meanwhile? With Xposed Module maybe?
I'd love a Magisk (or Xposed) module that fixes that, but I don't think any module like that exists right now...
There are work-arounds to use apps that create fullscreen overlay which intercepts right clicks and emulates a Back button, but those don't work on Shield (or Android TV in general) because creating Overlay / requesting "draw over other apps" permission causes a crash
For now, the most convenient (more than editing *.kl files) work-around I've found is to use an app called Button Mapper (packagename: flar2.homebutton, can't post a link cause I'm a newbie) and emulate Back button on some other button...