Problem in modifying address value (HEX editing) - Nexus 5 Q&A, Help & Troubleshooting

Problem in modifying address value (HEX editing)
For ex:
Lets say i have a value 2750 and it is stored in '7CDAF6A4' memory address.
I can see it in memory however when i try to modify it to lets say 4000. New value isn't reflecting in app. I am just trying to understand HEX editing.
hope i will get help here.
7CDAF6A2 (start)
00 00 BE 0A 00 00 (highlighted in RED is 7CDAF6A4)
7CDAF6A4 address has these values F:3.854E-39 D:2750 W:2750 B:190
Can some body educate me what above values are? and why I am not able to change the address value? Am i missing something here.
Apologies if my question itself is wrong. I am just trying to understand why i am not able to edit address value
Any kind of help will be appreciative.

Related

.DSM files?

Whether you are building a ROM with or without a 'kitchen' there are lots of .DSM files. Some of these are 0Bytes, others are tiny (2-3Bytes). What are they? I understand the .RGU files (registry entries), but the .DSM files I don't yet understand. I thought they were referenced by the 'option.xml' file in the \SYS folder (in most kitchens anyway?), however some are, others aren't.
Anyone have any details on this?
Thanks
Andy
ADB100 said:
Whether you are building a ROM with or without a 'kitchen' there are lots of .DSM files. Some of these are 0Bytes, others are tiny (2-3Bytes). What are they? I understand the .RGU files (registry entries), but the .DSM files I don't yet understand. I thought they were referenced by the 'option.xml' file in the \SYS folder (in most kitchens anyway?), however some are, others aren't.
Anyone have any details on this?
Thanks
Andy
Click to expand...
Click to collapse
I dont know what they are, but i do know 100%, that you delete these and you will kill your rom! These holder data that is needed in some case but in other not!!
funman said:
I dont know what they are, but i do know 100%, that you delete these and you will kill your rom! These holder data that is needed in some case but in other not!!
Click to expand...
Click to collapse
I don't want to delete them, however I am trying to resolve my L2TP/IPSec issue and I am now grasping at straws......
Andy
Good morning class, today we will be learning about dsm files...
Q:What are dsm files?
A:dsm files are thought to contain important encrypted information about file association.
eg What files are associated with the bluetooth function of your device? Well there's btdrt.dll, bthlink.dll, bthutil.dll, configmanager.dll, configmanager2.dll and so forth. We know this because we've researched the functioning of bluetooth with much detail, using such high tech methods as "What happens if i remove this file...**** my bluetooth doesnt work anymore...."
But how does your device know what files are associated with bluetooth functioning? Well in addition to the info contained in the .exe files it looks inside associated dsm files and decrypts the info thats in there.
Q: This seems confusing, is there some organised way of knowing what dsm files i have? or are they all just randomly put in my rom?
A:.dsm files are referenced by packages.sof. All of them are inside packages.sof
Q: packages.sof looks like a mess, how on earth do i read that?
A:the dsm filenames are just rearranged,
eg
9a6a05e1-cfde-4d32-9a82-85052c4d9de7.dsm appears as
E1 05 6A 9A DE CF 32 4D 9A 82 85 05 2C 4D 9D E7
So basically starting from the left side of the file name you split the first section of the dsm file name into pairs then swap the outside pair, then swap the inside pair.
eg 9a6a05e1 = 9a 6a 05 e1 = E1 05 6A 9A
Then you take the next section and swap the order of the pairs.
eg cfde = cf de = DE CF
Leave the next section alone
eg 9a82 = 9A 82
The last section isnt rearranged either. Its just split into pairs.
eg 85052c4d9de7 = 85 05 2C 4D 9D E7
So adding up all our sections we see that 9a6a05e1-cfde-4d32-9a82-85052c4d9de7.dsm is represented by E1 05 6A 9A DE CF 32 4D 9A 82 85 05 2C 4D 9D E7 inside packages.sof
Q: But how do i know what files are associated with my .dsm files?
A: A mysterious and clever man known only as bepe, gave us some tools. Some say that bepe fell from heaven, others say he was raised by a pack of wild german ladies with boobs as big as car tyres. Ask your history teacher about bepe.
Homework
Write a two-page report detailing why some dsm files (eg b50d833e-7d3f-44ac-615f-2da2c715cd93.dsm) appear in packages.sof but apparently dont reference any files....
Class dismissed, if anybody wants to ask me any questions, i'll be at the bar drinking beer.
Disclaimer: I wrote this with my best intentions, just a bit of fun. This is what i know about dsm files, it is immensely far from being 100% proven theory yet. I know the theory is flawed but it is a work in progress. If you think im wrong then feel free to correct me.
peter petrelli said:
Good morning class, today we will be learning about dsm files...
Q:What are dsm files?
A:dsm files are thought to contain important encrypted information about file association.
eg What files are associated with the bluetooth function of your device? Well there's btdrt.dll, bthlink.dll, bthutil.dll, configmanager.dll, configmanager2.dll and so forth. We know this because we've researched the functioning of bluetooth with much detail, using such high tech methods as "What happens if i remove this file...**** my bluetooth doesnt work anymore...."
But how does your device know what files are associated with bluetooth functioning? Well in addition to the info contained in the .exe files it looks inside associated dsm files and decrypts the info thats in there.
Q: This seems confusing, is there some organised way of knowing what dsm files i have? or are they all just randomly put in my rom?
A:.dsm files are referenced by packages.sof. All of them are inside packages.sof
Q: packages.sof looks like a mess, how on earth do i read that?
A:the dsm filenames are just rearranged,
eg
9a6a05e1-cfde-4d32-9a82-85052c4d9de7.dsm appears as
E1 05 6A 9A DE CF 32 4D 9A 82 85 05 2C 4D 9D E7
So basically starting from the left side of the file name you split the first section of the dsm file name into pairs then swap the outside pair, then swap the inside pair.
eg 9a6a05e1 = 9a 6a 05 e1 = E1 05 6A 9A
Then you take the next section and swap the order of the pairs.
eg cfde = cf de = DE CF
Leave the next section alone
eg 9a82 = 9A 82
The last section isnt rearranged either. Its just split into pairs.
eg 85052c4d9de7 = 85 05 2C 4D 9D E7
So adding up all our sections we see that 9a6a05e1-cfde-4d32-9a82-85052c4d9de7.dsm is represented by E1 05 6A 9A DE CF 32 4D 9A 82 85 05 2C 4D 9D E7 inside packages.sof
Q: But how do i know what files are associated with my .dsm files?
A: A mysterious and clever man known only as bepe, gave us some tools. Some say that bepe fell from heaven, others say he was raised by a pack of wild german ladies with boobs as big as car tyres. Ask your history teacher about bepe.
Homework
Write a two-page report detailing why some dsm files (eg b50d833e-7d3f-44ac-615f-2da2c715cd93.dsm) appear in packages.sof but apparently dont reference any files....
Class dismissed, if anybody wants to ask me any questions, i'll be at the bar drinking beer.
Disclaimer: I wrote this with my best intentions, just a bit of fun. This is what i know about dsm files, it is immensely far from being 100% proven theory yet. I know the theory is flawed but it is a work in progress. If you think im wrong then feel free to correct me.
Click to expand...
Click to collapse
OK, thanks for that. That is the first time I have seen that........
Another couple of questions then if you will oblige me?
1. In the various Kitchens that are out there, there is usually an 'option.xml' file in the \SYS directory that describes the various system packages that can be included in the ROM so they can be selected or excluded. The file is broken up into sections - transcriber, Enterprise, Games, Office etc. Listed in each of these sections are GUID's with a type and a GUID. Type is either 'p' or 'i'; 'p' references the .RGU file containing the registry settings. However the entries with the type 'i' don't seem to reference any GUID-named files I can see? I have applied the conversion logic you detail and the .DSM files don't tie-up with the GUID references, these may be unrelated though? For example the Autoupdate section:
Code:
<Item name="Autoupdate" group="System" checked="true">
<Guid type="p">8be73c02-3437-4c06-88c9-0a2e25bfaf2c</Guid>
<Guid type="i">c05687f7-7d0a-4738-9ecd-e043658f40cd</Guid>
</Item>
I can see the .RGU file (8be73c02-3437-4c06-88c9-0a2e25bfaf2c.rgu), however the second .DSM file is '89fc53c1-ec65-4648-9972-24afb3dcad3c.dsm', if the conversion logic you list is correct it should begin with c153fc89? Unless of course these are unrelated, however the number of GUID's listed always ties-up with the number of .DSM/.RGU files in each package (in different folders - e.g. Autoupdate, Autoupdate_Lang_0409).
2. How do you read the packages.sof? It just appears as few lines of unreadable characters in either Notepad or Wordpad?
3. Can .DSM files be transferred between ROM sources? In my quest to get L2TP/IPSec VPN working in the 5.2.1413 ROM I have been transferring the Enterprise files (ipsec.dll, ipsecsvc.dll, scard.dll & winscard.dll) from earlier ROMs (and other device ROMs) but have not had any (much?) success. Is there some logic to transferring files between ROMs?
Thanks
Andy
1. At this point in time I have no explanation as to why there are absent dsm's. I cant locate the dsm file you describe in any rom, i can only locate references to it. I can only speculate about why this is so.
2. Use a hex editor.
3. Yes you can trasfer dsm files but with mixed results. I have swapped some dsm files but when i did i moved the files associated with them as well. I had mixed success doing this.
I have exams on at the moment so I will look into this matter further towards the end of the month. Sorry my answers to your questions are so short. Good luck with your L2TP/IPSec VPN.

