Is it possible to re-assign 'Search' button so that it opens other apps? (I don't use Search)
Found registry keys at 'HKLM/System/Touch/Buttons'. There were 'Name' & 'Vkey' value.
Tried changing the values of 'Search' button to match 'Back' button, but it made no difference. Anybody knows whether there are any other registry keys for this function?
Thanks
It is possible.
In wehlockdown.xml file I have remaped the press and long press of the button but I loose the possibility to view my app list.
Of course I can open the apps through store...
I try to use the XML file to remap only the search without changing anything else.
I wait for heathcliff to unlock my 950 so in storage mode to see what changes are made when the search key is mapped...
I have spent a lot of time with XML files.
Here is the place if you want to try.
https://docs.microsoft.com/en-us/windows/configuration/mobile-devices/lockdown-xml
Do you have these keys in touch>settings or is it only me?
Did you was able to update the device after all?
My device was already updated when I did it
NIKOSXRI said:
It is possible.
In wehlockdown.xml file I have remaped the press and long press of the button but I loose the possibility to view my app list.
Of course I can open the apps through store...
I try to use the XML file to remap only the search without changing anything else.
I wait for heathcliff to unlock my 950 so in storage mode to see what changes are made when the search key is mapped...
I have spent a lot of time with XML files.
Here is the place if you want to try.
https://docs.microsoft.com/en-us/windows/configuration/mobile-devices/lockdown-xml
Do you have these keys in touch>settings or is it only me?
Click to expand...
Click to collapse
Cool. Thanks a lot for the info
Can you tell me the location of 'wehlockdown.xml' file ?
I guess mass storage mode needs to be unlocked to edit 'xml' files? (Then I Need to wait for wpinternals 2.5 to support latest FCU)
I see these keys in Touch>Settings
View attachment 4434058
You can use this app https://www.microsoft.com/en-us/store/p/lockdown-designer/9nblggh40753 for creating lockdown.xml and deploying it to device.
WallyCZ said:
You can use this app https://www.microsoft.com/en-us/store/p/lockdown-designer/9nblggh40753 for creating lockdown.xml and deploying it to device.
Click to expand...
Click to collapse
Yeah I got that app from the above link posted by @NIKOSXRI, connected my phone to the app and also saved the file to local directory. But there wasn't any option to deploy it to the phone.
Its easier to directly edit the xml file in Phone and remove few lines from it.
View attachment wehlockdown.xml
Donz7733 said:
Yeah I got that app from the above link posted by @NIKOSXRI, connected my phone to the app and also saved the file to local directory. But there wasn't any option to deploy it to the phone.
Its easier to directly edit the xml file in Phone and remove few lines from it.
Click to expand...
Click to collapse
Try Project settings/General settings/Sync or Validate&Export
You can also import existing xml.
Donz7733 said:
Yeah I got that app from the above link posted by @NIKOSXRI, connected my phone to the app and also saved the file to local directory. But there wasn't any option to deploy it to the phone.
Its easier to directly edit the xml file in Phone and remove few lines from it.
Click to expand...
Click to collapse
https://docs.microsoft.com/en-us/wi...isioning-packages/provisioning-create-package
You can create a prov package with windows configuration designer and put the xml file in embeded lockdown profiles place.Then you install the package putting it in the phone from usb file explorer.
I will attach my package and my xml file for you to test.
The search button when pressed opens the settings page and with long press opens one-note.
BUT the app list doesnt show though the apps exist and open from store app with the launch button.
ALSO the live tiles have some problems...
After installing the package I show some registry entries that must be changed for a better result but i have not an unlocked phone...
HKEY_LOCAL_MACHINE>Software>Windows>WEH>DeviceLockdownProfile
Inside last key there are settings that need to be changed...I believe that the app list will appear if we change the menulockdown from 0 to 1 and also the enabletile manipulation from 0 to 1...
I attach my package in filebin
https://filebin.net/vso7xlldyv2lupc3
and the xml below
spavlin said:
View attachment 4434290
Click to expand...
Click to collapse
I dont see any button remaping
Is this the only way? I thought I had to just edit xml files in internal storage or some reg keys. Can you tell me the risks of deploying a provisioning package?
Donz7733 said:
Is this the only way? I thought I had to just edit xml files in internal storage or some reg keys. Can you tell me the risks of deploying a provisioning package?
Click to expand...
Click to collapse
When you remove it the things that are screwed remain and you must hard reset.
So you better dont do it in your primary device
Ohhh. It is my primary device. Then I will wait for WPI 2.5 so that I can make a complete backup of my phone and then try this. [Already done lots of registry edits, don't wanna do that all again ]
And about that app list missing thing, I selected all apps and settings in Lockdown Designer and exported the file along with Nav buttons changes(My XML file had all apps/settings entries). So I believe there wont be an issue if its packaged in this way. Can you create a provisioning package from the attached file?View attachment wehlockdown.xml
Related
I made a little Cab file of the Softkey Changer App I found somewhere in an Extended Rom.
Since there are a lot of people who want to change the softkeys.
Enjoy
what does it do? Is it to change application in the main (today) softkeys?
or can it also change softkey in other applications such as Outlook Mobile?
Thanks in advance.
sharky48 said:
I made a little Cab file of the Softkey Changer App I found somewhere in an Extended Rom.
Since there are a lot of people who want to change the softkeys.
Enjoy
Click to expand...
Click to collapse
I too am confused. Isn't there already an option to change whatever application we can launch using the soft key buttons by going to the system settings?
This application is not standard in every Rom.
If you don't have it in your Rom, you can add it now.
Yes you can assign every program to one of the softkeys.
sharky48 thanks for this fantastic thing. I use to have some other one, bu this is just perfect.
Thanks again
rilazi said:
sharky48 thanks for this fantastic thing. I use to have some other one, bu this is just perfect.
Thanks again
Click to expand...
Click to collapse
I did not make it, I'm only supplying.
I did read about something like this in a very old post, but this is more up 2 date.
Enjoy
sharky48 said:
I did not make it, I'm only supplying.
I did read about something like this in a very old post, but this is more up 2 date.
Enjoy
Click to expand...
Click to collapse
This one is much better:
- It allows to select any application whereever the application is.
- Allows to rename the Soft Key Display Name
- The applet can be put on any Tab (Personal, System or Connections) of Settings
Cheers,
.Fred
ps.: the only disavantage is that the size of the applet is 63k against the 18k of yours
dotfred said:
This one is much better:
- It allows to select any application whereever the application is.
- Allows to rename the Soft Key Display Name
- The applet can be put on any Tab (Personal, System or Connections) of Settings
Cheers,
.Fred
ps.: the only disavantage is that the size of the applet is 63k against the 18k of yours
Click to expand...
Click to collapse
Thnx DotFred,
Yours has much options, that's what we like.
Sharky48
How to install the applet?
Hi guys,
I just downloaded the applet. I cant seem to use it. Can anyone tell me how to use it?
satanisme said:
Hi guys,
I just downloaded the applet. I cant seem to use it. Can anyone tell me how to use it?
Click to expand...
Click to collapse
You need to unzip the file and copy the applet file to \windows folder then perform a soft reset.
cktlcmd said:
You need to unzip the file and copy the applet file to \windows folder then perform a soft reset.
Click to expand...
Click to collapse
Thanks for the explaination. Appreciate it.
Does anyone know of a way to access call history using the softkeys, or even the hard keys?
On my old C500 i think there was an executable somewhere which opened call history, and it was possible to point a button at this, can't seem to find one on the hermes though.
cktlcmd said:
You need to unzip the file and copy the applet file to \windows folder then perform a soft reset.
Click to expand...
Click to collapse
and than???
thanks
rubens1202 said:
and than???
thanks
Click to expand...
Click to collapse
Open settings and you should see on one of the tabs, the "Soft Key" applet.
Cheers,
.Fred
New SMS & New MMS Soft key command
dotfred said:
Open settings and you should see on one of the tabs, the "Soft Key" applet.
Cheers,
.Fred
Click to expand...
Click to collapse
Thanks! Does anyone has these files: tnsms.exe (for "New SMS" command) and tnmms.exe (for "New MMS" command) in folder: My Pocket PC\Windows\ ? Couldn't run softkeys for "New SMS" or "New MMS".
Thanks again!
so i got the app working but on WM6 even though i changed the soft key in the program on the today screen the right soft key still says menu
what should i try to change that?
also how do i edit the names so instead of it saying messaging for the left soft key it becomes Messaging with a capitol?
th3godf4th3r said:
so i got the app working but on WM6 even though i changed the soft key in the program on the today screen the right soft key still says menu
what should i try to change that?
also how do i edit the names so instead of it saying messaging for the left soft key it becomes Messaging with a capitol?
Click to expand...
Click to collapse
There should be an option there to rename it. Just read it carefully. It should be at the top.
---
wow thanks im stupid.
however still i cannot change the right soft key, even though i have a program selected in the program, on the today screen it still wont change from Menu
So I changed the right soft key to new sms and it didnt work, so I changed it back to Calendar but now it gives me an error:
HTCCalendar.exe
The file "HTCCalendar" cannot be opened. Either it is not signed with a trusted certificate or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file.
This is using the former file (soft key changer.zip) not applet.
Even resetting doesnt help.
Hi, does anyone know how to remove the first four shortcuts in the start menu of the htc touch pro 2? Thanks.
savvase said:
Hi, does anyone know how to remove the first four shortcuts in the start menu of the htc touch pro 2? Thanks.
Click to expand...
Click to collapse
i also want to know this. Maybe in the registry?
Yup, you can do that in the registry.
Go to HKLM\HTC\Manila\ProgramLauncher
There you see a a lot of numbered folders.
Start menu begins with zero for the first icon.
You can unlock them by going in the folder for example 0.
There you'll find a key named "IsReadOnly" with a value of "1".
Change the 1 into a 0 and voila, now you can change or delete the link.
So the first four locked items you'll find in the folders 0,1,2 and 3.
H.
h.vanleeuwen said:
Yup, you can do that in the registry.
Go to HKLM\HTC\Manila\ProgramLauncher
There you see a a lot of numbered folders.
Start menu begins with zero for the first icon.
You can unlock them by going in the folder for example 0.
There you'll find a key named "IsReadOnly" with a value of "1".
Change the 1 into a 0 and voila, now you can change or delete the link.
So the first four locked items you'll find in the folders 0,1,2 and 3.
H.
Click to expand...
Click to collapse
Correction the path is HKLM\Software\HTC\Manila\ProgramLauncher
I changed mine... glad it can be modified :>
Thanks for the tips
Oops, sorry for that
H
do you access the reg the same as a pc with regedit
Thanks works great !!!
combat goofwing said:
do you access the reg the same as a pc with regedit
Click to expand...
Click to collapse
Do a search for CeRegEditor and use that.
Worked like a charm, thanks poster.
Registry Editor app for HTC devices,
based on the registry viewer from (nico)
use on your own risk
EDIT: some of the paths are hidden, I'll add an option to manually edit a registry key
v1.3:
added manual button, for manual add of registry key. you can also manually type in a path and then click enter to try to resolve its sub keys. in the same way you can enter a key name and click enter to try to resolve it.
v1.4:
values are escaped
Sorry, where are the XAP file?
rename the file .zip to .xap
pth6 said:
rename the file .zip to .xap
Click to expand...
Click to collapse
the xap is inside the zip
blutz said:
the xap is inside the zip
Click to expand...
Click to collapse
effectively, I had a bug that also extracts the xap.
version updated to 1.3, you can now manualy add registry values or resolve hidden values
blutz said:
version updated to 1.3, you can now manualy add registry values or resolve hidden values
Click to expand...
Click to collapse
could you give an example of what you mean by resolve hidden values?
Bug: entering a value with an ampersand ('&') fails silently. Try it yourself and see if you can change any value to xxx&yyy. The update will appear to work but it won't actually have done anything.
Bug in the tool, or issue with the HTC-specific DLL/API? The new touchxplorer Advanced Config appears to have the same issue.
indiekiduk said:
could you give an example of what you mean by resolve hidden values?
Click to expand...
Click to collapse
example 1: Click the manual button, in path type: HKLM\System\Platform\DeviceTargetingInfo
then click enter, you will see the content of a registry path that wasn't listed.
example 2: Click the manual button and type in
Path: HKLM\System\Platform\DeviceTargetingInfo
Value Name: oemname
then enter, the value data will be resolved (HTC)
tai4de2 said:
Bug: entering a value with an ampersand ('&') fails silently. Try it yourself and see if you can change any value to xxx&yyy. The update will appear to work but it won't actually have done anything.
Bug in the tool, or issue with the HTC-specific DLL/API? The new touchxplorer Advanced Config appears to have the same issue.
Click to expand...
Click to collapse
my bad, had to encode the XML before shipping it to the registry
i fixed it in v1.4
Hi Guys,
I installed it but there are a lot of Paths and Entries not showed even the one i need to prevent Microsoft to relock my device
Any ideas?
Finalforce1111 said:
Hi Guys,
I installed it but there are a lot of Paths and Entries not showed even the one i need to prevent Microsoft to relock my device
Any ideas?
Click to expand...
Click to collapse
Same problem here. I cannot create new keys neither
Does not seem to work, entered HKLM\System\Platform\DeviceTargetingInfo
in the path, hit OK , got the popup warning that the registry will change hit OK,
Registry location stayed where it was. Can it be that the key does not exist on HTC HD7?
Mike
monroe42 said:
Does not seem to work, entered HKLM\System\Platform\DeviceTargetingInfo
in the path, hit OK , got the popup warning that the registry will change hit OK,
Registry location stayed where it was. Can it be that the key does not exist on HTC HD7?
Mike
Click to expand...
Click to collapse
That's because the registry API is being blocked from editing it there.
Use provxml sideloading method to edit such keys, check the sticky
sorry about sily question. i am new to wp7. i have copied .xap file to storage from pc. how do i install this file as i can not see it in phone and it woun't run from pc.
please help.
it doesn't work for my hd7.when i press 1 of the folders my phone just vibrate and back to start.
blutz said:
Registry Editor app for HTC devices,
based on the registry viewer from (nico)
use on your own risk
EDIT: some of the paths are hidden, I'll add an option to manually edit a registry key
v1.3:
added manual button, for manual add of registry key. you can also manually type in a path and then click enter to try to resolve its sub keys. in the same way you can enter a key name and click enter to try to resolve it.
v1.4:
values are escaped
Click to expand...
Click to collapse
It doesnt work on HTC Surrround 7714, it opens, and instantly will close, any suggestions?
fonck03 said:
It doesnt work on HTC Surrround 7714, it opens, and instantly will close, any suggestions?
Click to expand...
Click to collapse
Simple, you're running Mango, "most" homebrew apps run native code which is blocked in Mango.
drkfngthdragnlrd said:
Simple, you're running Mango, "most" homebrew apps run native code which is blocked in Mango.
Click to expand...
Click to collapse
Thks bro,
is there any solution for this, or just wait until a regedit for mango comes out...
Thx
If you are like me you are not happy with the power button placement. I modded a few files that will allow any bluetooth keyboard to wake the screen from sleep. Very handy when the Xoom is docked. Requires Reboot.
Modded Files
Push the files via adb to /system/usr/keylayout/
Example:
adb remount
adb push Generic.kl /system/usr/keylayout/Generic.kl
adb reboot
Apple Keyboard (Vendor_05ac_Product_0239.kl) - Wake with eject key
Generic Keyboard (Generic.kl) - Wake with F1
Motorola Keyboard (Vendor_22b8_Product_093d.kl) - Wake with right ctrl key (Not Tested - Sorry do not have one)
Note:
After the keyboard and the Xoom have been asleep for a while, there may be a delay before the Xoom wakes. Bluetooth devices sleep to save power and it takes about 15-30 seconds to wake and sync again.
Thorough Explanation of Key Remapping:
Better explanation of this is here.
Getting back to default:
If you want to return things to default, download the default files and adb push them back to the Xoom.
Sweet! I'm going to give this a try later. Thanks!
Works great with the Motorola BT Keyboard...
edit: I did remap it back to the default CTRL_RIGHT and instead used the unmapped "reserved" key on the keyboard. It is the 4th key from the top right with 3 lines. Since this key is unused, it seemed more appropriate for now. It is key 226 in the mapping.
@triadX1
Sent from my Xoom using XDA App
Maybe someone in this thread can help me. I posted in other threads but nobody replied. I bought a generic BT keyboard with Apple keys. To remap the keys I downloaded a program to get the scancodes for each key and modified the Generic.kl. It di not change anything. The question is now, is there a way to name the .kl file like the other 3 already present, i.e. with a manufacturer-specific name? How else will HC know which file to use when the BT keyboard is connected? I hope I got my point across...Thanks everyone!
[sent with Xooming Android technology]
Just a heads-up: I have what must be an older version of the Apple Keyboard (bought in '97); the VID:DID are 05AC:022C :
Code:
apple 0005:05AC:022C.0001: input,hidraw0: BLUETOOTH HID v1.36 Keyboard [Apple Wireless Keyboard] on 40:FC:89:27:62:5C
I just copied your Vendor_05ac_Product_0239.kl to Vendor_05ac_Product_022c.kl and it works fine. Thanks for the mod!
funnycreature said:
is there a way to name the .kl file like the other 3 already present, i.e. with a manufacturer-specific name? How else will HC know which file to use when the BT keyboard is connected?
Click to expand...
Click to collapse
Can you get the Vendor ID/Device ID from the Keyboard?
"adb shell dmesg" once it's connected should be able to tell you. After that, it's just a matter of naming the file as such. For example a device with VID:DID 1234:ABCD would be named Vendor_1234_Product_abcd.kl .
HTH!
it was easy i just edited one file one line next to menu i put wake
Sent from my Xoom using XDA App
system/ust/keylayout/ and vrdb ....093 something then r/w then right click to edit text and scroll to 125 where it says MENU and make it look like this MENU WAKE and reboot and your good menu key is now wake one press wakes and two presses unlocks
Sent from my Xoom using XDA App
kcrudup said:
Can you get the Vendor ID/Device ID from the Keyboard?
"adb shell dmesg" once it's connected should be able to tell you. After that, it's just a matter of naming the file as such. For example a device with VID:DID 1234:ABCD would be named Vendor_1234_Product_abcd.kl .
HTH!
Click to expand...
Click to collapse
I found out that the generic keyboard uses the Apple layout. I want to post a How-to soon but I have very little time lately Thanks for the info though; how would I find the information? I tried connecting the keyboard to my laptop via BT and opened the device manager. Is there any property that shows the VID:DID?
I'm curious as to why the key 226 isn't being used when there's actually no key used to open the app menu. I would have assumed the key used for menu (two keys to the right of the spacebar) would be used for the app menu and the unused key (three horizontal lines) would've been for the menu since most apps I've seen with the on-screen menu looks the same. Plus the icon for the Apps menu actually looks like what is on the Menu key for the keyboard.
What would I need to add to the keyboard file to make a key open the application menu? After looking over the keymaps in the file I couldn't see any key on the keyboard that would open the app menu.
Use 226 for whatever
You can remap 226 to be menu if you want, but i don't know the command to open the app "drawer" on honeycomb.
Just like they said above, the file you want to edit is in
/system/usr/keylayout/
I use root explorer because it lets me edit easily as well. If you want to do it the way i do just follow the steps below:
1- Mount R/W when you get in the folder
2- Long hold on "Vendor_22b8_Product_093d.kl"
3- Select "Open in Text Editor"
4- Scroll all the way to the bottom where it says 226 and edit the line to read
key 226 MENU (3 spaces between 226 and MENU)
if you simply want it to be another Menu key. (Before editing, it says unused or tbd or something, just erase all of that )
Alternatively try:
key 226 MENU WAKEif you also want it to wake up your tablet.
Personally, I edited key 125 to wake up the tablet as described above, and put
key 226 POWERso that i could also lock the screen, thus using the otherwise useless key.
As a sidenote, Root Explorer *should* automatically make a backup for you when you edit the keylayout file, but doing one manually (aka: copy and paste somewhere else on your sdcard) is always a smart move.
Good Luck!
kcrudup said:
Can you get the Vendor ID/Device ID from the Keyboard?
"adb shell dmesg" once it's connected should be able to tell you. After that, it's just a matter of naming the file as such. For example a device with VID:DID 1234:ABCD would be named Vendor_1234_Product_abcd.kl .
HTH!
Click to expand...
Click to collapse
I tried this command and I get a "error: device not found" message. I am using my droid 1 and the blueputdroid app to use my hard keyboard as a bluetooth one. The keyboard works... I just would like to map some things out to open the app drawer and such. Thank you in advance for any help
Sent from my Droid using Tapatalk
That error means adb can't find your xoom. Make sure you have USB debugging enabled
sangreal06 said:
That error means adb can't find your xoom. Make sure you have USB debugging enabled
Click to expand...
Click to collapse
Hmm I have tried it from the zoom itself with a terminal app as well as from the PC and have made sure debugging is running and have gotten the same result each time :/
Sent from my Xoom using Tapatalk
This requires root. I am assuming those having trouble have rooted their phones and have the moto drivers installed on their PC. If adb devices does not show your device then try running the following:
adb kill-sever
adb start-server
adb devices
See if the device shows up now. I am calling these commands from my memory so I could be wrong about the wording. Running adb /? will give you a list of command line switches.
Sent from my Xoom using XDA Premium App
B Dizzle said:
This requires root. I am assuming those having trouble have rooted their phones and have the moto drivers installed on their PC. If adb devices does not show your device then try running the following:
adb kill-sever
adb start-server
adb devices
See if the device shows up now. I am calling these commands from my memory so I could be wrong about the wording. Running adb /? will give you a list of command line switches.
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Hmm it STILL doesn't see it. I know I am an unlocked and rooted xoom. I am running rooted apps just fine and browsing all my system files just fine on the computer with Droid explorer. I just can't get it to see my device in adb. Any ideas?
Sent from my Xoom using Tapatalk
Does anyone here have 3.1? I updated to 3.1 which removed the customized file I replaced for the zoom keyboard, but I read in another thread where a person talked with a rep (i'm thinking from either moto or vzw) about the update stating that the update included "Additional shortcut key support for Bluetooth keyboard".
The file I used was from 3.0 and since I didn't know this at the time, I didn't back it up first. I know...it was stupid not to do so, but whatever lol
If anyone could pull the new 3.1 keyboard layout file for the motorola keyboard and post it, that would be great.
SPIDERTECH said:
Does anyone here have 3.1? I updated to 3.1 which removed the customized file I replaced for the zoom keyboard, but I read in another thread where a person talked with a rep (i'm thinking from either moto or vzw) about the update stating that the update included "Additional shortcut key support for Bluetooth keyboard".
The file I used was from 3.0 and since I didn't know this at the time, I didn't back it up first. I know...it was stupid not to do so, but whatever lol
If anyone could pull the new 3.1 keyboard layout file for the motorola keyboard and post it, that would be great.
Click to expand...
Click to collapse
Anyone able to pull this file for me? It's the Vendor_22b8_Product_093d.kl
SPIDERTECH said:
Anyone able to pull this file for me? It's the Vendor_22b8_Product_093d.kl
Click to expand...
Click to collapse
Here ya go http://db.tt/9fAD3NS
Sent from my Xoom using Tapatalk
ruvort said:
Here ya go http://db.tt/9fAD3NS
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
Thanks for that. It looks like the 226 key is STILL not being used. I'm curious now as to what the additional shortcuts were supposed to be.
Hi all, i've jumped from OOS to CM12.1 and CM13 (and cm13 based roms) for some time, but today i wanted to give another shot to OOS 2.2.0 (and wanted to try boeffla's kernel as CM isn't official yet).
And i remembered why i could not stay on OOS after a few seconds... i really hate the hardware keys setup (recents-home-back).
I'm used to have Menu-Home-Back (and recents access from long press home, or press home from nova launcher).
I've been reading and then learning many things in the past few weeks, so i though i should try to edit those keys just like we did on CM, even if before switching to CM i've looked around and didn't find anything working to change these.
So, here it is.
What you need:
Rooted phone and file manager with root access (there are many but i love FX file explorer, and the root add-on is free).
You need to go to /system/usr/keylayout
Then make a backup of the Generic.kl file (to make it easier i make an archive of it by long press on the file, then archive, but a simple copy and paste will do).
After that, don't forget to unlock the system partition if needed (tap the little lock and accept to open it on fx file explorer).
Open Generic.kl with file editor.
What you need to know is that left key is key number 139, middle one is number 172 and right one is 158.
Functions that can be affected are: MENU HOME BACK APP_SWITCH VOICE_ASSIST.
But for some obscure reason, MENU acts like APP_SWITCH in oxygen OS, so the trick is to replace MENU with MENU VIRTUAL (this will emulate Menu button from on screen navbar, but you don't need to activate the navbar).
So, if you want for example this layout: Menu-Home-Back
You'll need to edit the Generic.kl and replace the Line
key 139 MENU
with
key 139 MENU VIRTUAL
(key 158 BACK and key 172 HOME don't need to change).
Another interesting point is that if you use xposed installer and Gravity Box LP, you can assign different functions to double press or long press on buttons, but it's working only with on screen navbar buttons... you see where i'm trying to get ?
If you modify the generic.kl file and replace MENU with MENU VIRTUAL and BACK with BACK VIRTUAL... then you'll be able to add custom actions with Gravity Box... like the one I really miss, hold back to kill.
I didn't try to replace HOME with HOME VIRTUAL as i can configure long press and double tap home from oxygen OS, but it may work exactly the same if you want something special from Gravity box.
For exemple, my setup is like that:
Menu-home-back
Menu long press => Switch last app
Home long press => Recent apps
Back long press => Kill foreground app
Double Tap Menu => Google Now
Double Tap Home => Screen off
Double Tap Back => Nothing
To sum up, on the phone, keys are:
key 139 - key 172 - key 158
You can affect different general functions to these, like:
MENU
HOME
BACK
APP_SWITCH
VOICE_ASSIST
and maybe more
You can add VIRTUAL behind the function to emulate the on screen navbar buttons (and it seems required for the menu, as it still calls the recent apps in OOS), and then you can add double tap or long press functions with gravity box.
You don't need to enable the navbar to get them working.
I don't know if i've been clear enough, as i'm not used to this kind of things (i wonder if that's not my first thread on XDA...), but i just hope this will be useful to some of you,
have a great day.
[Edit: Forgot to mention you need to reboot the device when it's done]
Great thread. Will test
Got a bit of an issue... I just experimented with this and it was providing very odd results. So, I copied the backup generic file back to the location... restarted the phone. Now, no buttons do anything. There's no way for me to get home so a restart is the only option I have by forcefully turning off the phone. I'm not sure what to do, the file looks absolutely fine. Any help please? I don't know what to do... I don't want to reflash the rom..
If you restored the original file, at the original place, I don't know why this would not get you back...
Did you try to change the behavior of key in settings?
Envoyé de mon ONE E1003 en utilisant Tapatalk
J0kker said:
If you restored the original file, at the original place, I don't know why this would not get you back...
Did you try to change the behavior of key in settings?
Envoyé de mon ONE E1003 en utilisant Tapatalk
Click to expand...
Click to collapse
Thanks for your help, but unusually it eventually sorted itself out. After 3 reboots the buttons began to work again... weird!
can you change hardware keys to [L-R] Recent Menu Back on CM13 using this method?
sphoenixp said:
can you change hardware keys to [L-R] Recent Menu Back on CM13 using this method?
Click to expand...
Click to collapse
Yes you can, but the file isn't the same, you should edit:
system/usr/keylayout/synaptics-rmi.kl
If you want to swap keys, simply switch the numbers (139 with 158), it's exactly the same as modifying the functions, but easier to type, especially on a phone.
It doesn't work for me. I added virtual at menu and back. Changed gravitybox back long press and double tap to kill foreground app. Single tap of back still not working.
Have i missed out anything? Oss 2.20 here.
J0kker said:
Yes you can, but the file isn't the same, you should edit:
system/usr/keylayout/synaptics-rmi.kl
If you want to swap keys, simply switch the numbers (139 with 158), it's exactly the same as modifying the functions, but easier to type, especially on a phone.
Click to expand...
Click to collapse
Thanks so much it worked.
Saved and rebooted the phone
Tiongkia said:
It doesn't work for me. I added virtual at menu and back. Changed gravitybox back long press and double tap to kill foreground app. Single tap of back still not working.
Have i missed out anything? Oss 2.20 here.
Click to expand...
Click to collapse
Strange, i'm on OSS 2.2.0-X and it's working perfectly.
Maybe try to activate Master switch under Navigation Bar tweaks in gravity box ?
I'm almost sure this won't help, but you need to write it all in uppercase letters.
J0kker said:
Strange, i'm on OSS 2.2.0-X and it's working perfectly.
Maybe try to activate Master switch under Navigation Bar tweaks in gravity box ?
I'm almost sure this won't help, but you need to write it all in uppercase letters.
Click to expand...
Click to collapse
Its already in caps. Don't work
Also try enabling master switch under navigation bar tweaks. Also don't work.
I just updated to 2.2.0-x too
Tiongkia said:
Its already in caps. Don't work
Also try enabling master switch under navigation bar tweaks. Also don't work.
I just updated to 2.2.0-x too
Click to expand...
Click to collapse
I can try to upload my generic.kl file if you want, just to see if it works for you as it does for me (this way we will know if it's this file related or not).
You should have menu-home-recents.
Rename the file (remove the .txt, i could not join a .kl file, invalid).
Maybe check the permissions too.
Envoyé de mon ONE E1003 en utilisant Tapatalk
J0kker said:
I can try to upload my generic.kl file if you want, just to see if it works for you as it does for me (this way we will know if it's this file related or not).
You should have menu-home-recents.
Rename the file (remove the .txt, i could not join a .kl file, invalid).
Maybe check the permissions too.
Envoyé de mon ONE E1003 en utilisant Tapatalk
Click to expand...
Click to collapse
I appreciate it buddy. But don't work
Tiongkia said:
I appreciate it buddy. But don't work
Click to expand...
Click to collapse
Sorry to ear that, if you ever manage to get it working, let us know (and why/how).
Tiongkia said:
I appreciate it buddy. But don't work
Click to expand...
Click to collapse
You should check if A you have a text editor that supports editing in system partition and B if you have root file explorer that supports writing in system partition (and permissions). I would recommend es file explorer, just for this particular task. Afterwards just delete the file explorer.
The easy way is to delete the file in keylayout and write the file (with es file explorer) from OP couple of posts ago in keylayout direction. Reboot and also enable masterswitch in gravitybox. Voila, this method can't go wrong and works always.
I have es explorer and root browser. I am able to change permission too. Also reboot but no effect.
Anyone else tried?
Tiongkia said:
I have es explorer and root browser. I am able to change permission too. Also reboot but no effect.
Anyone else tried?
Click to expand...
Click to collapse
I tried and it worked perfect. Can you look up what your generic file says under 139 and 158 ?
Tiongkia said:
I have es explorer and root browser. I am able to change permission too. Also reboot but no effect.
Anyone else tried?
Click to expand...
Click to collapse
Just wondering, do you have navbar enabled ?
If it is, try to disable it and reboot... i've never tried with navbar enabled, so who knows !
Tried all. Don't work. I give up. Thanks buddies. Appreciate it
Hi,
Applied without problem, just I can't set double tap action on the Home button.
I don't know why double tap doesn't work just for the home button. No problem with menu or back settings or on long press.
I think that Nova breaks this setup.
My conf :
OOS 2.2X, Xposed 80, Gravity Box 5.3.3, Nova lastest release
Edit : When I revert to the original file, the default setting (Settings > Buttons) Double tap for the Home buton is ignored.