Remap camera button - HTC Vox

I know that in order to remap the camera button I have to replace \windows\Short_Camera.lnk
The problem is that that file has read-only and system attributes. I tried to change these attribs with Total Commander 2.5beta, but this fails.
Though I made sure my phone is application unlocked by setting the reg key HKLM\Security\Policies\Policies value "00001001" to 1 (was 2).
Does anyone know how to change the file attributes on \windows\Short_Camera.lnk ??
EDIT: I applied the tricks given below and then it worked:
http://forum.xda-developers.com/showthread.php?t=285344

Related

Change Softkey mapping (How to?)

Hi all,
I am wondering how to change the 4 soft key mapping in order to affect them another program.
This is because the 2 softkey are beginning to break themselve and I would liek to affect the 2 other softkey to do the same (i.e. affect them "Contact" and "start")... see the picture.
I already have some registry trick:
(HKCU\Software\Microsoft
Create a key named 'Home' in here ,and then another key named 'Keys', and then ANOTHER key named '113'.
First Value: 'Default'
Value Data: The text you would like on the key ... (GPC on sample screenshot)
Second value: 'Open'
Value data = "PATH OF EXE or LNK FILE" <--- example is "\Windows\tmail.exe" (it is important to enclose them in quotes)
There is no need to restart device. Just click on the right soft key, press the Home button, and then you'll see the change!)
However i'd like to know what would be the number of the 4 softkey on my QTEK 8310. Anyone know the kay mapping of this device?
Moreover, I'd like to know how "start menu" is launched by the left softkey (what exe is this in the /windows folder?)
Thanks a lot

Can´t change registry values

Hi,
I wanted to change some values e.g.
Turn off startup aninmation and sound: HKEY_Local_Machine\Software\HTC\HTCAnimation\ -> rename both “StartupGif” and “StartupWav” to other names
Click to expand...
Click to collapse
Tried this with "CeRegEditor" http://ceregeditor.mdsoft.pl/index.php?lang=en, but it says always "Write error", as if the registry is protected somehow.
Is there a trick to change the values? Where is my mistake?
Christian
Try a different editor like PHM Reg Editor.
With this prog it works. thx
just a side note. Keep in mind that sometimes some registry edits don't stick if you just do a soft reset via the soft-reset hole on the bottom of the device. Its best to Hold the power button and completely power down the device and then turn it back on.

[Q] how can I remount the qwerty.kl file?

after the 2.2 upgrade I noticed my droid x turning itself on constantly whenever I put it in it's case. I then realized a few days ago that the Home key now activated the phone, which is horrible for exactly the the reason I described.
I read that one can change the cdma_shadow-keaypad.kl file and remove the WAKE entry for the Home key.
After getting root access to the phone I did just that but even though it worked for others it didn't work for me.
I dug deeper and found out that the default key mapping file is qwerty.kl also in the /system/usr/keaylayout folder, so I made a backup and changed that file as well. Now my hardware keys do not work anymore (except for the main power key) and even after restoring the backup qwerty.kl file it's not working. I noticed that the file had cryptic keys in front of the first characters when doing a cat with AGB Shell and the other .kl files didn't so I saved the file in ansi as opposed to utf-8 (even though I read that the .kl files are supposedly be stored in utf-8 format...still no dice.
I am at the end of my rope and would really appreciate if someone would know how to fix this. I write software for a living but in the MS world, Linux is not my forte (apparently)... does the file need to be remapped or remounted? Any ideas?
PS. I discovered today that the reason the phone turns itself on are the magnets in the case...you move it close facing the case and the car dock app launches, you move it close backside and the media dock app launches. Even Dock Nothing doesn't help... so this whole thing has been a waste...
PS3 I tried a factory reset today and it didn't fix the hardware keys so I am at a complete loss
Please help

[HOW-TO] Remap capacitive (if you have(or any other)) buttons on any Android device

My original article on this was made for a Galaxy S3/S4/S5/S6/S7 devices because I didn't know that root directory organisation is almost the same.
This tutorial/how-to will guide you trough the process of remapping you capacitive buttons (or any other, I assure you'll figure it out!).
This however does not work on some chinese phones as I was told. Be careful when doing this, you can cause critical or even permanent damage to your device even if you do a smidge wrong.
HOW TO REMAP CAPACITIVE BUTTONS ON ANY ANDROID PHONE
If you're left handed like me, then you might wanna remap your capacitive buttons if you use the back key more often than the multitask button.
You can remap many other buttons such as volume keys and the power button, just use some logic and you'll figure it out.
As we progress on, you'll realize that there are many more things you can remap other than the physical buttons.
!!!DISCLAIMER!!!
I'm not responsible if this doesn't work for you!
I'm not responsible if your capacitive buttons don't work!
!!!DISCLAIMER!!!
1. You'll need root access for this, otherwise it won't let you edit the file
2. Go to Play Store and download any file manager app that supports root access (Best: ES File Explorer, Total Commander, Root Browser)
3. Open the file manager, and go to the root directory
4. Grant it root permissions if it doesn't ask in the begining
5. Go to the system folder, then to the usr folder and then to the keylayout folder
6. Long press on the Generic.kl file and click on Open as, then on Text and then select your prefered text editor
7. Now click on the search option if you have (otherwise you're gonna have a bad time searching)
8. Search for the word BACK, but search for the whole words
9. Change it to APP_SWITCH (make sure it's capitalized!)
10. Search again for the word MENU and change it to BACK (there may be two MENU words in the file so search twice)
11. Search for the word APP_SWITCH and change it to BACK
12. Save the fie
13. Exit and close the file manager
14. Reboot your device and enjoy!​
Nifty little guide! I'd been itching to figure out how to change the hard-mapped ExpressKeys on my Wacom Cintiq Companion Hybrid for a while now!
The only catch is that with this thing, you have to change those mappings in a file called "gpio-keys.kl" instead of "Generic.kl", which only seems to cover USB/Bluetooth keyboard and game controller mappings. At least it's a neat reference for potential key bindings, though by no means a full list.
In other words, if you can't find what you're looking for in Generic.kl, check gpio-keys.kl or even the other .kl files in that directory. You might just find your physical button mappings there.
NamelessFragger said:
Nifty little guide! I'd been itching to figure out how to change the hard-mapped ExpressKeys on my Wacom Cintiq Companion Hybrid for a while now!
The only catch is that with this thing, you have to change those mappings in a file called "gpio-keys.kl" instead of "Generic.kl", which only seems to cover USB/Bluetooth keyboard and game controller mappings. At least it's a neat reference for potential key bindings, though by no means a full list.
In other words, if you can't find what you're looking for in Generic.kl, check gpio-keys.kl or even the other .kl files in that directory. You might just find your physical button mappings there.
Click to expand...
Click to collapse
Thanks for letting me know, the same thing happened to my brother, he owns a sony xperia s or sl i can't remember
i want to add long press menu button for menu and single tap for recent apps. Help
i.e. menu key >long press > menu
---------- Post added at 04:07 PM ---------- Previous post was at 03:53 PM ----------
Hello!
I bought a EP online, but the power button its damaged,it press it self. I managed to root the device and deactivate the press power option by putting a # before the number of the key.
That worked now the phone is not pressing the key multiple times(it does but the action its null)
The problem its that the continuos Hold of the power key its making the phone to be rebooted, even after the power key its "DEACTIVATED" Is there any name for the action of reset that i can deactivate by doing the # thing?
please help!! this is driven me crazy..

[ROOT | TASKER ] HW Buttons Disabler - Disable volume rocker

HW Buttons Disabler - Disable volume rocker
*If you didn't, see "Button Remapper No Root" on Play Store before doing this. It is not very comfortable for my use cases (I need an easy toggle and a more customizable tasker task), but maybe for you it's good enough!*
Hi everybody,
how many times the physical volume buttons (aka volume rocker) gives us problems?
For instance, when you put the phone in your BT gamepad slot, or maybe in a VR headset, or maybe it's just annoying because of the volume changes when the phone's inside your pocket.
I have a Nexus 6P and faced all these situations, so I googled in search of something to toggle the volume rocker functionality. I found nothing, except manually editing the keylayout files, so I decided to have a script to make it for me.
this script just edits the keylayout files for me, searching for "key 114" and "key 115" for volume down and volume up, then uses sed to comment the lines. It creates a backup file before, if it does not exist already.
To make it simple to use, I created a task with Tasker that creates a notification toggle (actually, using n. 3).
I thought it could be useful to others in the same situation I was.
Installation instructions
Requirements: root and Tasker installed
just flash the hw-buttons-disabler-installer.zip (the script is installed under /system/bin ), import the HW_BUTTONS_DISABLER-tasker-project.prj.xml project and first-run it (to create the toggle). Then, just put the new toggle where you want.
HOW TO IMPORT TASKER PROJECT:
- Open Tasker
- Long press on the bottom house icon (or any other if you have many)
- Select "Import"
- Select the .prj.xml file
You will notice a new Volume icon with the tasker task, just run it one time.
While running, give root permissions if requested.
Warnings
This script edits all matching files under /system/usr/keylayout and it is installed under /system/bin , so the system partition is modified!
After toggling, you need to reboot the device!
Downloads
You can find everything on Github at: https://github.com/xela92/hw-buttons-disabler and I'm also attaching files to this post.
Hope it helps someone else

Categories

Resources