WormsWorldParty Button Fix

How to fix the button issue with games like worms world party on pocket pc
Install buttonfinder (freeware) on ppc and use it to get the codes for each button, when you press them one by one. (codes are like oxC1, just write down the last 2 digits.)
Install Skhexed (trial) and open it. open wwpsave.dat file from the worms directory on your pda.
the file need to be edited to make the game understand device buttons.
Find line 104 (or 109 for some devices especially hp). the line would seem like that:
---> 104 00 00 C1 C4 C4, (if line 104 seems like that: ''104 00 01 00 00 00'', then you have to search for an other line with the codes C1 etc ,and that would usually be the line 109. In that case the line 109 looks like this: 109 00 C1 C3 C3 00)
the 3 codes (Cx, x=number) would be usually in the last 3 colymns but maybe in the inner 3 ,like above. Those codes represent the buttons codes, used for fire, jump and jump2. (from left to right) and we have to change those codes with the codes we had written down from buttonfinder.
Save the changes and enjoy!
On some devices (especially HP like mine, but other brand also) that may dont work, or work for one or two buttons. in that case,the codes need to be changed with CC instead of C1, CD instead of C2 etc.
Click to expand...
Click to collapse
I have uploaded the .dat file modded for Universal,simply download it and replace the one you have on pda.
Feel free to post for other devices as well.

