Method to modify windows dir files to add custom accent color to third party apps - Windows Phone 7 Development and Hacking

All - I have seen different brief posts on how to do this but no clear method has been shown and none of the other methods worked for my HTC (there is a method for Samsung using an XAP but not phones in general). I have determined which files to modify in the Windows directory and what terms need changing. This method modifies your ROM files so do not do this if you are not comfortable (and I am not responsible for errors, crashes, bricks, etc - do this at your own risk).
You need WPDM/TouchXperience from Schaps
You need Heathcliffs WP7 Root Tools 0.9
You need to elevate TouchXperience priveleges in Root Tools
You need to know how to use these programs (I am not going to explain and assume the person following this knows)
You need to know which color accent number you are doing (it is numbered from 0-10 in the registry) and you need the HEX code for your color (FFYYYYYY)
MAKE A BACKUP BEFORE STARTING
1) From WPDM have your phone plugged in and connected
2) Go to Explore Files and Folders and navigate to the Windows folder
3) Locate four files that look like
00XX_ThemeResources.xaml
00XX_ThemeResources.xamlbin
01XX_ThemeResources.xaml
01XX_ThemeResources.xamlbin
where XX is your accent color number (00,01,...,10 - one of these)
4) Using WPDM, transfer these from phone to pc (choose some location you can work from)
5) Now go to the location you put these files and you will be editing them (using a text editor, so add .txt to the end to get them to open or edit them however if you have tools that can)
6) For the .xaml files, scroll down a ways and you will come to this line;
<!-- (color) -->
<Color x:Key="PhoneAccentColor">#FFYYYYYY</Color>
here (color) will have the name of the color you are working with and #FFYYYYYY will be the hex code of the original theme color. Change the YYYYYY to your custom color code (keep the #FF, just change the YYYYYY)
NOTE: Up to this point this method is similar to others mentioned in the forum; fine. But this did not work for me.
7) Save this file and close it. Rename back to original if you added the .txt for editing
9) Now, open the .xamlbin file. It will look like a bunch of greek/garbage; don't panic.
10) Scroll down and you will see a bunch of text spread out that is readable. You need to read through this and find the following sting of text buried in it;
P h o n e A c c e n t C o l o r # F F Y Y Y Y Y
you will see the Y Y Y Y Y Y is the original theme color. Change these Y's to your custom color hex code but make sure to keep all the spaces present (just change each one carefully).
11) Save the file and close. Rename to original
12) Do this for both .xaml and .xamlbin files (so you will end up modifying 4 files total)
13) Now go back to WPDM (if you are still connected) or get back into it with your phone connected and get back to the Windows directory
14) This time we are going to transfer files from PC to Phone. Transfer each of these modified files back into your phone (you have to do one at a time).
15) Disconnect from WPDM, then manually change your phone theme to a different one and then back. I also powered off and on my phone.
Wa La - custom accent colors show up in third party apps!

