[Q] HTC One M7 Keylayout or AVRCP.kl - T-Mobile HTC One (M7)

I have rooted my HTC One aka M7 and all is well except when I try to edit my keyboard layout which is located in:
/system/usr/keylayout
I can edit the file but when rebooting to test it, my changes have reverted back to stock.
I am familiar with editing the files as I have done this before on many phones and tablets.
I usually just use ES File Explorer with R/W (Read / Write) permissions turned on for the /system directory.
Very easy to do and have never had a problem before.
As a test, I have tried renaming the original file by adding a number 1 to the end of the file and then replacing the stock file with my edited version.
This has always worked but when I try this on the HTC One upon reboot the original file that has been renamed with a 1 at the end is now gone from the /system/usr/keylayout folder and the stock file is back and the edited version of the file is gone.
I know 'file permissions' are correct as I have set the file to what it was before any changes and I know I have R/W permisions for the /system folder set correctly because without it I can not even rename the stock file (adding the 1 on to the end of the file's name is not allowed unless R/W is set for the /system folder).
It is almost like there is a backup that is being replaced upon reboot to the /system/usr/keylayout folder.
If there is a backup, I can not find where the backup file is to edit/change it also.
I am trying to change the AVRCP.kl file but it its the same no matter which file I edit or rename, it always reverts back to stock file (both the name and the contents) after a reboot.
Anyone have any ideas? Anyone edited there keylayout on the HTC One aka M7 yet?
Thanks

Come on people, no one can answer this question?
I have the exact same problem except I have an M8. Something somewhere keeps reverting the kl file/folder on reboot.

Related

How do I get to build.prop file?

I am new to android but I was to fix PPP problems. I read how you can make changes in the build.prop file to fix it.
How exactly do I get to it? I tried searching my SD card for that file and couldnt find it. If someone could explain to me where it is located and how to get to it and how to make changes in the file, do let me know thanks.!!
it's in /system
do I have to plug it in the computer to see the system folder? I dont see the folder anywhere....
prbly long winded, but simple method - install ASTRO file manager, browse to /system, long press on build.prop - Edit - Copy. Press on the home icon then Edit icon - Paste. Connect sd card, edit it, and paste it over from where you copied build.prop
Either make a directory like this:
e.g. E:/Android/root/system
and paste the modified build.prop in there.
Thank you I got it working.
Sent from my HTC HD2 using XDA App
How can i edit it? I'm using android commander, copied to my PC but then i can't edit it due to the .prop extention? Do i need to rename it?

I have a CWM 3.0+ updater-script question

Hello all,
I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.
Here is what I am attempting to do.
Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.
So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.
the file goes into the /data/data/com.htc.provider.weather/files directory.
My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.
It works as intended because I can see the file using adb prior to reboot.
However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.
BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.
I don't understand why it works one way but not another.
Is there a step I am missing in the updater-script?
Any help would be appreciated....
Thanks,
Scott
UPEngineer said:
Hello all,
I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.
Here is what I am attempting to do.
Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.
So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.
the file goes into the /data/data/com.htc.provider.weather/files directory.
My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.
It works as intended because I can see the file using adb prior to reboot.
However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.
BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.
I don't understand why it works one way but not another.
Is there a step I am missing in the updater-script?
Any help would be appreciated....
Thanks,
Scott
Click to expand...
Click to collapse
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
dbu said:
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
Click to expand...
Click to collapse
LOL, what I was thinking too, but it doesn't seem to work, unless I am doing it wrong.
If I replace the file and reboot, the original rebuilds.
If I delete the file completely and reboot, the original rebuilds.
If I replace the file using root explorer after phone has booted and then reboot, my modified file sticks.
That is what I can't figure out. Why it sticks after OS has loaded but rebuilds if the same file is placed before reboot.
And I can't figure out where the file is being rebuilt from.
Uggggg.

Android file naming convention error. Cannot revert

Greetings.
First details:
T-Mobile Galaxy S3 (T-999)
Android version: 4.0.4
Baseband: T999UVLEM
Kernel: 3.0.8-611599-user
Build Number: IMM76D.T999UVALEM
Problem:
I attempted to utilize the HyperX camera mod (allowing 30fps, and 30Mbit superfine settings etc) which required copying the Camera.apk over to the /system/app folder, (while deleting/renaming the old samsungcamera.apk and samsungcamera.odex files).
Here's where is gets tricky: Using Root Browser Lite I navigated to that system/app folder and renamed the files to *.apk.old" to keep them in case of problems. but, APPARENTLY I accidently renamed the Odex file to what is now shown as "SamsungCamera.odex?old". Upon using the mod I now get a force close on ALL video so I wanted to revert back, but I can't rename it BACK to .odex because of the question mark in the file name... nor can I delete it, etc. I tried to mv the file through ADB but a LV command shows the filename listed on two seperate lines.. as if it sees the "?" as a line break.
It lists it like this:
SamsungCamera.apk.old
SamsungCamera.odex
old
SamsungIME.apk
etc etc
I can't rename it through ADB because i can't figure out how to get the filename syntax correct and I can't rename it in root browser because it can't handle the file period, now.
Anyone know how to fix this? ultimately either a solution to fix it... or undo it would be amazing... I know the XDA group is amazingly intelligent..... Can anyone help me?
Please?
I can't attach files, just get someone to post the file you need. I think that should work. Also, maybe try a different file explorer like ES.
Update: ES File Explorer shows the file listed as "SamsungCamera.odex old" (note the space). Attempts to rename it through ES result in "file operation failed" popup for a second., Root Browser Lite lists it as "SamsungCamera.odex?old" (note the "?") and attempts to rename or change permissions through that program result in a "superuser permission granted" popup, but nothing changes. end result: neither work.
If the file is truly just "corrupted" or named wrong somehow, then the system isn't seeing it at all, correct?!?!? So a replacement stock odex would suffice?
Hopefully? At this point I just want the stock T-Mobile Galaxy S3 camera functionality (HD video) to work, again. Even in 720p.... However that is possible, I'll do it.
PLEASE?!?!?
ANYONE? Bueller? Bueller? ??
No video on a brand new phone isn't exactly fun..
Can anyone shed some light on renaming this file after this?? or provide the GS3 "SamsungCamera.odex" file?
Problem solved (by using another copy of the stock Odex)
For posterity:
Just to follow up.. The problem was solved with help from a member on this forum who provided the "SamsungCamera.odex" file for my T-Mobile GS3 phone, as followed in this thread.
If anyone else has this problem, or simply just needs the odex file... please see this link to this thread for that attachment.
thank you, again.

How to change touch sound

I want to change the sound of the phone when I touch it (for selections). I know the directory is system/media/audio/ui, but I don't know how the selection is done from the files within the directory? Do we replace the file with our own with the same filename? Because I changed from one rom (Omega 16.2) to another (Omega 9.2) and I saved in my pc the folder /system/media/audio/ui from both roms to compare them. Although both roms have (almost) the same files in the directory, the touch sound (which is the one I want to change) is different. So how do I choose which file the system uses for each operation?
For anyone interested, I found that it was the file Effect_Tick.ogg in the above directory

Making changes to the keylayout stick

Hey, I installed a new treble gsi today and wanted to edit the keylayout on my device (S8). I went to system/usr/keylayout and edited the generic.kl file. I then saved and exited. Then I set 755 permissions for the file and rebooted. This is what I've done multiple times before with the same file explorer and it always worked.
This time, after the reboot, everything was reset to how it was before I made any edits. The permissions are not the ones that I set, but that had been there before. The generic.kl file itself doesn't contain my edits anymore as well. I can even delete all the files in system/usr/keylayout and they still show up after a reboot.
Now the question is what is overwriting my edits and/or how can I find out what's causing this behaviour? I asked the devs and other people that have installed the gsi before, but nobody seemed to know.
Me too i have the same problem

Categories

Resources