How to decipher the "start time" information in the registry entry of appointments

How to decipher the "start time" information in the registry entry of appointments
I have a Kaiser. If the following is Kaiser specific or not I wouldn't know.
There is a registry entry \HKCU\System\State\Apppointments\Current\Start Time
Which contains information about the start time of the current appointment (and similarly End time). I am trying to write a program where I want to read the contents of this entry. However the data here seems encoded in some manner and is not directly available in ASCII or any printable form. For example for an appointment that I know starts at 7:30 PM on Jan 30th, 2009 the data here (in hex) is 00 30 3E 62 07 7B C9 01. Does anyone know how to decipher this? I tried looking at lot of such entries for lot of appointments and tried to discover the pattern to figure out how to interpret this. Does anyone know how to do that. Is there some Windows mobile internal documentation that can throw some light on how the date/time information is encoded? Would appreciate any help

Help with UC and xml.

Hello I'm trying to use xmlprovisioning to customize some features of S2U2.
An example of one key I'm having problem with is the following:
<parm name="ShowOwnerInfo" datatype="binary" value="01"/>
I just cannot get the value of 01 to stick. When I go back into S2U2 registry setting it is still showing as value not being set (according to CeRegistryEditor).
I don't have any problems changing other datatypes, such as: integer and string.
Am I don't something wrong?
Thank you in advance for all you guy's help.
Okay, I think I found out the reason:
"Binary values are a PITA since they're encoded Base 64 (see my entry for Owner Information above). If you want to set owner information as I did in the example, then you need to convert Unicode to Base64."
from: http://forum.xda-developers.com/showthread.php?t=366337&highlight=user+customization+binary
Can someone walk me through how to do this?
Is this any good?
Unicode to Base64 Convertor
Thank you for the suggestion.
I have already tried the tool, but what it gives me does not generate the effect that I'm looking for
Maybe I need to manipulate the value some how and then put it into the encoder??
Hi,
just an idea:
Binary data are hex ... so i attached a little txt ... just rename it and import to your registry.
It show how Binary-Values work (as far as i understood them )
In HKLM you'll find a Key (Folderlike) called "fwt"
Therein are three values
1. Capital
2. SmallLetter
3. Test
1. => FWT as binary data => 46,57,54
2. => fwt as binary data => 66,77,74
3. => all signs (letters, numbers, symbols) from 00 to FF
Space is 20
CapitalLetter start with 41
SmallLetters start with 61
Just use CeRegistryEditor and you can see them clearly .
I hope this helps!

How to make skins/themes?

Well I want to make some themes for so many applications but how? I know for every application it's different. But I don't know from where to start. Should i extract files from .cab than replace and repack or create a new .cab file that interacts with the program or every program has it's own file extension and guides how to make theme. How it's done. Some of the apps I want to make theme for are Iconsoft phone ex, resco photo manager, resco contact manager and there are more but from where to start?
Well, first you would want to have some skill with photoshop!
Then as you said the easiest way to start is to look at other skins and modify them to your needs. Once you get the gist of how to that program's skins work you can create them from scratch.
If you want details for skinning a specific program or feature of windows mobile then let us know and i'm sure you will get a reply!
Moved as not theme release.
Ok guys I want to skin/rework Omnia Lite applications:
http://www.modaco.com/content/i9x0-.../b7300-omnia-lite-applications-for-i900-i910/
I've learned that a .cab program must be open with WinCe Cab manager. I've started with the Audio manager. In the program there were just two dll's. I've extracted them and opened them with Res Hacker. I've though i would se some common Script Language but no...
Just some things like:
0000AB14 E9 03 02 00 FE FF 40 9C 04 00 10 00 05 00 00 00 й•••юя@њ••••••••
0000AB24 FF FF FE FF 41 9C 04 00 18 00 E8 03 00 00 00 яяюяAњ••••и••••
There weren't any pictures in the cab probably none are used in the audio manager but I wanted to at least change colors. But I can't understand anything inside. Oh and one guy said to me that I must sign my dll's what did he mean what is that and how it is done. Thanks for the help!

Categories

Resources