4WinMobile.com

Go Back   4WinMobile.com > 4WinMobile Site > 4WM News > Old News, Press Releases, Store Notifications

Old News, Press Releases, Store Notifications Archive containing old News Threads, Press Releases and Store Notifications

Post New Thread Reply
 
Thread Tools Search this Thread Display Modes
Old 22-03-2008, 04:20 PM   #1 (permalink)
Administrator
 
windows's Avatar
 
Join Date: Sep 2005
Location: Manchester UK
Posts: 20,654
WM Team Blog: Why can't I copy programs out of \Windows?

I've seen people internally and externally ask for help copying files out of \Windows on the device, usually EXEs and DLL files. I'm not sure what their end goal - sometimes it's to try those binaries on a different device but there are probably other reasons too. In general, it's pretty hard to do this and the obvious methods won't work.
There are two main sections of the internal ROM of a device, called FILES and MODULES. You can copy anything you want out of the FILES section. All of the data files like graphics and other multimedia go in the FILES section. Some program binaries will also end up in the FILES section, depending on where Microsoft and the OEM choose to put them. You can tell a file in the MODULES section because it will have the FILE_ATTRIBUTE_ROMMODULE attribute as well as FILE_ATTRIBUTE_INROM. Files in the FILES section will only have FILE_ATTRIBUTE_INROM. If you're looking at the files in a file explorer that shows attributes in hex, FILE_ATTRIBUTE_ROMMODULE|FILE_ATTRIBUTE_INROM shows up as 0x2040.
The programs in the MODULES section of ROM are specially processed before getting put into ROM. Most of the headers are removed and the addresses are fixed up so that the programs can run without having to be loaded into RAM first. This saves RAM and performance later on. What this means to you is that even if you could get the bytes out of ROM, you wouldn't be able to use them. The binary has been stripped down and customized for that particular device.
There are unsupported tools externally available that are able to copy the modules out of ROM and then try to reconstruct the original file. If you still need to extract those bytes, you can probably find one of those tools.

Scott


More...
windows is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsors
Old 23-03-2008, 12:56 AM   #2 (permalink)
boz
Site Moderator
 
boz's Avatar
 
Join Date: May 2007
Location: East of England U.K.
Posts: 10,360
Donation Level 3 
Re: WM Team Blog: Why can't I copy programs out of \Windows?

Good post, I use the unsupported tools that Scott mentions when evaluating a rom for interesting bits and pieces.
__________________
O2 Ignito (HTC Diamond), E-TEN Glofiish V900, O2 Orbit 2 (Polaris), HTC Trinity, Vodafone v1615 (Kaiser), HTC Tytn (Hermes) + Others!

If you enjoy this site then please ensure it's survival with a Donation or a Subscription.
boz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-03-2008, 02:08 AM   #3 (permalink)
VIP (Sponsor or Developer)
 
Join Date: Nov 2005
Posts: 131
Re: WM Team Blog: Why can't I copy programs out of \Windows?

So where are these tools? I've had a desire for this at times as well.
alex_kac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsors
Post New Thread Reply  

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Friends of 4WM
Spb


All times are GMT. The time now is 09:52 PM.

Sponsors



 


Design by: vBulletin Skins Zone
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
(c) Daron Brewood - www.4winmobile.com 2004-2008
Ad Management by RedTyger


Page generated in 0.15822 seconds with 12 queries