Guide: Dumping a q9c rom
This is a discussion on Guide: Dumping a q9c rom within the Moto Q Hacks forums, part of the Motorola Q Software category; Nobody else seems to know how to do it, so I'm going to write a guide. I would've killed for ...
-
Guide: Dumping a q9c rom
Nobody else seems to know how to do it, so I'm going to write a guide. I would've killed for this info a couple weeks back. So. Here goes.
As you may have noticed, there are certain files in your q9c that you simply cannot get your hands on. Most of these files reside in \windows\. And though you can see them, you can't copy them off.
The basic process for retrieving these files is to dump the ROM and then extract usable information from the ROM dump.
You'll need a few tool kits. The first one is XDA ITSUTILS, available here:
http://www.xs4all.nl/~itsme/projects/xda/tools.html
This contains a whole bunch of fun little goodies, but the app we'll be using today is pdocread.
So. Extract itsutils to its own directory. Open a command prompt and change to this directory. I used c:\itsutils\
go ahead and type pdocread and hit enter.
Let me preface this by saying that ITSUTILS works by copying a DLL file to your device to do the heavy lifting. You'll need to allow this when the device asks you.
Pdocread will tell you that it is attempting to update the DLL file on your device. If it succeeds, you'll get a screen full of usage information. If it fails, you'll get an error asking you if your device is locked.
I wasn't able to use the tool until I made the following regedit:
HKLM\Security\Policies\Policies
valuename '00001001' was set to dword:2, change it to dword:1
Have podocread running? Good. Lets proceed.
You'll need to get a listing of the available disk devices.
The command for this is simple:
pdocread -l
Take a screenshot, or copy and paste this information into a text document or something. I printed mine out. It'll help save screen real estate, and it'll help keep your sanity.
My information looks a lot like this:
C:\Users\Jay\Desktop\itsutilsbin-20080313>pdocread -l
63.94M (0x3ff0000) TrueFFS
| 4.12M (0x41fc00) Part00
| 2.56M (0x290000) Part01
| 57.25M (0x3940000) Part02
52.72M (0x34b8000) TrueFFS
| 4.12M (0x41fc00) Part00
| 2.56M (0x290000) Part01
| 57.25M (0x3940000) Part02
1.90G (0x79b00000) DSK1:
| 1.90G (0x79ae1200) Part00
lets start analyzing this. we can see three physical devices. TrueFFS, TrueFFS and DSK1.
You might not have DSK1. DSK1 is my minisd card. that device is irrelevant, we're going to ignore it.
So. Now we get to throw some commands together and work out a ROM dump.
My command looks like this:
pdocread -v -w -d TrueFFS -p Part02 0 0x3940000 Part02.raw
Scary, I know. Chill out though. I'll explain:
The first part, pdocread, is obviously the app we're running.
Then we have the options (-v, -w,)
Then -d, (disk) followed by the disk name TrueFFS
then -p (partition?) followed by the Partition name Part02
then the starting location, 0
then the size of the partition 0x3940000
then the output file that this will create Part02.raw
You'll need to change some of the values, like size and partition name,probably.
Cross your fingers and hit <return>
if everything is correct, you'll see lots of information on the screen.
It's going to churn for a while. Something like 15 minutes, for the file I'm dumping.
When it's done, you'll have a shiny new ROM dump.
Congratulations.
Now you'll probably want to extract something useful from it. Download imgfs tools (imgfs_tools_182.rar)
http://forum.xda-developers.com/showthread.php?t=249836
Extract the files into your working directory. (c:\itsutils\) in my case
Now I'm going to extract my files. This is the fun part.
My commands look like this:
prepare_imgfs.exe Part02.raw -nosplit
-then-
viewimgfs.exe imgfs_raw_data.bin
The second command will run for quite a while. It will create a directory called "dump", containing everything that it could extract.
You can run these commands against every dump you make, just be sure to change the filenames in the appropriate spots first.
Now, in my case, I'm going to navigate to the motgpsapi.dll directory and copy out motgpsapi.dll and send it on to someone who knows what he's doing
.
Good luck, Have fun, and if you need any help I'll see if I can answer your questions.
Just Throwing this out there - if someone has a sprint q9c and would like to help out the verizon GPS effort, feel free to dump your rom and send me motgpsapi.dll
-
The Following 7 Users Say Thank You to 5k1ttl3 For This Useful Post:
bberryhill0 (02-15-2009), doctorq2u (02-13-2009), earthsound (02-13-2009), sastone75 (02-19-2009), SDNick484 (02-16-2009), Tyler Lillie (02-13-2009), wingsnut25 (02-19-2009)
-
I sure hope someone helps you with this, it is way over my head but of few of you guys that understand all this mess and maybe you can get our vzw gps unlocked :-) PS. You sound like a good candidate to write for Chris also :-)
-
-

Originally Posted by
Boycan
I sure hope someone helps you with this, it is way over my head but of few of you guys that understand all this mess and maybe you can get our vzw gps unlocked :-) PS. You sound like a good candidate to write for Chris also :-)
Well, I got the verizon DLL out this morning and I was STOKED. Its going to help a lot I'm sure. I'll keep you guys posted, although I'm the only one who posts to the GPS hack thread anymore and I hate double posting.
Thought I'd share the process with everyone. There were many late nights reading until I went crosseyed. But this process works. so.
I'm pretty new here - Write for Chris?
-
-
-
-
edit sorry bout the caps it was an accident<p>Even tho I DON'T POST IN THAT GPS FORUM I DO WATCH IT REAL CLOSE JUST NOT SAVY ENOUGH TO PARTICIPATE :-) and ya Chris has a post requesting volunteers to write articles for EQ he said it may come with some perks too :-) 
Originally Posted by
5k1ttl3
Well, I got the verizon DLL out this morning and I was STOKED. Its going to help a lot I'm sure. I'll keep you guys posted, although I'm the only one who posts to the GPS hack thread anymore and I hate double posting. <a href="images/smilies/laugh2.gif" border="0" alt="" title="laugh" smilieid="38" class="inlineimg" /> Thought I'd share the process with everyone. There were many late nights reading until I went crosseyed. But this process works. so. </p>
<p> </p>
<p>I'm pretty new here - Write for Chris?
</p>
-
-
I'll do this later.
I'll pass it on to the Alltel guy if he's still here.
I did't want to pass on a windows and registry dump.
Very nice write up.
-
-

Originally Posted by
fr4nk1yn
I'll do this later.
I'll pass it on to the Alltel guy if he's still here.
I did't want to pass on a windows and registry dump.
Very nice write up.
Thanks
. Being a lazy sysadmin with too much free time does have its perks.
I'll attach Verizon's motgpsapi.dll to the GPS hack thread too, just so it doesn't get lost.
-
-
Very nice guide! This might help with finding a way to alter the bottom taskbar we've been aiming at in the Smart Tool Kit Skin.
-
-
[quote=5k1ttl3;253263]Nobody else seems to know how to do it, so I'm going to write a guide. I would've killed for this info a couple weeks back. So. Here goes.
___________________
How did your project go what did you all do with motgpsapi.dll
-
-
I used these instructions to make a dump of my Sprint phone for him, so they work.
But he hasn't been online in a few months so I doubt he'll be able to answer your questions.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules