This is for those of us who preferred the stronger haptic feedback strength of the capacitive buttons that we had from 2.3.5 (and also for those who haven't taken the ICS plunge). The basic steps of this could probably also be used for other changes to the framework-res.apk. These are the steps I used and are by no means the best way to do this (in fact, this probably guarantees it's not the best way ).
As always, you should be careful when performing any modifications to things like this. I STRONGLY suggest making a nandroid backup and an extra copy of your framework-res.apk in case you want to switch back. Also, you should have cwm on boot enabled so you can always get back to a working condition if you end up in a boot loop. This worked perfectly for me on my first try, but that doesn't mean much . You do all things at your own risk!
You will need:
APK Manager
7zip
Notepad++
Not on ICS!
1. Extract (copy) your framework-res.apk found in \system\framework\
2. Put copy in the "place-apk-here-for-modding" in APK Manager (you may want to re-name the file so you can remember what version/ROM you took it from)
3. Open the APK Manager script and select the apk you want to change
4. I set the compression to 0 and heap size to 512mb (I saw several threads that suggested these settings)
5. De-compile the apk
6. Find the decompiled apk in the "Projects" folder and open it up
7. Navigate to \res\values\arrays.xml and open with Notepad++
8. Find:
Code:
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>14</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>12</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>0</item>
<item>9</item>
</integer-array>
<integer-array name="config_safeModeDisabledVibePattern">
<item>0</item>
<item>24</item>
</integer-array>
<integer-array name="config_safeModeEnabledVibePattern">
<item>0</item>
<item>40</item>
<item>500</item>
<item>600</item>
</integer-array>
<integer-array name="config_scrollBarrierVibePattern">
<item>0</item>
<item>12</item>
<item>60</item>
<item>12</item>
</integer-array>
And replace with:
Code:
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>40</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>20</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>0</item>
<item>20</item>
</integer-array>
<integer-array name="config_safeModeDisabledVibePattern">
<item>0</item>
<item>40</item>
</integer-array>
<integer-array name="config_safeModeEnabledVibePattern">
<item>0</item>
<item>40</item>
<item>500</item>
<item>600</item>
</integer-array>
<integer-array name="config_scrollBarrierVibePattern">
<item>0</item>
<item>30</item>
<item>60</item>
<item>30</item>
</integer-array>
9. Save the file
10. Compile the apk. When asked "Is this a system apk?", I said "yes". And then when asked if anything else needs to be copied, I said "no".
11. Using 7zip, open the new apk as an archive found in "place-apk-here-for-modding" folder.
12. Also, open the original apk as an archive with 7zip
13. Drag and drop the "res" folder and "resources.arsc" file from the NEW apk into the ORIGINAL apk
14. Use your favorite method of getting the modified ORIGINAL apk back in your \system\framework\ directory on your phone
-I prefer to hi-jack someone's flashable zip and put my own framework-res.apk--I used AlteredLikeness's "The Stock Monster" http://forum.xda-developers.com/showthread.php?t=1645950 since I'm using stock, odexed 2.3.6. Thanks AlteredLikeness!
I understand there are a dwindling few still using 2.3.6 and the days of GB are numbered for the A2, but I hope this still helps someone! If you have any questions, feel free to post, but try to do some research first (that's how we all learn this stuff ).
Peace Out!
This seriously reminds me of Roy & Moss in "The I.T Crowd" modding Roy's phone....
lukensteinz said:
This seriously reminds me of Roy & Moss in "The I.T Crowd" modding Roy's phone....
Click to expand...
Click to collapse
I'm not sure if that's a good or a bad thing...
I guess I'll just have to watch the show on Netflix.
Thanks for sharing!! Good guide with nice and simple directions..
I would say that this should probably be in the themes and apps section.. but not really a theme.. or is it? But it shouldn't get buried in the general/Q&A section either..
I've faced this conflict of where to post with some of my threads..
Dear Moderators: We need a new section for mods, how-to's, pseudo-development and such.. And maybe also separate Q&A from general... just a thought.
Sent from my phone's mind
(Was that a hijack? Sorry if so..) Thanks again Capn!
alteredlikeness said:
Thanks for sharing!! Good guide with nice and simple directions..
I would say that this should probably be in the themes and apps section.. but not really a theme.. or is it? But it shouldn't get buried in the general/Q&A section either..
I've faced this conflict of where to post with some of my threads..
Dear Moderators: We need a new section for mods, how-to's, pseudo-development and such.. And maybe also separate Q&A from general... just a thought.
Sent from my phone's mind
Click to expand...
Click to collapse
Yeah, I debated which section to put it in. I decided on this since I wasn't actually posting a theme or app and it doesn't change any visual aspect of someone's theme.
And thanks again for originally providing the odexed themes and the zip that I hi-jacked !
alteredlikeness said:
Thanks for sharing!! Good guide with nice and simple directions..
I would say that this should probably be in the themes and apps section.. but not really a theme.. or is it? But it shouldn't get buried in the general/Q&A section either..
I've faced this conflict of where to post with some of my threads..
Dear Moderators: We need a new section for mods, how-to's, pseudo-development and such.. And maybe also separate Q&A from general... just a thought.
Sent from my phone's mind
Click to expand...
Click to collapse
I agree...
Sent from my Atari Falcon030
lukensteinz said:
This seriously reminds me of Roy & Moss in "The I.T Crowd" modding Roy's phone....
Click to expand...
Click to collapse
Not to get too off topic, but I just watch the first couple episodes of "The IT Crowd" and I have to say that it's pretty funny (thanks for bringing it up so I could discover it!). Is there a specific episode of modding Roy's phone? If so, I'm still not sure if I should be offended or flattered by the comment ...
On another note, has anyone tried this modification (successfully or not)? Does anyone see anything I should change or add (I tried to keep it as simple as I could so it's accessible to lots o' people)?
Peace out,
The Capn
Not Seeing It
Question:
I followed the steps, and the first run-through, everything went fine up until the compile, and I got an error, and the only thing inside the 7z was the MANIFEST file. And now, for whatever reason, every time I extract the .apk, there is no 'values' folder, even when I send a fresh copy over from the phone itself. I didn't install the modified compilation on my phone, so I have no idea what could have happened. I also checked the /res folder in the .apk running on the phone, and there was no 'values' folder.
Does my device have a sadistic mind of its own and refused to be modded?
guitaraddict4791 said:
Question:
I followed the steps, and the first run-through, everything went fine up until the compile, and I got an error, and the only thing inside the 7z was the MANIFEST file. And now, for whatever reason, every time I extract the .apk, there is no 'values' folder, even when I send a fresh copy over from the phone itself. I didn't install the modified compilation on my phone, so I have no idea what could have happened. I also checked the /res folder in the .apk running on the phone, and there was no 'values' folder.
Does my device have a sadistic mind of its own and refused to be modded?
Click to expand...
Click to collapse
Will APK Manager successfully decompile the apk? You can also use APK Tool or APK Multi-tool. If you simply use 7zip to look into the apk, it will not show the xml's (or at least it won't show them correctly). As far as I know, the "values" folder only shows up when you decompile.
Otherwise, it sounds like you went through the steps. Perhaps there are issues with the version of the apk manager or apktool you're using? Sorry, I'm at a different computer or I would have checked to see what I have currently. Until then, maybe someone else can chime in to give some advice?
If all else fails, I wouldn't mind sending you a copy of the framework-res.apk that I made (or you can tell me what changes you're trying to make and I'll try to do that).
Another thing to check is to make sure there is something in the copied and extracted apk BEFORE you do anything to it. If it only has the manifest, then it sounds like the copy over didn't work right. What ROM are you using? If you have the ROM's zip on your computer, you can just get it from there as well.
Sorry that I don't have a clear answer for you. You might be right that your phone has a grudge against you...you haven't verbally abused it, have you? Do you not treat it with love as it deserves?
Well, I found out my problem. I've been herpin' a derp pretty bad, because instead of decompiling, I simply extracted, which would explain why the FIRST time worked, but the other times did not.
But thanks for the help. All is well in the land of fairies.
Bumps... I think someone may be looking for this.
This is not working with android 4+
Could you please make out this for Android 4.1.2??
Sent from my GT-I9100 using Tapatalk 2
doesn't work on CM10.0, would really like this for my phone
Its not for higher version of Android dude..
GT I9100
Neat Rom lite v4.4
Hirox 5.1 medium
Related
Ok, I am going absolutely crazy here...I am no noob to cooking but I am having a horrible time for some reason. First let me set up the ROM for you...
I am running CE OS 707 WWE ported with Build 19965 (Raphael) and it is working fine. I have always made a provxml file to make my necessary registry changes instead of going through all the rgu's.
I have named this provxml file mxipupdate_oemoperators_108.provxml which I have attached for reference... This file is placed into the OperatorPKG folder and should, I say should run along with the other mxiupdate files...
Please look at this file and please explain why it is not happening. THe only thing I am thinking is that the ported SYS folder is causing some errors???
THanks in advance.
The file was made using rgutoXML in Unicode with wordwrap turned off
I have also tried running the file, converted to a xml file in my user customizations when it starts but still a no go...
Check youre sys if you got coldinit.lnk/coldinit.exe present.
My config_operator.txt
Code:
LOCK:Enabled
XML: \WINDOWS\mxipupdate_dialer_runback.provxml
TSK: \WINDOWS\IBI.tsk
XML: \WINDOWS\Menu_Operation.xml
CAB: \WINDOWS\PP_AKv33-DefaultPage_WWE-0409.CAB
XML: \WINDOWS\xml_reg.provxml
CAB: \WINDOWS\Raiisak`s IBI visual.cab
CFG: \Windows\config_PT.txt
config_operator.txt & xml.reg.provxml in C:\kaiserkitchen\OEM\OperatorPKG
xml.reg.provxml is where I have some of my reg stuff.
Yeah both those files are present in the SYS\Shell folder...
See whats confusing me about the whole thing is that the other ProvXML files in the OperatorPKG are working???? So I am assuming it might be something to do with the file.???
ryncppr said:
Yeah both those files are present in the SYS\Shell folder...
See whats confusing me about the whole thing is that the other ProvXML files in the OperatorPKG are working???? So I am assuming it might be something to do with the file.???
Click to expand...
Click to collapse
Wel, I poped it open to see if you had "Registry" present twice wich would make a error but it seemed good to me so its something that makes it not run. Try to set it up like I did above and give it a spin. Letme know if it worked.
Well that was a NO go so I am going to see if it has too do with the SYS files.... possible causing the error , I am not too sure...Very dumbfounded right now
Just for additional info.
To make *.provxml to be loaded on cold-boot, the said file must exist is any *.dsm.
Hope this help
And please check ur file, there were some errors in it & will be bypassed during cold-boot
Here some hints:
-check ur header
-remove semicolon or use html code
-check ur HKLM & "HKEY_LOCAL_MACHINE"
hang.tuah said:
And please check ur file, there was some error in it
Click to expand...
Click to collapse
Ah, yes. Didnt think of that.... Yet look for it ..
Ok I'm dying over here...what is the error please???? And by placing the *.provxml file into the OperatorPKG file isn't a DSM file attached to it???
I made sure any settings were not duplicated on a newer version...and by the way I tried to change the Coldinit files back to the original but no go either...I am trying a different SYS now
i think u missed my previous edited post
What do you mean by "Check my header"....
It says version="1.0" encoding="utf-8" I know.... do you mean I have to change the source file (text file) to unicode to get rid of this???
Basically if I open the file, click on View Source it opens in a notepad format...Should I save the file as *.provxml in Unicode??? because when I look at all the files that ATT puts out, once I change these files it makes them have the same header....
I also looked at raiisak xml.reg.provxml file and it too has the same header???
Ok I have attached my newest version of the Provxml...the header is gone as I changed the file type to Unicode and saved....
Also I have removed all the different HKLM files to the same and got rid of the ";" but it appears it is still not working???
I have the file named mxipupdate_oemoperators_108.provxml and it is set to run in the OperatorPKG file which has all the files the same up to 107....
ryncppr said:
I also looked at raiisak xml.reg.provxml file and it too has the same header???
Click to expand...
Click to collapse
For one time I prolly didnt use XML Notepad And I saw in EditPad
_ . _
so can someone please help me here....I am just asking what I am doing wrong...I have search the file, looked a hundreds of provxml files and still can not understand why this is not working???
ryn, for me, the header is not mandatory, it is ok, but will give error if u use some xml compiler.
here my attached edited file & u can compare with yours.
Hope this helps
hang.tuah said:
Here some hints:
-check ur header
-remove semicolon or use html code
-check ur HKLM & "HKEY_LOCAL_MACHINE"
Click to expand...
Click to collapse
Code:
translation="filesystem">
Code:
<characteristic type="HKLM\Software\OEM\RIL ; HSDPA indicator">
Code:
<characteristic type="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts">
This is what hang tried to explain.
I already changed the HKLM and the ";" problems...the translation=filesystem I did not change.....what would it be changed too???
have u compared ur with mine mate
and please test it can work or not | sorry i cant test it
I have compared yours with mine...
I am seeing you took out the translation section which I had done before...I am going to try and load yours in a rom...just trying to find a program that I can use instead of burning the rom completely over..
i dont think having translation section is problem. i'm also using a provxml that i created for myself, it has the provxml section in it and it does work properly. what i suspect is integer" value="0.0 sec". if it is integer, shouldn't it be integer" value="0" ?
I tried the de-branding hack (MobileOperator = "000-88"), but I was only able to update to 7008. Since T-Mobile USA is going to start pushing updates, I want to "rebrand" my phone back to what it was. Does anybody know what the MobileOperator string is for T-Mobile USA?
The string is TMO-US
jsmarcus said:
The string is TMO-US
Click to expand...
Click to collapse
Thanks! I'll give it a whirl.
is there any reason to want to rebrand the device? does anything stops from working after unbranding? thx
I also want to rebrand my HD7 but the registry editors ive used dont show it. How can I change it back to TMO-US?
omaropa said:
I also want to rebrand my HD7 but the registry editors ive used dont show it. How can I change it back to TMO-US?
Click to expand...
Click to collapse
You'll need to run this XAP called HTC-ProvXml-Deploy.
This XAP will load a self-contained CustClear.provxml file into the registry. You'll just need to create your own CustClear.provxml file and overwrite the one that's already in the XAP.
You'll need to create a .reg file with the following contents:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\System\Platform\DeviceTargetingInfo]
"MobileOperator"="TMO-US"
Then run rgu-2-xml to convert it to an XML file.
The XML file should look like this:
Code:
<wap-provisioningdoc>
<!-- *** COMMENTO *** -->
<characteristic type="Registry">
<characteristic type="HKLM\System\Platform\DeviceTargetingInfo">
<parm name="MobileOperator" value="TMO-US" datatype="string" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Rename the file generated by rgu-2-xml to "CustClear.provxml" (without quotes obviously). BTW, you can just take the XML above paste it into NotePad and save it as "CustClear.provxml" if you want to skip the rgu-2-xml conversion.
Next you'll need to open up "HTC-ProvXML-Deployn.n.n.xap" as an archive file. You can either change the extension to "zip" and open it up in Windows (you'll need to change the extension back to "xap" later, obviously), or you can use 7-Zip. If you have 7-Zip, right-click on the xap file and select "Open archive".
Drag your new CustClear.provxml file into the archive and overwrite the file already contained therein. Double check that the file was overwritten by dragging the file from the archive to another folder (e.g. your desktop) and open it up in NotePad to inspect.
Next change the extension of the zip file back to xap if you have to, and then deploy the xap to your device. Run the app, and you should have a rebranded HD7.
Unfortunately, I don't think there's anyway to tell if the changes stuck.
Thank you. This was very easy to follow and I was able to follow your instructions and deploy the registry settings!
I already customized myself a provxml to rebrand my HD7 back to TMO-US. Attached it for download. Just deploy to your device and hit the green button to provision.
Note that this is specifically to rebrand back to TMO-US.
Hi,
Slight highjacking, but I also rebranded mine to 000-88, and want to change back. I was too stupid to write my old registry down.
I have an Samsung Omnia with 3 for Sweden. Could any swedish guy check that out?
I'd like to ask the same question for my O2 Germany HD7.
I know, one probably just has to change TMO-US into something like O2-DE or else, but I don't want to mess around with these reg files so I rather ask.
O2 Germany pushed the update yesterday and since my general reception got worse after forced NoDo I want to try it with the official one.
So it'd be nice if anyone could tell, what providerIDs one has to use for certain countrys/providers.
Big thanks in advance!
Hi all!
Does anyone know what is the entry - instead of "TMO-US" - for debranded devices in the registry?
I would like to rebrand my mozart for an update and after the installation I would like to redebrand my device ... to be free again ... ;-)
Thanks in advance!!
blaster88 said:
Hi all!
Does anyone know what is the entry - instead of "TMO-US" - for debranded devices in the registry?
I would like to rebrand my mozart for an update and after the installation I would like to redebrand my device ... to be free again ... ;-)
Thanks in advance!!
Click to expand...
Click to collapse
good question, has anyone an idea?
Hello
These are just my assumptions.. and I'll edit this post with everything I found out. If you find wrong information, please correct and help me solving this "problem". I'd be relly glad if someone could clarify this whole thing:
If you're updating your phone to Mango (maybe all other updates too), there'll be a .cab file which provisions your registry with some new entries that are needed for Zune to recognize your phone as a developers device and show up the update message. This .cab file (which is basically comparable with a little update) can edit entries in the phones registry without having a developer unlock. A good example is this method to get the Mango update: @windowsphonehacker.com. Even with the value "DeveloperUnlockState" set to 0 you can use this tool to update to Mango.
In our example the "prov.cab" which is part of the tool "says" the phone to change/create the following registry entries:
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\DeviceUpdate\Agent\Protocol]
"TestTarget"="15c00000-0003-0001-c0d4-m4a1f005ba11"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\DeviceUpdate\Agent\Settings]
"GuidOfCategoryToScan"="0fdd4743-cba1-4a2b-af7c-5af9fd93951a"
With this two keys changed and your phone plugged to your PC you'll be able to get the update.
Now.. if we could edit this .cab file so that it tells the phone something like this...
Code:
[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
"DeveloperUnlockState"=dword:1
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff
...we should be able to jailbreak any version of WP7
What I figured out is that you can easily unzip the .cab file. You'll get a .pkg file which is also an archive. After extracting this one there are three more files:
61784efe-031a-4673-b7a0-16d3f78efc2e.dsm
61784EFE-031A-4673-B7A0-16D3F78EFC2E.rgu
mxipupdate_DeviceUpdateSelfhost_200.provxml
Okay, in short:
prov.cab
|
UNZIP
|
v
DeviceProvisioning.cab.pkg
|
UNZIP
|
v
61784efe-031a-4673-b7a0-16d3f78efc2e.dsm
Code:
[COLOR="DarkRed"]IN EDITOR:[/COLOR]
[COLOR="Gray"]Nothing useful :o Just hieroglyphs.. maybe it's encrypted :(
EDIT: I found a tool which can read/write/save this .dsm files: [URL="http://forum.xda-developers.com/showthread.php?t=523139"]DSM Editor[/URL]. But the information it shows me is still worthless for me.. I don't understand anything of it =/[/COLOR]
61784EFE-031A-4673-B7A0-16D3F78EFC2E.rgu
Code:
[COLOR="DarkRed"]IN EDITOR:[/COLOR]
[COLOR="Gray"]REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\DeviceUpdate\Agent\Protocol]
"MuReDirCabUrl1"="http://download.windowsupdate.com/WM/MicrosoftUpdate/redir/duredir.cab"
"MuReDirCabUrl2"="http://download.microsoft.com/WM/MicrosoftUpdate/redir/duredir.cab"
"MuReDirCabUrl3"="http://www.update.microsoft.com/WM/MicrosoftUpdate/Redir/duredir.cab"
"TestTarget"="15c00000-0003-0001-c0d4-m4a1f005ba11"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\DeviceUpdate\Agent\Settings]
"GuidOfCategoryToScan"="0fdd4743-cba1-4a2b-af7c-5af9fd93951a"[/COLOR]
mxipupdate_DeviceUpdateSelfhost_200.provxml
Code:
[COLOR="DarkRed"]IN EDITOR:[/COLOR]
[COLOR="Gray"]<!--
Copyright (c) Microsoft Corporation. All rights reserved.
-->
<!--
Use of this source code is subject to the terms of the Microsoft
premium shared source license agreement under which you licensed
this source code. If you did not accept the terms of the license
agreement, you are not authorized to use this source code.
For the terms of the license, please see the license agreement
signed by you and Microsoft.
THE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
-->
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Windows\DeviceUpdate\Agent\Protocol">
<parm name="ClientServerUrl" value="" datatype="string"/>
<parm name="IdentCabFileSize" value="0" datatype="integer"/>
<parm name="IdentCabUrl" value="" datatype="string" />
<parm name="IdentCabFileSize" value="0" datatype="integer"/>
<parm name="ReDirCabFileSize" value="0" datatype="integer"/>
<parm name="ReDirectorId" value="0" datatype="integer"/>
<parm name="ReportingServerUrl" value="" datatype="string" />
<parm name="SelfUpdateCabUrl" value="" datatype="string" />
</characteristic>
</characteristic>
</wap-provisioningdoc>[/COLOR]
Another thing I noticed was that some of those files where digitally signed with a certificate (e.g. right click the prov.cab and you'll see a tab showing the certificate). After modifying any of these files they loose their signature and you can't "update" them via the UpdateWP.exe - it throws out an error. I searched for quite a long time on how to resign the modified files.. I came over a tool named "signcode.exe" - it seems to be able to sign files (.exe, .dll, .cab). I was able to sign the original prov.cab but not my modified one. But after replacing Microsofts signature of the original prov.cab file with mine (<- found a .cer + .pvk) in the internet, I wasn't able to get the prov.cab "updated" to my phone.
Maybe this is way to complicated and there's a much easier solution.. but any help is appreciated
Thanks in advance,
experience7
I can't clarify it for you but .pkg file (from .cab) contains 3 files inside:
Code:
61784efe-031a-4673-b7a0-16d3f78efc2e.dsm
61784EFE-031A-4673-B7A0-16D3F78EFC2E.rgu
mxipupdate_DeviceUpdateSelfhost_200.provxml
(also see attached archive)
I believe guys with WinMo ROM knowledge could explain us what does it mean...
P.S. He-he, we reply simultaneously
sensboston said:
I can't clarify it for you but .pkg file (from .cab) contains 3 files inside:
Click to expand...
Click to collapse
Yup, that's what I also found out already Anyway, thank you very much
sensboston said:
(also see attached archive)
Click to expand...
Click to collapse
Which attached archive?
EDIT: Ah, now it's there
sensboston said:
I believe guys with WinMo ROM knowledge could explain us what does it mean...
Click to expand...
Click to collapse
Yes, especially the use of the .dsm file would be interesting
experience7
File mxipupdate_DeviceUpdateSelfhost_200.provxml looks very promising Unfortunately I don't have unupdated handset now to try...
Application for testing
I'm in the middle of reflash so if you want me to test please provide instructions in PM. Where should I put the CAB file and how should I "force" an update, etc.
Note: Isn't the DSM file contains a signature that tells Zune if the update is valid or modified/hacked?
Very promising and hard at willing to test this.
Cina.
cina said:
I'm in the middle of reflash so if you want me to test please provide instructions in PM.
Click to expand...
Click to collapse
Well, I think this could take a while to complete But thanks for your help and hey.. We don't have to developer unlock the device to see if it works We can also try to edit some other registry values like accent colors or search providers
cina said:
Where should I put the CAB file and how should I "force" an update, etc.
Click to expand...
Click to collapse
Later, when our files are changed we just have to install the "Windows Phone Support Tools". Then the file "UpdateWP.exe" is in the directory. This one has to be started with the parameters "/iu /enablebackup ~MODiFiED-FiLE.cab~"
cina said:
Note: Isn't the DSM file contains a signature that tells Zune if the update is valid or modified/hacked?
Click to expand...
Click to collapse
I hope this is not the case =/ Would only make things more difficult
cina said:
Very promising and hard at willing to test this.
Click to expand...
Click to collapse
Wow thanks! I'm glad for everyone who's helping me
If this method works, we'd be able to edit the complete registry of every phone with any OS version
experience7 said:
I hope this is not the case =/ Would only make things more difficult
Click to expand...
Click to collapse
I'm afraid, it is the case And it make things impossible, unfortunately, not a "more difficult"...
Yep A few minutes ago I played around a bit with the files: I extracted both the prov.cab and the DeviceProvisioning.cab.pkg and zipped them again: Although I didn't use compression to zip the files back again to get one prov.cab the size of the original and the "extracted and rezipped" file don't match The new one is much smaller. I right clicked the original and found out, that it's signed with a certificate. The new file wasn't.. it lost the signature. And I guess even the files inside the archive are signed with certificates =/ I'm pretty sure it works.. but we have to find out how to modify the files, how to resign them and how to pack them together to one .cab file =/ Long story short: We'd need a genius :S
He-he... If u'll find an easy way to crack MS certificates/signatures, u'll be a rich man (or in most wanted criminals list on FBI website )
Sounds strange but I already found some certificates "from Microsoft". When I open them on my Windows PC it says for example: Microsoft Windows Mobile Firmware CA. But I think the whole story is way to complicated for me. I never had anything to do with certificates, .dsm files/.cab files, ... I just had this random idea =/ Well, modifying the .cab file or.. a second method maybe would be to edit the UpdateWP.exe so that it even transfers unsigned .cab files.. but this would require good skills in reverse engineering, ...
I'm afraid, you need to modify not an UpdateWP.exe but WP7 firmware code what is really responsible for changes in file system/registry. I believe that part is checking downloaded data integrity (based on .cab signature).
I haven't got any information about the firmware checking changes of the registry or file system
Okay, at the end I can say that I'll be never able to do this =/
It's hard to believe that WP7 is still as good as unjailbroken I hope that time will bring some new ways to jailbreak our phones.. I'd really love to flash some new ROMS (with new amazing improvements, but NoDo installed ) and then be able to jailbreak them Hope this will work one day..
experience7
all the pkg (cab) files are signed by M$, u can't and propoblely never be able to make a cer accepted by the phone. the validation part is from the phone not the updatewp.exe
Hi, I am trying to get the source code of the ToggleWidgets.apk that cames with my Motorola Defy+. I already read many things (since I am new user, I am not able to post outside links) but I was not succesful on doing it. What I did so far:
Copied the frame moto-res.apk, framework-res.apk, and blur-res.apk from my Rom.
Installed it on the apktool, apktool if ...
Runned apktool d ToggleWidgets.apk and it was correctly extracted into the dir ToggleWidgets
Now I was expecting to find a classes.dex file. But there is not, and I got stuck. If someone knows what should I do, or a link with things to clarify, I would be thankful.
I just renamed one of my apps with .zip and opened it, and the classes.dex file was in there. not sure if that helps or not.
@ronaldguilmet: It was the very first thing I tried. Interesting that in my case the file present. Thanks!
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
thgramos said:
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
Click to expand...
Click to collapse
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
eduardomucelli said:
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
Click to expand...
Click to collapse
did you manage to deodex it? if so, can you tell me how? I've tried differents methods with no success. My ultimate goal is to be able to use the Toggle Widgets in a custom ROM like CM9, I don't even know if this is possible without using the motoblur launcher. Could it be that you are trying to do the same thing? it's just that I like those widgets so much and I would like to keep them in a different ROM.
Does anybody know how to view/browse/export in readable format WP7 registry hives, user.hv & system.hv?
I'm trying to resolve issue with LiveID change; and I found (using hex viewer), the old LiveID still exists (two entries) in the system.hv, but I can't find the exact path to these values
This program doesn't works:
http://forum.xda-developers.com/showthread.php?t=587584
Any suggestions? Thanks!
P.S. 2 moderators: please, do not move this post to Q&A! It's very specific dev&hacking question; only our whitehats can help me but I afraid they never read Q&A forum
sensboston said:
Does anybody know how to view/browse/export in readable format WP7 registry hives, user.hv & system.hv?
I'm trying to resolve issue with LiveID change; and I found (using hex viewer), the old LiveID still exists (two entries) in the system.hv, but I can't find the exact path to these values
This program doesn't works:
http://forum.xda-developers.com/showthread.php?t=587584
Any suggestions? Thanks!
P.S. 2 moderators: please, do not move this post to Q&A! It's very specific dev&hacking question; only our whitehats can help me but I afraid they never read Q&A forum
Click to expand...
Click to collapse
mRegEdit should work if I remember it's name correctly There are also guides on this section for changing the live id through registry without resetting the phone. That search on the top of this page works
jessenic said:
mRegEdit should work if I remember it's name correctly There are also guides on this section for changing the live id through registry without resetting the phone. That search on the top of this page works
Click to expand...
Click to collapse
Hmm... Seems like you should try that search first... I wrote that guide, first of all.
Second, mRegEdit (it's a link in my first post! you don't even tried to click!) is NOT working for WP7 hive files (and I don't have source code).
Before post useless "suggestions" and RTFM advises, next time try to understand and research issue first.
We do actually read Q&A, or at least I do, but yeah... I've never tried pulling apart the hive files directly. It would be nice if the Search feature in the TouchXperience registry editor would actually search the data like it claims to do... there's only one registry key, and no registry values, that have my live ID as their name.
There is a way to do a full registry dump of a mounted hive. It requires being able to read the output of provxml, though - not sure if that's possible on Samsung. I could try doing it on my (HTC) phone and then search it for my Live Id, however. Basically, do a characteristic-query on a root element, and enable recursion.
It's also worth noting that the Live ID may not be stored as an email address everywhere that matters. Some features might just store a GUID, for example. I don't know of anything that does, but if you manage to change all of the email strings but are still having problems, that might be why.
GoodDayToDie, I've copied hive files (system.hv and user.hv) using WP7 Root Tools (from the \Windows\Registry) to desktop (via ISF) I'm not sure, may be it's just a shadow copies but both files have my new LiveID inside. Also I found 2 entries of the old LiveId (and already found location of the first - it's \HCLM\Software\Microsoft\Zune\Usage\SignedInUser) but that value change to the new one, current LiveID + reboot don't help much.
Probably, previous LiveID's hash or token is stored somewhere in the registry I'm afraid, without tracing it will be very hard to find one...
Update: I found a way to decode (but partially, unfortunately) these registry hives
Unpack attached archive, copy system.hv and user.hv to that directory and run 1.bat.
sensboston said:
This program doesn't works:
http://forum.xda-developers.com/showthread.php?t=587584)
Click to expand...
Click to collapse
if you want to use that program, you must first use in conjunction with WMDC/ActiveSync Launcher.
else, you can just use HVEdit.
sh4d0w86 said:
if you want to use that program, you must first use in conjunction with WMDC/ActiveSync Launcher.
Click to expand...
Click to collapse
Why? It's a desktop program. Works fine for WinMo ROM hives but not for WP7.
sh4d0w86 said:
else, you can just use HVEdit.
Click to expand...
Click to collapse
Also not working, crashes on:
Code:
ERROR: d:\ce1\private\winceos\coreos\filesys\reg\reghive\registry.c line 197: Reg: Invalid reghandle 0x2000ce11
ERROR: d:\ce1\private\winceos\coreos\filesys\reg\reghive\registry.c line 197: Reg: Invalid reghandle 0x2000d376
ERROR: d:\ce1\private\winceos\coreos\filesys\reg\reghive\registry.c line 197: Reg: Invalid reghandle 0x2000bfb6
ERROR: d:\ce1\private\winceos\coreos\filesys\reg\reghive\registry.c line 197: Reg: Invalid reghandle 0x2000d46a
I believe, problem is in the cereg400.dll. Seems like it's outdated for WinCE version used in WP7.
sensboston said:
Why? It's a desktop program. Works fine for WinMo ROM hives but not for WP7.
Click to expand...
Click to collapse
CeRegEditor utilizes ActiveSync & WMDC to connect & access the registry on the device.
sensboston said:
I believe, problem is in the cereg400.dll. Seems like it's outdated for WinCE version used in WP7.
Click to expand...
Click to collapse
01. drag & drop *.hv onto HVEdit.exe
02. open the newly created *.hvm file in text editor
03. drag & drop *.hvm onto HVEdit.exe
sh4d0w86 said:
CeRegEditor utilizes ActiveSync & WMDC to connect & access the registry on the device.
Click to expand...
Click to collapse
Hmm... Where I've mentioned CeRegEditor? I've mean mRegEdit (see linky in my first post).
sh4d0w86 said:
01. drag & drop *.hv onto HVEdit.exe
02. open the newly created *.hvm file in text editor
03. drag & drop *.hvm onto HVEdit.exe
Click to expand...
Click to collapse
Another "hmm"... I don't need drag&drop (you can see my status, I'm not a noob but experienced developer with ... he-he, le' me remember ... more than 20 years of development), I'm using Far Manager (and may recommend it to you). But HVEdit can't parse WP7 hive files (with or without drag&drop). If you don't believe me, try yourself, it's very easy.
sensboston said:
Hmm... Where I've mentioned CeRegEditor? I've mean mRegEdit (see linky in my first post).
Click to expand...
Click to collapse
oops, my mistake. i don't know about mRegEdit, haven't ever used or read of until now, for that matter. CeRegEditor can open *.hv, but not all registry are opened.
sensboston said:
Another "hmm"... I don't need drag&drop (you can see my status, I'm not a noob but experienced developer with ... he-he, le' me remember ... more than 20 years of development), I'm using Far Manager (and may recommend it to you). But HVEdit can't parse WP7 hive files (with or without drag&drop). If you don't believe me, try yourself, it's very easy.
Click to expand...
Click to collapse
aren't you looking to do this? see below attachments.
I've tried on my hive files, copied from the working Focus (by using WP7 Root Tools + ISETool) and HVEdit can't parse these files. May be because I've copied already opened files or shadow copies (I'm not sure).
Your example is for default.hv (I believe, that file was extracted from ROM, not from the working phone, correct?)
P.S. By the way, I already "solved" parsing hives (see my posts above) but it didn't solve the "change LiveID" problem Looks like WP7 stored somewhere previous LiveID token or hash.
sensboston said:
I've tried on my hive files, copied from the working Focus (by using WP7 Root Tools + ISETool) and HVEdit can't parse these files. May be because I've copied already opened files or shadow copies (I'm not sure).
Your example is for default.hv (I believe, that file was extracted from ROM, not from the working phone, correct?)
P.S. By the way, I already "solved" parsing hives (see my posts above) but it didn't solve the "change LiveID" problem Looks like WP7 stored somewhere previous LiveID token or hash.
Click to expand...
Click to collapse
when i get home, i will extract the two *.hv files from my HD7 and give it a try.
i believe i had done that before and it worked, but can't be positive on whether i actually did or not.
OK, thanks. You may also try attached (in my post above) rgucomp.exe (it worked for me partially).
sensboston said:
Hmm... Where I've mentioned CeRegEditor? I've mean mRegEdit (see linky in my first post).
Another "hmm"... I don't need drag&drop (you can see my status, I'm not a noob but experienced developer with ... he-he, le' me remember ... more than 20 years of development), I'm using Far Manager (and may recommend it to you). But HVEdit can't parse WP7 hive files (with or without drag&drop). If you don't believe me, try yourself, it's very easy.
Click to expand...
Click to collapse
Hi mate,
If I understand correctly I believe sh4d0w86 is right, with HVedit you can view/browse/export in readable format WP7 registry hives like user.hv, system.hv and even default.hv.
I am doing that since I cook my first WP7 custom ROM.
Just drag the *.hv file on top of HVedit.exe and immediatly an *hvm file will be created that can easly be edited with any text editor.
Than you can do the same drag and drop process with the *.hvm and the file will be restored to *.hv again.
Hope it helps
sensboston said:
OK, thanks. You may also try attached (in my post above) rgucomp.exe (it worked for me partially).
Click to expand...
Click to collapse
extracted user.hv & default.hv from my HD7 and used HVEdit to read just fine.
Good for you. Here is mine output (after drag & drop):
Code:
03/29/2012 05:39 PM <DIR> .
03/29/2012 05:39 PM <DIR> ..
05/20/2010 08:00 PM 60,784 cereg400.dll
03/29/2012 05:39 PM <DIR> cereg400.dll_old
01/29/2011 11:19 AM 212,992 HVEdit.exe
03/29/2012 12:17 PM 4,194,304 system.hv
03/29/2012 05:39 PM 4,234 system.hvm
03/29/2012 12:17 PM 524,288 user.hv
03/29/2012 05:40 PM 16,384 user.hvm
6 File(s) 5,012,986 bytes
3 Dir(s) 224,148,934,656 bytes free
sensboston said:
Good for you. Here is mine output (after drag & drop)
Click to expand...
Click to collapse
hmm. well, sounds like you should try WMDC Launcher in conjunction with WMDC/ActiveSync and maybe WP7 Root Tools v0.9.
less, you want me to try it with your *.hv file(s). you can email them to me, if you want.
sh4d0w86 said:
hmm. well, sounds like you should try WMDC Launcher in conjunction with WMDC/ActiveSync and maybe WP7 Root Tools v0.9.
Click to expand...
Click to collapse
Try for what? As I said before, I already found places with the old LiveID (so I don't need parsing tool anymore), but changing to the new LiveID didn't solve the SkyDrive/Twitter access issue.
sh4d0w86 said:
less, you want me to try it with your *.hv file(s). you can email them to me, if you want.
Click to expand...
Click to collapse
No, sorry, I don't want to email you my personal data There are lot of unencrypted, plain text info in the registry...
sensboston said:
Try for what? As I said before, I already found places with the old LiveID (so I don't need parsing tool anymore), but changing to the new LiveID didn't solve the SkyDrive/Twitter access issue.
Click to expand...
Click to collapse
don't know how else to help, than besides what i have already suggested. restore device?
sensboston said:
No, sorry, I don't want to email you my personal data There are lot of unencrypted, plain text info in the registry...
Click to expand...
Click to collapse
which is why i said email. and f**k that noise, i am not about to 'destroy' my good reputation here on XDA.