Remapping keys - Surround Windows Phone 7 Development

Basically my power button is broken so I need to remap it to a volume key.
Finally there seems to be a way do that using these instructions
http://forum.xda-developers.com/showthread.php?t=1118562
but I haven't messed with these ROMs before so I need some help.
Specifically, I'm confused about this part of the instructions:
"Extract the part04.bin from Data.zip of your HD2 WP7rom and place it in this folder (ignore errors)"
The rom is in an exe form and when I view the contents using an archive program there are no part__.bin files
After extracting the biggest file in the ROM I managed to use RIE to find and save the keybdpdd_htc.dll file and open the different files within but they don't look anything like the example (I'm using simple text editors to view it could that be the problem?)
Thanks in advance

UPDATE:
So I guess I need to know how to edit keybdpdd_htc.dll and shove it back into a ROM... any ideas??

Related

Button Remapping software or reg hacks????

Anybody know how to remap the hardware buttons on the Qtek 8500 with either software or registry hacks??? Want to replace the Voice Tag ESPECIALLY - that just drives me nuts!!
AND, I'd like to replace the music player buttons on the front to answer with speaker phone if possible.
I'd be interested in finding out the information for changing the voice tags buttons also.
4 Files
This is to remap the two hardware buttons on each side of the screen...
These files exist in the \Windows directory. Create a file with these exact names, and have the contents of the file be a shortcut command.
SHORT_POC
LONG_POC
SHORT_CAMERA
LONG_CAMERA
Make sure that you unlock all the security settings in the phone. I don't remember the exact keys, but I know its a registry hack to allow modifying system files. You'll get an error about the file being read only if you don't do this.
FWIW, I replaced three of mine
LONG_CAMERA
42#:MSSYNCAPP?:syncapp = ActiveSync
SHORT_POC
19#\Windows\iexplore.exe = Internet Explorer
LONG_POC
19#:MSINBOX?:mailapp = Inbox
I left the camera button in place.
Perfect! Thanks for the information!
FYI, for those of you having trouble creating these shortcuts, this is how I do it. Create a new text file (using Notepad) with just the one line link you want (e.g. 19#\Windows\iexplore.exe). Save the file as SHORT_POC.LNK (or SHORT_CAMERA.LNK or LONG_POC.LNK or LONG_CAMERA.LNK) and then move it into the \Windows folder of your mobile phone. Once you rename the file to .lnk I don't think you'll be able to edit it anymore. And also, in order to make sure the file ends up as SHORT_POC.LNK and not SHORT_POC.LNK.txt, you must have "Hide extensions of known file types" unchecked in Folder View options (in Windows Explorer).
I know this post was a little unclear, so please don't hesitate to ask questions if you are still unsure how to do it.
OK, some Confusion here. I am using a Qtek 8500 with Qtek rom. Only the Short_camera shortcut is there. I have remapped that successfully. Where are the other shortcuts, or are they only present for a different rom? Are we talking about the same phone here ?
Just tried on my Qtek 8500, and although Short_POC.lnk is not in the Windows directory, if you create the shortcut it works a treat. Now this solved how do we get our bluetooth headsets to launch something else other than crappy Voice Dial? - Sadly changing Short_POC.lnk doesn't change this (was hoping they were related)
Thanks!
I got the Short_POC.lnk remap to work, but it only works when the clamshell is open. Is there any way to remap any of the external buttons so that it works when the phone is closed?
may be a stupid question, but Short_POC.lnk points to the voice recorder button, correct?
UABigBird said:
but I know its a registry hack to allow modifying system files. You'll get an error about the file being read only if you don't do this.
Click to expand...
Click to collapse
Can u tell me how to do this ?
you can use total commander to modify system files.
singhnx said:
you can use total commander to modify system files.
Click to expand...
Click to collapse
Dat i know but wat i wanna know is to which reg setting i shld make the changes.
Help with MS Voice Command
Creating a "SHORT_POC.LNK" file to work a program within the windows dir is fine but, I'm having a problem scripting for MS Voice Command.
I've tried using it's exe within Program Files and even created a shortcut inside Windows dir. Could someone please end my confusion?
TIA
Bringing this thread back from the dead,
I would like to ask a question:
How exactly should I edit the LNK file in order for the voice dial button
to launch Bluetooth settings?
I mean, I know HOW to edit etc, but what the command should be?
Thank you in advance!

Detailed-How to change Start text

UPDATE 12-21-08
There is some talk that you need to also install the Sdcerts cab before this process will work. Freezing the phone sucks so i would do this first. I will add it to page one.
After bricking my phone three times-I finally got it right. I have a HTC Touch Pro-nobody really explained it to me like I was a two year old-so I decided to break it down. You have to be careful or you will freeze up the phone and then be forced to hard reset. That sucks. So this worked for me. You should extract your own shellres.dll.0409.mui using rom extractor. This is not difficult if you follow these directions. All of the programs are free and I am making a zip to include them all. I included my own shellres.dll.0409.mui. The 0409 refers to the language. It is the code for English.
1. I installed the cab -icon demarrer. It makes a couple registry changes that help the process.
2. Then I used a the rom extractor to get my shellres.dll.0409.mui and copied it to the storage card you have to enter path:\windows\shellres.dll.0409.mui and save to \storage card\shellres.dll.0409.mui To install the Rom extractor You just put the Rom extractor into active sync
3. Then drag the file to the desktop of your computer use unsigner-just drag the file over the unsigner and it is unsigned
4. Then drag the same extracted file over reshacker and navigate the file to change string 321 in the shellres.dll.0409.mui to whatever you want it to say
5. Then open msigner and navigate to your saved file shellres.dll.0409.mui to resign the file
6. Then go to settings/today/items and uncheck to turn off touch flo and then copy the new file from your desktop to the storage card.
7. Install Total Commander on your device-you do this by opening it on your home computer. Then open total commander on your device and navigate to the new file shellres.dll.0409.mui-in the storage card. Then press the stylus on the shellres.dll.0409.mui file and save to clipboard
8. Then use Total Commander to search windows directory for the shellres.dll.0409.mui that is still in the phone. (If possible-rename the file shellres.dll.0409.mui.bak or if not possible press the stylus on top of the shellres.dll.0409.mui that is in the phone and selected for the drop down menue that appears-Paste Here.
9. Then soft reset. Here it is. I included everything you need in the Zip file! Here is where I started-but it is vague-great start icons in the thread though. http://forum.xda-developers.com/showthread.php?t=426264
The HTC start icon is on the zip entitled shellres.192.dll
Just say thank you if any of this helps you
language codes
Your can use the file I included in the zip if you do not want to extract. just change the numbers
shellres.dll.XXXX.mui in place of the XXXX It is 0409 for english-if you want another you can use one of these codes. If you don't have an htc touch pro the file may be named shellres.dll.96.XXXX.mui
0404 CHT Chinese Traditional
0804 CHS Chinese Simplified
0405 CSY Czech
0406 DAN Danish
0413 NLD Dutch
0409 USA English
0407 GER German
0408 ELL Greek
040b FIN Finnish
040c FRA French
040e HUN Hungarian
0410 ITA Italian
0411 JPN Japanese
0412 KOR Korean
0414 NOR Norwegian
0415 PLK Polish
0416 PTB Portuguese Brazil
0816 PTG Portuguese Portugal
0418 ROM Romanian
0419 RUS Russian
041b SKY Slovak
0c0a ESN Spanish
041d SVE Swedish
041f TRK Turkish
You can also change the Start Icon which is really cool. In my touch pro it is in file shellres.192.dll under icon group 4609-
1. Download shellres.192.dll to your storage card. Use total commander to search the windows folder for shellres.192.dll
2. Press the stylus on the file and select copy to clipboard
navigate with total commander to the storage card and press the stylus there and select "paste here"
3. Use unsigner to unsign the file
4. use reshacker to open the file and navigate to "Icon Group" 4609. You will see your icon in the program.
5. Select menu "Action" and replace. Navigate to the icon you want. Select it. Save the file.
6. Sign the file with the Msigner
7. Place the file in the Storage card
8. Use Total Commander to locate shellres.192.dll and rename it shellres.192.dll.bak
9. Use total commander to find your new file in the storage card, and move it to the windows folder of your device.
10. Restart with a soft reset adn enjoy your new icon.
Useful thread where I learned a lot http://forum.xda-developers.com/showthread.php?t=426264 You can get ready made .ico files here
Can you explain one point ... ?
I tried to extract the file shellres.dll.040C.mui (french WM6.0) directly into \windows, and before modifying the file with my computer, I just re-boot the device with that change (so, just a ROM file extraction but without any modification in the file) ... and then, the device is frozen on the Windows welcome page.
Can you explain that ?
louis09 said:
I tried to extract the file shellres.dll.040C.mui (french WM6.0) directly into \windows, and before modifying the file with my computer, I just re-boot the device with that change (so, just a ROM file extraction but without any modification in the file) ... and then, the device is frozen on the Windows welcome page.
Can you explain that ?
Click to expand...
Click to collapse
Did you follow steps exactly? You have to be careful. You can see from my screen shots that it works. I change my text every day as i feel. Did you install the icon demarrer cab?
you should also be able to navigate to the file shellres.dll.040C.mui (with Total Commander) and press the stylus on it and select copy to clip board. Then navigate to the storage card and press the stylus on a blank area and select copy here. The handheld needs the dll to work-so it is not removed from the device it is just copied.
Also make sure that your computers folders are set to view hidden files. It took me a while to get this right-and there is no step by step tutorial but the one i made here-from what I found.
Ok, but the result is the file shellres.dll.xxxx.mui in \windows
Whatever the handling, from the ROM to the SD card, to the computer, ..., the clipboard, ..., the file is finally copied in \windows
So, how can we explain that a direct extraction to \windows cannot work ?
Which operation in your process can avoid the problem ?
I don't want to modify the icon, just the text...
.. and I'm sure that works on your device, I have no doubt about that. I just would like to understand.
I also use Total Commander and it displays the hidden files.
What is the icon demarrer (french word ?) cab ? And what is the unsigner/signer method ?
louis09 said:
.. and I'm sure that works on your device, I have no doubt about that. I just would like to understand.
I also use Total Commander and it displays the hidden files.
What is the icon demarrer (french word ?) cab ? And what is the unsigner/signer method ?
Click to expand...
Click to collapse
The icon demmarer is a cab made by a developer. i included it, and all the necessary programs in the zip file. The cab just changes a few resgistry settings to allow this. (i believe) The file once copied to your computer can be manipulated and string value 321 changed-then compile script, save and sign. all included in the zip.
I want to know that you are able to do it, as I am.
louis09 said:
.. and I'm sure that works on your device, I have no doubt about that. I just would like to understand.
I also use Total Commander and it displays the hidden files.
What is the icon demarrer (french word ?) cab ? And what is the unsigner/signer method ?
Click to expand...
Click to collapse
I am having the same problem as Lewis and my device locked up twice at the windows login screen. You cannot modify the file with commander no matter what you do with your steps. There has to be something you left out. I am very good at what I do and am very far from being an ameteur
Chosen4Goodness said:
I am having the same problem as Lewis and my device locked up twice at the windows login screen. You cannot modify the file with commander no matter what you do with your steps. There has to be something you left out. I am very good at what I do and am very far from being an ameteur
Click to expand...
Click to collapse
Total Commander is only used to move the file-not modify it. Follow the steps exactly. Rename the old mui to mui.back.
and install the icon demarrer cab fisrt. Turn off touch flo before. I have a Sprint HTC Touch pro with a stock rom.
The cab demarrer may be strongly needed, or/and the unsigner/signer software ?
It should be useful to know what the cab and signer/unsigner do.
Which key in the registry is concerned ?
Is ResHacker needed ? Is ROM extractor not enough ?
And mainly, why does only an extraction to \windows freeze the device after a reboot ?
I'm trying to contact the ROM extractor developer VK (a.k.a. THEVK, GreateVK)...
louis09 said:
It should be useful to know what the cab and signer/unsigner do.
Which key in the registry is concerned ?
Is ResHacker needed ? Is ROM extractor not enough ?
And mainly, why does only an extraction to \windows freeze the device after a reboot ?
I'm trying to contact the ROM extractor developer VK (a.k.a. THEVK, GreateVK)...
Click to expand...
Click to collapse
You have to read this thread. http://forum.xda-developers.com/showthread.php?t=426264 Someone else made the icon dem cab. All I know is I read every page of every thread about this tweak-none was a road map-I just knew it could be done so I kept trying til I got it. I had to mod my start text from trying and reading. I finally got it with this method. the extraction alone will not freeze the phone-since the file is not removed from the windows registry. It is in fact not possible to remove shellres.dll.xxxx.mui since it is the entire shell of the phone.
Read every thread about start text
Ok, but the extraction will freeze the device if we do only this
So, this is the reason why the icon cab and/or one of the other operations avoid that.
Probably like Chosen4Goodness, I confirm that, if I extract the file and re-boot without any other change, the device is frozen...
freeze
Anxious to hear that someone other than me was able to follow these directions step by step and not freeze their device.
Don't worry, I'm probably not soo good !
or my device, or the WM version is too sensitive !
And it seems that many people succeeded ! There are a lot of evidences on this site.
louis09 said:
or my device, or the WM version is too sensitive !
And it seems that many people succeeded ! There are a lot of evidences on this site.
Click to expand...
Click to collapse
Be brave. Give it a go Louis!
louis09 said:
or my device, or the WM version is too sensitive !
And it seems that many people succeeded ! There are a lot of evidences on this site.
Click to expand...
Click to collapse
louis09 said:
I read in one thread how to change the word "Start". I tried to do it and I got a frozen device after reboot. So, a hard reset was needed. Another guy in this site got the same problem this week.
In fact, if I only extract shellres.dll.040C.mui (WM6.0 french version) to \windows\shellres.dll.040C.mui without any other change, I get the same problem.
So, maybe you can explain in more details how to do. Where to save the extracted file and to install at the end ? Is another operation needed ?
louis09
Click to expand...
Click to collapse
I couldn't send you a pm because you have your profile set to not accept incoming pm. Anyways, these are the steps that I follow to do this:
1. Extract shellres.dll.XXXX.mui via ROM Extractor;
2. Open it with ResHacker;
3. Look for String Table -> 321 -> Line 5120 and change this to whatever you want;
4. Hit "Compile"
5. Save the file. At this point, you will have two shellres files - one of them will have "original" in the file name. Just save that one in case you want to keep it.
6. Transfer to device via ActiveSync (USB, I haven't tried any other connection such as BT, Wifi, etc) into \Windows
7. Soft Reset your device.
How are you doing the transfer back to the device? It might be that the file is not transferring completely to the device, or getting corrupted in the process. TotalCommander, and Resco have not worked for me for this purpose. Give it a shot and see if it works.
Good luck and let me know how it turns out.
Ok, I have modified my profile.
I need a precise information about the location "Save to" in ROM extractor.
Because doing only that, to \windows\shellres.dll.040C.mui (the same file location than the ROM), is enough to freeze the device after a reboot !
So, why ?
I tried only that "simple" operation because I tried the 1st time the complete one (modify the file and transfer to the device) and I got the same problem. I believed that was due to the change in the file but the extraction is enough.
Maybe we have not to extract in \windows ?
louis09 said:
Ok, I have modified my profile.
I need a precise information about the location "Save to" in ROM extractor.
Because doing only that, to \windows\shellres.dll.040C.mui (the same file location than the ROM), is enough to freeze the device after a reboot !
So, why ?
I tried only that "simple" operation because I tried the 1st time the complete one (modify the file and transfer to the device) and I got the same problem. I believed that was due to the change in the file but the extraction is enough.
Maybe we have not to extract in \windows ?
Click to expand...
Click to collapse
My quesstion is why the reboot after extraction to save to \storage card\shellres.dll.0409.mui?
Also I think the last post above yours neglected to unsign and resign the file. I have fund that improper signing causes a freeze.
I know it is damn tricky since I froze mine three times, prior to doing it this way. Let me know how it goes.
I have no storage card. I reboot because I often close the device.
Could you explain the sign/unsign method ? That seems important as you say !
Which tool we have to use ?
louis09 said:
I have no storage card. I reboot because I often close the device.
Could you explain the sign/unsign method ? That seems important as you say !
Which tool we have to use ?
Click to expand...
Click to collapse
The programs are in the zip. But I think you need a storage card. That way the Mui file is extracted to something other than the phone itself. Get a storage card and then try it. They are not expensive.
Once extracted to storage drag the file on top of the unsign icon-it will flash and that is it. It is unsigned. Then open reshack and change out the word "Start"
compile script
save
Now drag the file over the msigner.
You will have to tell the program where to find the file through the interface of the msigner program.
It will sign the file and then you will have two shellres files. One will be shellres.dll.xxxx_original.mui or something like that. That is the old file.
place the new signed file in your storage card.
then follow the rest of the directions

[Q] Question...please help, Ive gone blind!!

OK, so I installed some games to my SD card. I just updated my LEO Rom to v13. Now I dont know how to get the icons for them back on the device and show on the start page. Im sure there is someone who knows how to to do this. Please help!!! I have looked through this forum so long I have gone blind. Thanks.........
browse to the folder for the game, one file will probably be an .exe file, press and hold, copy, browse to the windows/start menu/programs folder and choose menu edit paste shortcut
Some bits of software might require reinstalling on a new rom, but they are few and far between.
samsamuel said:
browse to the folder for the game, one file will probably be an .exe file, press and hold, copy, browse to the windows/start menu/programs folder and choose menu edit paste shortcut
Some bits of software might require reinstalling on a new rom, but they are few and far between.
Click to expand...
Click to collapse
Thanks. Also, is there any way to create a new link in the start menu to the .exe on the storage card?

[Q] Specific Factory ROM modification

Hello,
I need to find a way to edit factory firmware:
1. insert one or two app to be preinstalled, and placed on home screen
2. change default ringtone
I tryed android kitchen, repack system.img file (which is one of many parts files of firmware i have to edit, like boot.img etc) then i edited just one thing, e.g background or place one app. And then I get stuck, i cant find way to restore system.img. Kitchen makes update.zip file..which cant be installed becouse of signature.. So my main problem is how to edit system.img? (unpacked or packed)
Basicly every advice is how to repack, open *.img file, non is to repack.
I have PAP4500DUO and A538 Lenovo. And Windows envirement. I am a rookie too.. :/

Copy Files Using Android Studio

Is it possible to make an app that when you tap the button on the screen it copy's "/sdcard/pic1.png" to "/sdcard/pictures/pic1.png (That is an example, not sure if that's the right directory format). I want to copy "fileA.txt" to "/text/fileA.txt" but I can not find out how. I have tried many ways. I believe I have all the permissions added. I'm just don't know how to copy the file.

Categories

Resources