So I just got my dock a week or so ago and I'm loving it. Hardly ever take it off now. I especially like the shortcut keys. I was just wondering if there is anyway to change what the keys do when pressed? I hardly ever use the menu key because most of ICS/JB got rid of it. However it would be nice to change that key to say open my recently used apps or anything else really lol. I also was curious about changing what apps are open. So when I use the browser button the stock ics browser wont open but chrome will. Or I can change my settings button to just show notifications.
Sent from my Transformer Pad TF300T using xda premium
Nschneider7 said:
So I just got my dock a week or so ago and I'm loving it. Hardly ever take it off now. I especially like the shortcut keys. I was just wondering if there is anyway to change what the keys do when pressed? I hardly ever use the menu key because most of ICS/JB got rid of it. However it would be nice to change that key to say open my recently used apps or anything else really lol. I also was curious about changing what apps are open. So when I use the browser button the stock ics browser wont open but chrome will. Or I can change my settings button to just show notifications.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
I have also been very interested in figuring out this. From what i have seen, there is a file located in /system/usr/keylayout/asusdec.kl. If you open the file as a text document it shows you the key layout. It also looks like key139 is the "menu" key. I am sure we could change this one entry and copy it back into place to change the mapping, but i do not know what key word to use for the recent apps menu. If we could find this key word, we could edit the file to change the mapping. Does any one know the keyword to use to map the recent apps to a key?
Update: If you edit this .kl file and change key139 to read APP_SWITCH. The key will now bring up the recent apps menu. The only problem is it brings up the old looking recent apps. I am looking into how i can make it bring up the new app switch menu.
Interesting. Maybe getting a hold of Asus and asking them for the keywords would be nice. I wonder if they would have that information or be willing to give it out. Until then we can just keep messing with them and see what they do lol.
Sent from my Transformer Pad TF300T using xda premium
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Nschneider7 said:
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
Unfortunately the lock button doesn't unlock even on the stock ROM. I'll be watching this thread closely to see if you guys figure out a workaround. Maybe a semicolon between commands to send multiple commands at once? Who knows.
Nschneider7 said:
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
opethfan89 said:
Unfortunately the lock button doesn't unlock even on the stock ROM. I'll be watching this thread closely to see if you guys figure out a workaround. Maybe a semicolon between commands to send multiple commands at once? Who knows.
Click to expand...
Click to collapse
To be able to unlock using the keyboard lock key:
You can go to the settings (in stock atleast) -> Asus settings -> Battery saving -> untick the mobile dock option.
I assume this requires rooting? And another thing, have you tried changing the browserbutton to Chrome or any other browser?
Does anyone know if I edit this file /system/usr/keylayout/asusdec.kl. and completely turn it into a garbled mess, will it potentially brick my device ( I'll back up the file of course ) I just wnat to ensure if I reboot after making a change to it and I've made a mistake will it stop my device booting ? I've only rooted my tf300 and it's still locked....
brittan said:
I have also been very interested in figuring out this. From what i have seen, there is a file located in /system/usr/keylayout/asusdec.kl. If you open the file as a text document it shows you the key layout. It also looks like key139 is the "menu" key. I am sure we could change this one entry and copy it back into place to change the mapping, but i do not know what key word to use for the recent apps menu. If we could find this key word, we could edit the file to change the mapping. Does any one know the keyword to use to map the recent apps to a key?
Update: If you edit this .kl file and change key139 to read APP_SWITCH. The key will now bring up the recent apps menu. The only problem is it brings up the old looking recent apps. I am looking into how i can make it bring up the new app switch menu.
Click to expand...
Click to collapse
This issue exists in many places. However, its rather difficult to fix and requires a flash of a patch to fix. I had to do it on ics aokp on my phone... I found someone who would do make the patch for me. However that was aokp, and I don't think it would work here. Also, it requires an unlocked loader.
Sent from my SGH-T989 using xda premium
i was literally jut looking at my dock thinking why do they have a menu key but no recent apps key?
jusatin said:
To be able to unlock using the keyboard lock key:
You can go to the settings (in stock atleast) -> Asus settings -> Battery saving -> untick the mobile dock option.
Click to expand...
Click to collapse
This is useful, just tried it on my TF700. However, now it looks like the screen lock doesn't work. That is to say, when I wake with a key on the dock, there is no slide lock, just comes right back to the Launcher screen. Sounds like that could be a bit of a security issue, honestly.
Also, since the option specifically mentions it drains battery (assumedly from continuously polling from input from the dock), I think I'll wait until this is sorted out a bit better.
This is kind of annoying, tho. Having the TF right here next to me like a laptop, but not being able to wake it with this nice huge keyboard dock...
chriwu said:
I assume this requires rooting? And another thing, have you tried changing the browserbutton to Chrome or any other browser?
Click to expand...
Click to collapse
Check this thread:
http://forum.xda-developers.com/showthread.php?t=1497624
Related
as a user of power strip, i was extremely frustrated when i realized that the native double-tap function overrides whatever you set power strip to. coming from a droid 1 and cyanogenmod, i knew that there must be a way to take this function over.
after doing a lot of searching i came across this:
http://forum.androidcentral.com/motorola-droid-x/33482-disabling-customizing-double-tap-home.html#post349645
in that post zlandau mentions to edit a line in a database table in /data/data/com.motorola.android.providers.settings/databases/settings.db
line 352 has a value of 'double_tap'.
zlandau mentions to change that value to "<program>/<activity>"
assuming that this method will work for what i want to do [restore double tap to power strip], i'm not sure how to call the app properly.
if someone's able to help me out with this i'm pretty sure it will benefit everyone, as it will finally provide a means to disable/customize the function.
[btw i posted this over at droidforums, but figured i'd throw it up here for a quicker response]
also, once this is figured out, maybe someone could make an app to modify this and throw it on the market. i'm sure it would help a lot of people out. droid 2 and X users alike
after messing around i figured it out, with the help of launcher pro activities.
i didn't realize that the table extended to the right and when i saw the action that was set through the system i realized what i was missing.
i was looking for this
'mobi.intuitit.android.p.powerstrip/mobi.intuitit.android.p.powerstrip.PowerStrip'
however, if i set launcher pro as my default launcher and change the doubletap action to power strip, when i double tap it goes home then launches power strip.
i'm going to try just removing the value all together.
I like where this is headed!
Sent from my DROID2 using XDA App
ecnahc said:
after messing around i figured it out, with the help of launcher pro activities.
i didn't realize that the table extended to the right and when i saw the action that was set through the system i realized what i was missing.
i was looking for this
'mobi.intuitit.android.p.powerstrip/mobi.intuitit.android.p.powerstrip.PowerStrip'
however, if i set launcher pro as my default launcher and change the doubletap action to power strip, when i double tap it goes home then launches power strip.
i'm going to try just removing the value all together.
Click to expand...
Click to collapse
Just set the home key settings to do nothing in launcherpro
MotoBoy said:
Just set the home key settings to do nothing in launcherpro
Click to expand...
Click to collapse
yea that's what i already had it set to.
i guess getting power strip to work properly is another story..
but the instructions i posted above do accomplish setting the double home tap to whateve you want
ecnahc said:
yea that's what i already had it set to.
i guess getting power strip to work properly is another story..
but the instructions i posted above do accomplish setting the double home tap to whateve you want
Click to expand...
Click to collapse
That was a good find. I am thinking of what I want my home double tap to be
The problem is that it still takes you home before launching power strip, when it would be best to have it just launch power strip in the current program you are in... I ran into the same problem with quick desk. I settled on using smart taskbar instead because it can be launched by a swipe action, floating icon, or the notification area. And it launches over your current app window. The developer is very responsive to suggestions as well.
Sent from my DROID2 using Tapatalk
activity name?
I would like the double tap to launch google voice
how do I figure out what the name of the startup activity is?
I know the app is com.google.android.apps.googlevoice and I've guessed some generic activity names like com.google.android.apps.googlevoice.GoogleVoice but no luck so far
you can change the double tap home key by going into settings then applications then it will be the last option. not sure on the camera button
I know a lot of people out there are doing this already, but it didn't seem like there was a guide or anything out there for the NS. So, here we go.
(Please, make sure you know what you're doing BEFORE you apply this modification. I can't be responsible if you somehow manage to brick, or make brick-like your phone while following this guide.)
-You can do this using either adb, Terminal, or apps like Root Explorer. Since I'm trying to make this as easy as possible, I'll explain how to do this using the "File Manager" app, which can be installed via Market for FREE.
First, you need a rooted phone. If your phone is not rooted, there is extensive existing literature on how to get this done. (It's awfully easy on our Nexus S )
Run File Manager, hit Menu > More > Settings, scroll way~~ down, and make sure that "Root Explorer" and "Mount System Folders" are checked.
Navigate your way to
/system/usr/keylayout
(you'll have to move Up a step or two to find 'system' folder at root level.)
[BACKUP THE ORIGNIAL FILE WE'RE ABOUT TO MODIFY]
Long-press the file 'cypress-touchkey.kl'
Select 'Copy'
Hit 'Paste', on the upper left corner of app.
You'll be asked to rename the file. Rename it to something reasonable. (like, cypress-touchkey.kl.bakup)
Hit 'Ok'
Make sure the file you just created exists.
[START MODIFICATION]
Long-press 'cypress-touchkey.kl' (again)
Hit 'Permissions'
Make sure that ALL THREE boxed under "Write" are checked, and hit OK.
Hit 'cypress-touchkey.kl' (yet, again)
Select Text > Text Editor
Here, you'll see something like,
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
as you've guessed, the first part,
Code:
key ###
is telling which key this command (event) is for.
So we can intuitively tell that the number for our capacitive 'Back' button is probably 158.
the next section, 'MENU, HOME, BACK, SEARCH' tells Android what these buttons should actually do.
And a pretty good list of what an Android CAN do on a key-press is listed here: http://goo.gl/vrCvJ
From the list, lookup anything that starts with KEYCODE_ and you'll find a pretty good description of what that command ('event') makes Android do.
Just add this keycode, WITHOUT the KEYCODE_ part of the code, to where the current cypress-touchkey.kl reads 'MENU, HOME, BACK, SEARCH' (according to what you want which button to do, that is)
So, for example, I've remapped my 'Search' button to bring up the App Switcher (Recent Apps). (Long-pressing the Home button just didn't cut it for me )
So, my 'cypress-touchkey.kl' looks like this:
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
Now, save your modified 'cypress-touchkey.kl' by selecting,
Menu > Save, and the exit by selecting Menu > Exit.
To be safe, let's set the permissions back to what they were.
From the File Manager App, long-press 'cypress-touchkey.kl' > Permissions,
and un-check the lower two check-boxes under the 'Write' column, and hit "OK"
Now, reboot your phone, and see if all went well
I actually tried this mod on a ICS rom, expecting the ICS app switcher to pop up, but somehow, the APP_SWITCH event seems to bring out the GB Recent App thingy.
Functionally, it still works pretty well for me. But if there's anyone out there who has any information on how to bring out the all-new ICS App switcher with a key-event, I'd really appreciate it
Hope this makes someone's life easier!
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Thanks for this, will definitely try out soon!
Follow the leader @corythug
Any idea what the app switch command is on ICS
Sent from my Nexus S 4G using xda premium
The ICS app-switch is, in my opinion, the best way to use search button key on Nexus S with ICS rom.
Hope someone will be able to find the correct command ot for that and someother creates a flashable zip to do the mod easily from recovery
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
cahir_cz said:
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
Click to expand...
Click to collapse
That's what were trying to figure out
Sent from my Nexus S 4G using xda premium
Thanks for the guide, I'll try it soon. My last few phones were from HTC and I love (or rather am so accustomed to) their button layout.
Sent from my Nexus S 4G using XDA App
Zorrich said:
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Click to expand...
Click to collapse
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Tried this, doesnt work on my kellmsking miui 2.8.1 with francos kernel :/ Changing the file does not change the button behaviour
olorin86 said:
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Click to expand...
Click to collapse
Yes, I've only changed the key-event to APP_SWITCH. Actually, I even tried copy/pasting your code into the file, still didn't work.
Thanks anyways. At least I now know how to do it, just have to figure out why it doesn't work, haha.
When using this the old recent apps comr up, meh.
Sent from my Nexus S using Tapatalk
we need to find the correct keyword for triggering the new ics app switch and it will be great
Anyone got a configuration to recommend to complement the ICS on screen buttons?
brrip said:
Anyone got a configuration to recommend to complement the ICS on screen buttons?
Click to expand...
Click to collapse
I tried logcat to see what happens when it's brought up but i'm not a dev, I know some code buy don't have a computer to try and implement for testing
Sent from my Nexus S 4G using xda premium
I tried alogcat from the market. It didn't show anything of worth after a key press.
Sent from my Nexus S 4G using xda premium
any news about that?
provolinoo said:
any news about that?
Click to expand...
Click to collapse
+1!!!
Sent from my Nexus S
Would be pretty sweet idd
Greenthy said:
Would be pretty sweet idd
Click to expand...
Click to collapse
Agreed, would love to get this working on ICS.
I don't have any use for Google Now nor do I use the built-in Google search function and I'm trying to find a way to remove the shortcut thing that pops up when I long-press the home button on the navigation bar. It's actually infuriating the amount of times I pull it up by mistake.
I am running Paranoid Android 2.5 ROM and the navigation bar options specifically states that the home button shortcut can not be changed in those options like the back/recent/menu buttons can.
I have deleted the googlequicksearchbar.apk from the system apps folder and that at least causes it to just bork up and stops it trying to load everything up when I end up selecting Google Now by mistake but it's still a pain in the ass to have that shortcut there.
I've searched around and the only things I found covering this were disabling it on the lockscreen which is different from what I am trying to achieve.
Has anyone had any success on the PA ROM in regards to removing the Google Now shortcut from the Home button?
Uninstall the google app.
Sent from my Nexus 7 using Tapatalk 2
leelaa said:
Uninstall the google app.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Which google app is that? There is no Velvet.apk to be found and there's nothing in Titanium Backup's list that I can see that looks like it would be that either. I see google voice search and google search. The latter which is no longer present as I deleted the searchbox apk already.
bump
Juan_Largearm said:
bump
Click to expand...
Click to collapse
Lol the Google search app. But I guess u don't wanna do that. Other than that u got no option. Except maybe get an older Google search apk n install,u know from stock ICS gapps? Then u would have Google search n no popup.
THIS. IS. NEXUS.
Have you tried to disable Google Search app in Settings->Apps?
Worked on my Galaxy Nexus with stock rom.
You'll probably have to kill and restart Launcher process to get rid of the grey bar at the top of the screen.
Sent from my Galaxy Nexus using xda premium
Juan_Largearm said:
I don't have any use for Google Now nor do I use the built-in Google search function and I'm trying to find a way to remove the shortcut thing that pops up when I long-press the home button on the navigation bar. It's actually infuriating the amount of times I pull it up by mistake.
I am running Paranoid Android 2.5 ROM and the navigation bar options specifically states that the home button shortcut can not be changed in those options like the back/recent/menu buttons can.
I have deleted the googlequicksearchbar.apk from the system apps folder and that at least causes it to just bork up and stops it trying to load everything up when I end up selecting Google Now by mistake but it's still a pain in the ass to have that shortcut there.
I've searched around and the only things I found covering this were disabling it on the lockscreen which is different from what I am trying to achieve.
Has anyone had any success on the PA ROM in regards to removing the Google Now shortcut from the Home button?
Click to expand...
Click to collapse
I don't think you have to do any of that. Go to settings and go to system settings, hardware keys, or navigation. Go to the home button and change it to none.
Sent from my SAMSUNG-SGH-I747 using xda premium
I just froze Google search in romtoolbox pro.
Sent from my Nexus 7 using Tapatalk 2
I've manged to get Google now off the Nexus 7
After hours fiddling I found the answerr
You go into settings, click on app, and then scroll to the reach 'all'
You will see Google Search open it and hit all buttons which cut the cache and another 2 buttons which I d'ont remeber. Anyway click all the buttons there.
Then you will find that where the google search box was there is now a grey block in its place.
Close down the phone, and when you turn it on again the grey box is gone your sexy home page is back!
I really don't undertand the minds of Google Now. The annoying pop notes never told me nothing I needed to know. Google should at least give an easy option to turn the thing off. I fed with things being installed in phones which you can't deleat.
To those wanting to disable search, that's ok, it is your tablet and you can do with it as you like. But, is it really so hard to not hold down the home button? I use search every day multiple times and find it extremely useful. You can turn off any or all cards and even turn off Now and you get the search screen without any cards. If you gave it a fair try you might fine it useful. Others have posted how to disable it, so the OP has his question answered, but I encourage people to learn and use search.
I disable it because I use my nexus for gaming. So I like it keep my background processes to a minimum. I can only assume others do it for much the same reason. If you don't use it why have it running?
Sent from my Nexus 7 using Tapatalk 2
luminoth said:
I disable it because I use my nexus for gaming. So I like it keep my background processes to a minimum. I can only assume others do it for much the same reason. If you don't use it why have it running?
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
You can kinds of disable it using SwipeLaunch Disabler.
https:/play.google.com/store/apps/details?id=hk.sld.SwipeLaunchDisabler
Go to settings,apps, all, scroll down to Google+ and disable it.
That will just show the "old google search" when you use the home button.
If you want it back go to playstore search Google+ and enable it.
My question is, is there a way to add shortcuts to that menu?
Maybe replace it with this: Home Button Launcher
You can add shortcuts and it's Open Source.
Juan_Largearm said:
I don't have any use for Google Now nor do I use the built-in Google search function and I'm trying to find a way to remove the shortcut thing that pops up when I long-press the home button on the navigation bar. It's actually infuriating the amount of times I pull it up by mistake.
I am running Paranoid Android 2.5 ROM and the navigation bar options specifically states that the home button shortcut can not be changed in those options like the back/recent/menu buttons can.
I have deleted the googlequicksearchbar.apk from the system apps folder and that at least causes it to just bork up and stops it trying to load everything up when I end up selecting Google Now by mistake but it's still a pain in the ass to have that shortcut there.
I've searched around and the only things I found covering this were disabling it on the lockscreen which is different from what I am trying to achieve.
Has anyone had any success on the PA ROM in regards to removing the Google Now shortcut from the Home button?
Click to expand...
Click to collapse
I'm using Paranoid Android v2.50 on my Samsung GS3... I found it irritating that sometimes I would hit the "menu" button too long on my phone by accident (normally when it was in landscape view) and that would bring up the Google Search page every time... here is what to do:
1) Head to "Settings" > "Interface" > "System" > "Hardware keys"
2) Tick "Enable custom actions", the options below will light up for you to edit.
3a) In my case, I had to edit "Menu key (long press)" and set it to "No action"
3b) In your case it would be "Home key (long press)" and then set that to "No action".
That will stop the Google Search feature popping up when you accidentally hold the button down too long
Groid said:
To those wanting to disable search, that's ok, it is your tablet and you can do with it as you like. But, is it really so hard to not hold down the home button? I use search every day multiple times and find it extremely useful. You can turn off any or all cards and even turn off Now and you get the search screen without any cards. If you gave it a fair try you might fine it useful. Others have posted how to disable it, so the OP has his question answered, but I encourage people to learn and use search.
Click to expand...
Click to collapse
I think that is okay to learn how to use it, but for me it is a bit annoying everytime I play MinecraftPE. The proximity of down button and home button is so close that I always end up presing home button then search pops out. I am on stock rom 4.1.1 device with soft keys and notification all bundled up.
Any idea how to disable both the menu and back key? Not just turning the backlight off but actually disabling them.
androidsavage23 said:
Any idea how to disable both the menu and back key? Not just turning the backlight off but actually disabling them.
Click to expand...
Click to collapse
System/usr/keylayout and put a # sign before the keys?
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Could you actually do me a huge favor and try it out? I did exactly that but I don't know if it worked see my menu and back keys are messed up so they would randomly click. Now idk if it works or not. You have to go to system/usr/keylayout and open general.kl as a text file the numbers are 139 and 158.
androidsavage23 said:
Could you actually do me a huge favor and try it out? I did exactly that but I don't know if it worked see my menu and back keys are messed up so they would randomly click. Now idk if it works or not. You have to go to system/usr/keylayout and open general.kl as a text file the numbers are 139 and 158.
Click to expand...
Click to collapse
They would be disabled... That's how you know it works. They would not function.
You do it. You asked for it. Now either do it or don't do it. Don't ask another person to test what YOU asked for.
Sent from my SAMSUNG-SGH-I337 using xda premium
Is there a way to see recently launched apps and switch between them?
This function should be definitely included in default system. So useful!
Can't test it now but try it with long pressing the home button
Huberer said:
Can't test it now but try it with long pressing the home button
Click to expand...
Click to collapse
that goes to the twitch thingy unfortunately.
xd4d3v said:
that goes to the twitch thingy unfortunately.
Click to expand...
Click to collapse
Ok, didn't know. Thank you
I had the same idea but did not work lol.
I am not sure what you are looking for exactly, but the list of apps on the original launcher is always reorganized to show the most recently used apps first. Or are you using a different launcher?
Sent from my SM-N900V using XDA Free mobile app
The best way of doing this is with LMT Launcher using it's Pie feature. Install it, and set up an item as Activity -> System UI -> com.android.systemui.recent.RecentsActivity. This gives you the recent apps, which is normally non-accessible on the shield. You can then add a few others as you see fit. I've added the power menu for example, which gives you the full power off, reboot and sleep options. Not found that anywhere else. All works best with a mouse, so you're best using an alternative launcher like HALauncher. But I suspect most people are doing that anyway given how restricted and awful Leanback is.
It can be downloaded here.
this is like the third or fourth thread about this