[Q] How to disable ICS/JB Nav Bar keys with root? - Android Software/Hacking General [Developers Only]

Hello everyone,
I am trying to develop a lockscreen type application. I managed to disable the back key on all platforms but the home key only for phones with hardware buttons. I used TYPE_KEYGUARD to disable the home key. However, the home key on ICS and JB nav bars still function.
WidgetLocker apparently uses root to completely disable home and recents (the icons don't even show up). I am not that familiar with root app development. Is there an android API or root library that can be obtained through root to disable the keys?
Any help would be appreciated!

kevdliu said:
Hello everyone,
I am trying to develop a lockscreen type application. I managed to disable the back key on all platforms but the home key only for phones with hardware buttons. I used TYPE_KEYGUARD to disable the home key. However, the home key on ICS and JB nav bars still function.
WidgetLocker apparently uses root to completely disable home and recents (the icons don't even show up). I am not that familiar with root app development. Is there an android API or root library that can be obtained through root to disable the keys?
Any help would be appreciated!
Click to expand...
Click to collapse
Your asking a question, so use the damn Q&A forum. Or read this. Your a senior member with over 500 posts, you should know better by now...

my bad sorry. Saw a lot of questions and the thread "{HELP} Interactive Help Forum!{TUTORIALS} Where questions are encouraged!" so I posted my question here. Probably should have also read the thread below that too.
Can a mod move this to Q&A?
Thanks

Related

[Q] Keyboard dock customizations

Anyone know how to do the following:
1. Change the color of the mouse pointer. I can only see it if the screen brightness is turned all the way up.
2. Is there way to map a key to the recent programs screen?
3. Is there anyway to "Alt+Tab" through open programs? I know the concept of open programs is different than in Windows but even a single key to cycle through would be awesome.
Thanks
as of right now, no no and no.
sorry.
You could possibly change the mouse pointer color if you root and could find the image extract it, edit it and then replace it, but as far as i know no one has tried.
there is noway to remap keys so for now you have to actually touch the screen for this. and yes i find it annoying too.
honeycomb dosn't support a function like that. maybe ice cream this fall.
Apps and recent apps are two glaring omissions to the keyboard considering all the crap shortcut keys I'll most likely never go near. A long press on the home key would be nice to bring up recent apps. Control x/c/p would be nice shortcuts as well.
Sent from my SPH-D700 using XDA App
dbpaddler said:
Control x/c/p would be nice shortcuts as well.
Click to expand...
Click to collapse
I know Ctrl+p works. Does ctrl+c/x not work?

[Q] ICS multitasking invoker?

Hi, is there an app that would creat a tapable icon on your homescreen which could be used to invoke the multitasking overlay? something like statusbar expander but instead of statusbar it would invoke the multitasking. Is there anything like this out there?
May I ask why? I thought tap and holding the home button was already simple enough and easier to use
Yeah, I don't understand why you would want to do this :\
You want an action icon on your homescreen that opens the recent apps list?
I understand why you'd want that.
I almost never use the multi-tasking feature. Using the home button it takes too long to open to be really useful.
If there was an onscreen button as on the Nexus, I'd probably use it more often.
However, the screen of the S is too small for such a bar.
Ideally I'd love to open the multitasking menu by double tapping the home button. Would this be possible?
you can use search key instead..
http://forum.xda-developers.com/showthread.php?t=1448576
Great! Just what I need. Thanks

Remap Keyboard Keys

I have AOKP Milestone 6 installed and I love how it looks, especially the Hide Notification Bar option because it makes my TF feel more like a netbook when I have it docked. The only problem is that the long press shortcuts don't work on the keyboard (ex. long pressing the home key doesn't give me the recent apps menu, it just brings me to the home screen).
I was wondering if there was a way to re-map some of the shortcut keys in the top row (bluetooth toggle, camera, internet, etc...) to my own custom actions such as launching the recent apps menu, killing a window and bringing up the notification bar. I know it's possible to do this in Linux since I just did it for a remote that I use with XBMC (the remote emulates a keyboard), I just didn't know if they feature is extended to Android or not.
Sent from my TF101 using Tapatalk 2
its possible but not easy. Some things can be remapped in the users/ect files such as ausec.(c something) but other more complex things like recent apps have to be done in framework-res.apk as far as i remember
Check out /system/usr/keylayout/asusec.kl.
I'm not sure if you can map keys to specific things like killing a window or bringing up the notification bar. However, recent apps is accessible through alt+tab (try it!) and so you may want to swap the Search and Alt keys.
EDIT: Some useful key names to look for and replace:
ALT_LEFT: left alt
ALT_RIGHT: right alt
SEARCH: search key
FORWARD_DEL: delete, as opposed to backspace. not mapped to anything by default
ESCAPE: escape key. I have this bound to the wifi key because I always accidentally hit it, and sometimes escape is useful in terminals or remote desktop
mjlim said:
Check out /system/usr/keylayout/asusec.kl.
I'm not sure if you can map keys to specific things like killing a window or bringing up the notification bar. However, recent apps is accessible through alt+tab (try it!) and so you may want to swap the Search and Alt keys.
Click to expand...
Click to collapse
Thats right usr/keylayout not user/ect don't know what i was thinking there. I know there is a way to exchange the stupid alt-tab icon recent apps to the cards recent apps but i don't have time to do that right now. I was also going to work on getting a guide set up on how to remap everything because it seems to be a pretty common desire.
Edit:
Found it
http://forum.xda-developers.com/showthread.php?t=1450138
Thanks for the info guys, I'll give it a try! I definitely think I'm going to stick with AOKP for a while since it seems to give me the best experience since I've had my TF (over a year).
alt tab
brando56894 said:
Thanks for the info guys, I'll give it a try! I definitely think I'm going to stick with AOKP for a while since it seems to give me the best experience since I've had my TF (over a year).
Click to expand...
Click to collapse
Have anyone result at this field ?
Is it possible to disable ALT-TAB (that switch android apps)?
I need this combination bee free for RDP.

How to disable all Keyboard Shortcuts?

Hello World,
I have a SG Note, with Lineage 7.1 and a bluetooth keyboard attached to it.
It is *highly* unnerving, when I am in the middle of some other task and the browser pops uo, because I touched the wrong key combination by accident.
Yet even so I found the button in "Settings" where it lists the pre-defined app shortcuts, I can not find the option to change/disable the same.
I'd be grateful for any help here.
Masinissa said:
Hello World,
I have a SG Note, with Lineage 7.1 and a bluetooth keyboard attached to it.
It is *highly* unnerving, when I am in the middle of some other task and the browser pops uo, because I touched the wrong key combination by accident.
Yet even so I found the button in "Settings" where it lists the pre-defined app shortcuts, I can not find the option to change/disable the same.
I'd be grateful for any help here.
Click to expand...
Click to collapse
You've already created a thread on this topic here:
https://forum.xda-developers.com/android/help/how-to-disable-keyboard-shortcuts-t3967752
Do not create duplicate threads please.
Thread closed.

Possible solution to some recent questions...

Some folks have mentioned looking for ways of locking screen and other functions without using the hardware buttons. Several new feature options have accomplished this for me and maybe others can profit from this combination. In the Themes section there is a mod to bring back the 2 button nav bar. Here is the link: https://forum.xda-developers.com/pixel-4-xl/themes/magisk-module-bring-android-pie-2-t4002831
Combine that with the recently added option in -Accesibility- to add the nav bar button by enabling the Accessibility Menu and it created a clean looking setup that is rapidly growing on me. Clearly it's not for everyone but that's why XDA is here... Fun and options. Lol. This is what it looks like.
can we have this as a floating icon on the screen?
virtyx said:
can we have this as a floating icon on the screen?
Click to expand...
Click to collapse
Doesn't seem so. Looks like it functions like a bottom version of the top quick links and with bigger buttons.

Categories

Resources