Note: those gaps aren't spaces. They're NULL bytes (it's Unicode text, but interpreted as ASCII). Just a heads-up; if you delete one by accident, use Undo. If you can't Undo far enough, either re-download the file or use a hex-editor to fix it.

When I've got time I'll work on a PC app to do these things. Could be a good thing for our Chefs

Could this fix the issue with custom accent colors not displaying in Kik messenger?

GoodDayToDie said:
Note: those gaps aren't spaces. They're NULL bytes (it's Unicode text, but interpreted as ASCII). Just a heads-up; if you delete one by accident, use Undo. If you can't Undo far enough, either re-download the file or use a hex-editor to fix it.
Click to expand...
Click to collapse
Thanks - yes, I know they were there for a reason but didn't know what and it is important not to delete them!

64GUNSHIP said:
Could this fix the issue with custom accent colors not displaying in Kik messenger?
Click to expand...
Click to collapse
Yes, I think so. I did not have success with just the .xaml edit but the .xamlbin edit did the trick! My custom accents are showing up in all apps now where it didn't before (and Kik falls into the category of third party apps).

Really helpful stuff. Now my 3rd party apps show the correct custom color (tiles included). Tnanks!

I wrote something like this one before but my poor English make it confused and not interested.

Related

How to Skin the Phone Security Pin input Pad

I have installed a new Phone Skin on mw HTC 3300 ( Zphone v1.6 ) but the pad used for inserting the Sim Card Pin security code is still GREEN !!!!!
How can i fix it ( i would like black buttons !! ) ?
I think that is quite dificult as in windows directory the files are blue so it should be blue, it looks like it´s somewhere in the rom.
I couldn´t find with resco explorer.. :-(
Where to start
Take a look at the file \Windows\phcanOverbmp.dll with a resource editor like Resource Hacker or PE Explorer. You should find the green bitmaps for the buttons in normal and pressed state for each portrait and landscape mode.
(If you cannot find them in that file check where this registry entry points to:
HKLM\Security\ResOver\Bitmaps\BaseDll = phcanoverbmp.dll)
While you can replace the bitmaps with a resource editor there is one problem: in WM5 this file needs to be digitally signed. When you restart the device (or the phone application cprog.exe) with the modified and unsigned file, the phone will most likely show the default blue windows mobile buttons, because it refuses to load unsigned files.
Look at the file properties when you have it on your desktop PC. It has a digital signature which will become invalid after you change the bitmaps. So you need
(1) to sign the file with a certificate that you own (or was created by yourself) AND
(2) you need to put that certificate onto your device.
I don't know how much experience you have with doing that but a good start could be to search for SdkCerts.cab (this file is part of the WM5 SDK) and how others managed to sign their files using these certificates.
Good luck!

sym.txt file (for symbol key)

Where is it located? Every search I've found says it's in \windows directory, but it isn't there. Has it been changed with the latest T-mobile software?
I'm running WM6 (latest from T-mobile)
I wanted to move the Spanish ñ to the top of the list so it requires fewer keypresses to enter.
Any advice would be hugely appreciated.
perhaps, I'm asking the wrong question...
Is there a way to change/add/reorder the "special symbols" available in the symbols menu (when you press the sym/camera key in text mode)?
As of now I've been unable to locate the file that contains those characters. Several google's on the subject have directed me to look for a file named "sym.txt" in the windows directory however it appears to not exist in the T-mobile wm6 ROM. I assume the file (perhaps renamed or in a different file format or embedded in another font file) must exist somewhere on the device however, I've searched all over every directory and dragged everything that looked remotely like it could be it to the desktop to view with notepad.
No dice. It's driving me nuts. I'm hoping someone in here knows just what file the symbol key draws it's data from.
Please help
Well, I gave up
But as necessity is the mother of invention I figured out a much better and easier solution (for me anyway).
I just edited the "eT9.Excalibur.0409.kmap.txt" file so that instead of an "&" when I hold down the "n" key (or alt-n) I get an "ñ".
{N N ñ ñ 0x18} instead of {N N & & 0x18}
The cool thing is it gives a capital "Ñ" in cap-lock mode too if I access the alt text
I like it. Now that I know how easy it is to personalize the keys I might just make another adjustment or 2
By the way
Could that tiny modification cause problems I'm unaware of? Hope not.

[REQ] Wake On Lan

Hi Guys & Gals,
Quick question.....
Has anybody come across a Wake On Lan app for WM6. I have a small home network that I start up from a central PC using Wake On LAN function in the system BIOS. I would like to be able to start my PC's from the Blackstone over my WLAN.
Everything within the LAN & WLAN is running reserved DHCP from the router side so all IP's are constant including the Blackstone.
Cheers for any replies.........
Gilgamesh.......
I don't know if any solution exists but I've read a tutorial (in french sorry) on how to make a wake on line application for wm
http://blogs.msdn.com/pierreca/archive/2009/03/19/wake-on-lan-depuis-votre-t-l-phone.aspx
Hope that could help you
Try this..
jpl69 cheers.........The app works like a charm but is a little basic. Needs the full MAC to be entered manually each time.
What would be really nice is some way of associating the MAC to a short meaningful name that could then be listed so it could just be selected from a list rather than enter the full MAC each time. In this way multiple PC's coud be listed.
While we're at it would also be nice to have a standby button as well so PC's within the LAN could be started and shut down form the app.
I've never written an app before and would either like a few pointers to see if I could do it or see if anyone out there would consider building on the app already posted.
Any suggestion welcome.......
Besides developing an app to that (no time) i could sugest make several shortcuts using resco and parsing the mac as parameter. At least you only had to make it once.
Thanks jpl69 for your continued replies...much appreciated.
I have seen Resco but not realy sure which component to download to edit the exe. I have used PEG (parsing) in other apps at work but just need something to get me started on WM6. I could the replicate the exe per MAC and create a single file or each PC
Might be worth looking at vxUtil: http://www.cambridgevx.com.
This has Wake-On-LAN (among other things), and I think it remembers previously entered values. You can't give things memorable names but it might help.
Gilgamesh1066 said:
Thanks jpl69 for your continued replies...much appreciated.
I have seen Resco but not realy sure which component to download to edit the exe. I have used PEG (parsing) in other apps at work but just need something to get me started on WM6. I could the replicate the exe per MAC and create a single file or each PC
Click to expand...
Click to collapse
i think he means, like, create new shortcut with parameters. Just for example the same as on pc creating a shortcut to c:\quake\quake.exe and use the string "c:\quake\quake.exe" +bind mouse1 shoot +set mode opengl blablabla
Again thanks for the continued replies.....
Downloaded vxUtil and had a play and it does have a working WOL option but again it's messy and not really the simple solution I was looking for. It does have some other features (ping/sweep, tracert & DNS lookup) but I don't really have a use for these.
Still really after a single icon to start each PC as per the shortcut suggestion above.
All suggestions still welcome and appreciated.
I will just try to clarify what was the idea of jpl69.
Please read the README file included in the attached archive (posted by jpl69).
It says:
"Command Line:
===============
Please use as following:
WakeOnLan.exe [MACAddress]
MacAddress can be either 01E4523AEE22 or 01:E4:52:3A:EE:22 "
Now with Resco Explorer (or with Total Commander, which is freeware) one can make several different shortcuts to WakeOnLan.exe, each ending with the specific MAC.
In Total Commander, after creating the shortcut, one must select it, choose "properties", then "shortcut" tab, then manually add the MAC at the end of the "target" line.
Copy the ready shortcut several times, name the new copies whatever you want and place those shortcuts in a folder. Dont forget to change the MAC for each machine.
Hope it helps.
Now I get it......Sorry for the slow uptake but been a busy boy and head has been fried by other things. Will have a play tomorrow and post back results.
Many thanks..........
I dont know if you still looking to do this but I got this working & figured I would reply here for future reference.
First i have a linksys DD-WRT router, so I followed these steps:
http://www.dd-wrt.com/wiki/index.php/WOL
Then I downloaded the attached cab & its one click & works great!
RichTJ99 said:
I dont know if you still looking to do this but I got this working & figured I would reply here for future reference.
First i have a linksys DD-WRT router, so I followed these steps:
http://www.dd-wrt.com/wiki/index.php/WOL
Then I downloaded the attached cab & its one click & works great!
Click to expand...
Click to collapse
I have been using the WakeOnPocketPC from Depicus happilly with WM 6.1. Now, after upgrade to WM 6.5 (Dutty ROM Leo Holy Grail), the cab fails to install ("...installation was unsuccessful.")
Any other program with capability to send WOL packets to a particular IP address (and not just broadcast over LAN)?
Although this thread is about one year old, before I developed my WoL everywhere program, I searched for programs like mine here and came to this thread... None of the programs I've found fit my requirements, so I made a program myself...
So I hope your search is over and you've found what you need with my little WoL everywhere... you can download it here:
http://forum.xda-developers.com/showthread.php?t=695524
Greetings @ all!
LichtiMC
Create a shortcut to WakeOnLan with a MAC address
Hi,
I'm pasting to this old thread since I found the WakeOnLan tool here and want to share my tips with others.
If you want to create a shortcut so that you have a separate executable (say in your Start Menu) then follow these steps:
Install WakeOnLan from the above link. I put it in "\Program Files\WakeOnLan\WakeOnLan.exe"
Browse to this location with explorer on your PPC. Select the WakeOnLan executable and click "copy"
Browse to where you want the shortcut to appear:
"\Windows\Start Menu" will show in your start menu
"\Windows\Startup" will be run when you reset or power cycle the device
"\Windows\Programs" will apear in your Start Menu > Programs folder
"\Windows\Settings" will appear in your system settings
Select on some empty space (not an existing file) in your chosen folder and choose "Paste shortcut"
Use a text editor on Windows / Linux to edit this new file, or one on your device (I didn't have any that would open on my device so I copied it to Linux, edited in emacs, then copied it back)
Edit the line that looks like:
Code:
40#"\Program Files\WakeOnLan\WakeOnLan.exe"
essentially this is a character count, a "#", the location the shortcut points to, and arguments. Add your MAC address like this and take note of the quotes:
Code:
58#"\Program Files\WakeOnLan\WakeOnLan.exe" AA:BB:CC:DD:EE:FF
count the characters of the shortcut, mac address, and space, then add one. This is your new number (in my case, 58).
An easy way to do this is to use "wc" on Linux:
Code:
echo "\Program Files\WakeOnLan\WakeOnLan.exe AA:BB:CC:DD:EE:FF" | wc -c
57
(remember to add 1!)
Now you can repeat the process and paste as many different WoL shortcuts as you like! I've made just one and called it "WoL MythTv" to wake up my media centre at home. Neat
I'll post my sources in the next post since new users aren't allowed to post links...

Owner's info

Why can't we insert the owner's info in the newest roms (23025-23028)?
Remind that some software can´t be registered without that info...
I don't have one of these versions flashed right now, but check your registry under :
HKEY_CURRENT_USER\ControlPanel\Owner
ricardo1976 said:
Why can't we insert the owner's info in the newest roms (23025-23028)?
Remind that some software can´t be registered without that info...
Click to expand...
Click to collapse
One other thing you could do is start Notepad on you desktop computer and put the following in there (this works on 6.1, and "hopefully" might work on 6.5 but I can't verify it as never tried)
20#ctlpnl cplmain.cpl,2
Save the file, rename it to have a .lnk extension to the end of it (i.e. myfile.txt now becomes myfile.lnk). Copy this to your device (c:\windows\Start Menu\Programs) and try and open it off your Start menu. I would recommend if it's something you'll use often (as a workround) because the Owner Icon under Settings, Personal is gone (which is bizarre!) use Restart (credit to Showaco) to give it a better icon (search for Restart in forums).
You can do it the registry way but a couple of the fields might give you a problem as they're binary fields although it might be fine!
I did a search and found a thread on it here : http://forum.xda-developers.com/showthread.php?p=1646851#post1646851

VMware- remove orange mouse circle?

Hi folks,
I have installed VMware on the Fire TV for work. Everything works fine except the mouse cursor is surrounded by an orange circle.
If there anything to remove the orange circle?
Thanks in advance for any suggestions.
I also want to switch to the real mouse cursor instead of the feature-lacking circle.
Flash games don't react properly with the orange circel,and even cause doubled clicks which reverts the tickboxes in Happy Wheels.
There is supposed to be an Android setting that changes the mouse type,but the settings apk either exits when attempting to reach it,or the option is missing in the 4.0 settings.
Can somebody please find a 4.2.2 version of settings apk?
BTW,how well and smooth does VMware run?
I installed VMware 3.0.0 version, which works smoothly in my case (1920*1080, windows 7, fire TV connected via Ethernet).
retroben said:
I also want to switch to the real mouse cursor instead of the feature-lacking circle.
Flash games don't react properly with the orange circel,and even cause doubled clicks which reverts the tickboxes in Happy Wheels.
There is supposed to be an Android setting that changes the mouse type,but the settings apk either exits when attempting to reach it,or the option is missing in the 4.0 settings.
Can somebody please find a 4.2.2 version of settings apk?
BTW,how well and smooth does VMware run?
Click to expand...
Click to collapse
if you downgrade to the first firmware the mouse was an arrow. you will then have to block updates.
Where can i get vmware? and how can install windows via vmware??
Where can i get vmware? and how can install windows via vmware??
I would love it to use windows!
Somebody please find a fix for this.
I even tried an actual mouse but still get doubled clicking on a single click!
There has to be a setting that can be modified that brings back the much better mouse pointer.
I am currently writhing in rage because of this issue because I can't properly run Flash games with this annoying circle.
I need the mouse pointer so I can tell where I am actually clicking because the circle is not accurate at all for the approximate clicking position.
It is located in the root folder of.. root/ system/ framework/ framework-res.apk I have changed other android device mouse icons before doing ROMs. The orange circle icon is in the framework system folder. The file is an apk... framework-res.apk It is buried in a folder called framework/ res/ drawable-hdpi/ btn_circle_disable_focused.png
With root **** warning could brick device**** I'm not responsible if you f-up...
BACKUP your original framework-res.apk !!!! Proceed at your own risk.
You could try to create your own mouse icon and then call it... btn_circle_disable_focused.png in replace of the original png. Then repack the framework-res.apk and copy it back over into the correct location root/ system/ framework/ framework-res.apk I would warn you doing this could f** up the framework system and might brick your device. This system file might be signed, so repacking the apk might need to be resigned. Btw their are other folders in the framework-res.apk that also have the same file icon btn_circle_disable_focused.png So who is willing to try? Might work might or might not but its a risk either way. With a locked boot loader I'm not testing my unit.
Here is the file I found btn_circle_disable_focused.png... look fimiliar, orange circle mouse pointer thing.. yuck.
And here is a real mouse png I file found in the same folder.
YES! Now we are one step closer to a real mouse!
We just need somebody to make everything stable and easier to replace,and to make it actually function like a normal mouse.

Categories

Resources