Hi, after determining the protocol to change the keyboard layout thanks to user birdie in this post, I remain unable to disable/remap my "recent apps" button in the navigation bar. (Another way to reach that goal would be the gravity box requires Xposed framework which is not yet compatible with my phone/firmware.)
For completeness:
Android 7.1.2
LineageOS version: 14.1-20180609-NIGHTLY-osprey
Phone: MotoG3.
In the original post referred to above, the recent button is said to be found in file
Code:
/system/usr/keylayout/synaptics_dsx.kl
However, that file does not exist (in that location) on my phone. The only two files that do exist are:
Code:
Generic.kl
AVRCP.kl
Hence I inspected both, and modified Generic.kl to
Code:
key 580 BACK VIRTUAL
key 581 HOME VIRTUAL
key 582 HOME VIRTUAL
So to be explicit, I remapped the "recent apps" button mapping, to home. However, it does not have any effect, neither after rebooting. Therefore, I have the following question:
Does anyone know in which file and under which key number the "recent apps" button is mapped, for the phone as detailed above?
Kind regards
Related
Does anyone know where to find out all the shortcuts you can do with an external keyboard on Android 4.0? Things like the back button, home screen, etc. Thank.
Thread Necromancy, I know, but this is a serious question that remains unanswered. Here's the most info I've found:
Rootzwiki User Gr8gorilla posted a list of shortcuts that work with his Targus Bluetooth Keyboard (I'm editing the list for formatting, and adding more as I find them.)
ESC: Back (woo!)
Targus FN + F* keys: (edit: These only work with the specific model of Targus keyboard. Your FN key may only perform functions as labelled, test it to verify)
FN+F1: Search
FN+F8: play/pause music
FN+F7: Skip Prev
FN+F9: Skip Next
FN+F11: Volume -
FN+F12: Volume +
FN+ESC: Wallpaper, manage apps, system settings.
Alt+Tab - recent apps, task switcher (WOO!)
CTRL + Alpha keys:
Ctrl+A: Market (edit: this opens the "add to home screen" menu for me)
Ctrl+P: Settings
Ctrl+W: Wallpaper
Ctrl+M: Apps
In Browser: (edit: these work in other apps too, if they apply)
Ctrl+B: Bookmarks
Ctrl+A: Select all
Ctrl+C: Copy
Ctrl+V: Paste
Ctrl+W: Close current tab
Ctrl+T: Open new tab
Command/Windows button + : (edit: these commands work from anywhere, even in other apps)
Win+E: Launch Default Email App (brings up a choice dialog if necessary)
Win+A: Launch Calculator.apk
Win+S: Launch Messaging.apk (SMS App)
Win+C: Launch Contacts
Win+B: Launch Browser.apk (not your default browser, unfortunately)
Win+P: Launch Music.apk (not your default music player, unfortunately)
Win+L: Launch Calendar
Win+M: Launch Google Maps
From my own experience: the above work, other than the Targus-specific ones. I've tested them all. I'm looking for more, especially ways to activate "HOME", "MENU" and to open/close the notification drawer.
Also, you can edit your /system/usr/keylayout/qwerty.kl to change which key codes sent by the bluetooth keyboard activate various functions. This would be a rather involved hack, and may be specific to your hardware. Doing it wrong could compromise your ability to use your software keyboard. Also, it would be replaced whenever you flash a ROM, and possibly some smaller updates as well. Here's a guide to hacking keyboard layouts, though it's a bit old, and I haven't tested it. DO AT YOUR OWN RISK, but post your results either way!
I'm looking for a way to enable the Android SDK Emulator Shortcut Keys on real devices. It would give us that which we're missing.
Ctrl+W and Ctrl+T
In the stock browser:
Ctrl+W - closes the current tab
Ctrl+T - opens a new tab
There may be more of these that are similar to chrome shortcuts but those are the only two I really use.
erupe said:
In the stock browser:
Ctrl+W - closes the current tab
Ctrl+T - opens a new tab
There may be more of these that are similar to chrome shortcuts but those are the only two I really use.
Click to expand...
Click to collapse
Tested to verify. Works in Chrome as well. Added to the list above!
Thanks for coming up with that list. Really appreciate it.
I'd just like to clarify something: using an app called KeyEvent Display, free on Google Play, you can verify that Android is actually receiving keystrokes from your keyboard. I've tested every key on my keyboard, and found that they correspond exactly with /system/usr/keylayout/Generic.kl (fn key excluded, because that's handled by the keyboard itself, not passed to the OS).
I think the Android Framework doesn't know what to do with:
F-Keys
Mute
wow nice one.
I'm using CM9 5/2 version currently and seeking for a key remap.
A key user experience of ICS is multitasking but the 2 second delay on home button prevents me from using this function of Recent Apps. So I start to remap my search button to ics recent apps.
1: http://forum.xda-developers.com/showthread.php?t=1480887
[MOD][PORT]Search key to ICS recent apps for ICS Passion from Vibrant forum
2:http://forum.xda-developers.com/showthread.php?t=1450138
[HOWTO] Remap hardware button to ICS recent apps (which contains Java change instruction_
According to link2 I edited system/usr/keylayout/melfas_touchkey.kl and change search to recent apps, but it's not the ics style like long-press home button, it's gingerbread style recent apps. It seems to need some java change to support the change.
Among all the mods only link 1 make it work that search button->ICS recent apps. Link 1 provided excessive change and it mess the home button and power menu up. I deleted the key layout change part from Link 1 zip so the home button is fine, but how could I edit android.policy.jar in META-INF and system/framework?
Update May 17:
I finally decomplied the android.policy.jar into classes.dex, then I took out PhoneWindowManager.class and that's all I can see, can't edit it anymore.
Thanks
Troubleshooted installation failure problem, I simply copied the android.policy.jar to replace my old one and it's not working well either.. of cource not, any good idea?
I finally rooted my device after 2 years... lol. I love the dock, but it always bugged me that the search button was were you normally would find alt and the back key wasn't escape. It made doing alt+tab and using escape in terminal really difficult. Here's a guide on how to remap all these 4 buttons on the hardware dock keyboard for the transformer infinity. I think this probably will work with the prime and other transformer docks as they seem to have all the same key codes. All you need is root and to follow this guide and you can customize almost anything you'd like.
Remapping Screenshot Key to Camera Key
Who needs a screenshot key?? I think it'll be more useful as a camera key. Unfortunately, this is a custom program that handles all the special keys on the top of the keyboard (wireless on/off, bluetooth, etc.). I had to edit the source and recompile this to get the camera button to work. No guarantee that it will work for you as you will need to compile custom code, but you can use my file. I compiled it for Zombi-Pop 5.1.1.
org.omnirom.asusdec.jar
Download that file to your tablet. Open a Terminal up and remount /system as read-writeable.
Code:
mount -o remount,rw /system
Back up your current /system/framework/org.omnirom.asusdec.jar and then overwrite it with the new file.
Reboot and your screenshot button now should launch the camera!
Remapping Other Keys
Remapping the standard keys is much easier to do. All you have to do is edit a .kl (keyboard layout) file. You can use my .kl file or modify it to your own liking. Here is my .kl file:
asusdec.kl
#1. remount /system as read-writable. Refer to above.
#2. Backup /system/usr/keylayout/asusdec.kl if you have that file.
#3. Upload the new asusdec.kl to /system/usr/keylayout/asusdec.kl.
#4. (optionally) open the file and edit it to your heart's content.
#5. Reboot and enjoy your new key layout.
Can you remap the browser key to open another browser other than stock?
This experimental input method for Android TV devices includes both a control mapper and a variety of options for text entry.
Jump to the latest release.
Control Mapper:
Remap buttons
Use buttons as hotkeys to quickly launch favorite apps
Switch your Sony Touchpad Remote to/from mouse pointer mode (Sony Bravia only)
Create several control mapper profiles and assign each app to the appropriate profile
Keyboard:
On-screen keyboard
T9 style entry with a TV remote with number and color keys
Dictate the contents of any text field using your remote with onboard microphone
Note: This means voice search will not be summoned when a text field has focus.
Notes:
Motion controls (e.g. analog sticks) cannot yet be remapped. An extremely limited form of this functionality is expected to eventually be released for all users. Full support will require the app to be signed with the platform key.
It might be possible to remap your controls in such a way that you have difficulty using your TV. Don't do that.
v2016.09.17
* Can now intercept the GUIDE key on Sony Bravia TV's
* Vendor-neutral improvements in the dispatch of special keys. Because CMAK cannot intercept most of these keys, you will generally have to choose them from the list instead of recording them.
* When choosing a key to dispatch from the list, CMAK will now detect special keys that are relevant to your TV and list them above everything else. This should dramatically reduce the need to scroll the list and reduce the amount of guessing necessary when special keys have terrible names.
For the benefit of anyone else who has a Sony Bravia, these are the special keys on my TV:
3D_MODE
Does not correspond to any key on my remote, but displays the "3D Mode" configuration dialog.
BUTTON_1
The DISCOVER button on my remote.
BUTTON_2
The ACTION MENU button on my remote.
BUTTON_3
The SYNC MENU button on my remote.
BUTTON_4
The NETFLIX button on my remote. It is suggested that if you want to map a key to Netflix, that you use an app shortcut instead.
BUTTON_5
Has no apparent function on my TV.
BUTTON_6
Does not correspond to any key on my remote, but opens the "Playstation Now" app. It is suggested that you if you want to map a key to Playstation Now, that you use an app shortcut instead.
BUTTON_7
Has no apparent function on my TV.
BUTTON_8
Does not correspond to any key on my remote, but opens the "Google Play Movies" app. It is suggested that you if you want to map a key to Google Play Movies, that you use an app shortcut instead.
BUTTON_15
BUTTON_16
These have no apparent function on my TV.
GUIDE
The GUIDE button on my remote. CMAK can also intercept this button and remap it.
HELP
The HELP button on my remote.
TV
The TV button on my remote.
TV_CONTENTS_MENU
Does not correspond to any key on my remote, but opens a dialog that says the feature is not available.
TV_INPUT
The TV INPUT button on my remote.
TV_INPUT_COMPOSITE_1
Does not correspond to any key on my remote, but switches the input to VIDEO 1.
TV_INPUT_COMPOSITE_2
TV_INPUT_COMPONENT_1
TV_INPUT_COMPONENT_2
Does not correspond to any key on my remote, but switches the input to COMPONENT.
TV_INPUT_HDMI_1
TV_INPUT_HDMI_2
TV_INPUT_HDMI_3
TV_INPUT_HDMI_4
Does not correspond to any key on my remote, but switches the input to the corresponding HDMI input.
TV_INPUT_VGA_1
Has no apparent function on my TV.
TV_ZOOM_MODE
The WIDE button on my remote.
v2016.09.18:
This release resolves a major problem discovered in the build process and should improve stability.
CMAK is now available on Google Play: https://play.google.com/store/apps/details?id=by4a.keyboard.leanback
v2016.09.29
Optional non-staggered key layout
Added new "Peripheral Manager" but it's not good for much yet
Various internal fixes and improvements
If you're using CMAK, please post your feedback!
4a_j said:
v2016.09.29
Optional non-staggered key layout
Added new "Peripheral Manager" but it's not good for much yet
Various internal fixes and improvements
If you're using CMAK, please post your feedback!
Click to expand...
Click to collapse
Is it opensource by any chance???
Awesome Idea
I am too using Sony Bravia... with Dishtv (india) this is really a great app.... :good::good:
i really needed such an app... what i am trying to do is map some dummy buttons on my remote to special key for STB_POWER
unfortunatley this is not working.....
as of now everytime i need to goto Action Menu >> Right >> Right >> STB_POWER >> Confirm
i was very happy to find this key in the key to dispatch but to my bad luck this isn't working yet....
also cmake is not available in India Playstore i had downloaded manually any country restrcitions ???
if this starts working for me i need not break my head to send ircc commands via tasker http wifi etc..... trying hard to fix that aswell.... that too seems very complicated and unreliable as of now as it has too much dependency :fingers-crossed:
Hi
There is no t9 keyboard entry for my remote and even i can't find t9 keyboard option in cmak settings
4a_j said:
CMAK is now available on Google Play:
Click to expand...
Click to collapse
The app does not appear to be available in Canada. I'm getting a "Sorry! This content is not available in your country yet" message when clicking on the link. Any way you could make it available in Canada?
Thanks!
I would like to remapper this button (GLOBOPLAY - Orange Button) in TCL remote control, is it possible?
TCL 49C2US Android TV 6.0.
Don't work for me, any tutorial ?
I can't seem to get the Control Mapper to worn on my Shield. I set a button to launch the Control Mapper, but it never actually launches when I press it. I'm on Shield Experience 7.1.0 (Android TV 8.0). Any ideas?
EDIT: Turns out you have to hold the button for a few seconds. All good here now. Thanks!
Hi all.
Not sure how to use this. I have an Android TV Box with a remote that has numbers. I was hoping to be able to use the numbers as a T9 to enter text into the Box.
I installed CMAK but haven't found the way to use it yet. Can someone help me, please? Thanks in advance!
it`s no good without instruccions
NOTE: This is only original work in the sense that I put several different methods together to achieve what I personally wanted. I use a dark theme in my S8 so seeing the Bluetooth icon in the quick settings can be hard in the sunlight when I get in the car so I put this together to help me and I decided to share this with the community. Nearly all of the credit goes to others for making this possible.
PREREQUISITES
TASKER
APP FACTORY (TASKER PLUGIN) https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory
YOUR PREFERRED BIXBY REMAPPING APP
First things first we need to set up a profile to intercept when the Bixby button is pressed. The following is what I use:
Profile: Bixtooth (32)
Event: Variable Set [ Variable:%WIN Value:Bixby* User Variables Onlyff ]
Enter: Bixtooth (31)
A1: Bluetooth [ Set:Toggle ]
I will link to the profile for you to download for simplicity at the end if the guide.
Now we have to give the task an icon. Open the tasks tab, then open the Bixtooth task. In the bottom right corner three is a grid icon. Tap that and select whatever icon/image you want to give it. I personally selected the bixby icon that I got from Google image search.
Next, we have to export the task as an app using the app factory plugin. This is very simple. Just go to the tasks tab, highlight the Bixtooth task and tap the 3 dot menu and select export, then export it as an app.
Give it a name so Android can recognize it such as "com.bluetooth.bixby" then tap Back then once it's compiled, (about 5 seconds) tap the little Android icon to install it as a dedicated app.
The final step is to use your preferred bixby remapping app that will remap it to an app, then simply select remap to the new Bixtooth app we just installed and you're done!
Now whenever you tap the bixby button, it will toggle Bluetooth instead.
This is just a simple way of making life a little safer while driving. Hope it helps!
Thanks to you guide I configured my bixby button to switch my Yeelight. Awesome! Thank you
You're welcome
Hello, there are some bixby button remapper (e.g. "bxActions" or "Custom Bixby Button") which allow to set a shortcut for using with bixby buttons.
Of course you can choose a Tasker Shortcut and select the task you want.
So there is no need to export a task as app.
I only found one that let's the user link to a tasker task but that's a paid feature. I just found a way to do it without having to pay for premium features.
I just checked out those 2 apps and although I had installed them to try them out I had never thought of looking to an "app shortcut". My narrow mind was looking directly for Tasker.
Well if this has taught me anything is that I now discovered a simple way to launch Tasker tasks that I didn't know about before.