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 ...

+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast
Results 1 to 10 of 36

Thread: Guide: Dumping a q9c rom

  1. #1

    Join Date
    Sep 2008
    Posts
    71
    Thanks
    3
    Thanked 16 Times in 8 Posts
    Downloads
    0
    Uploads
    0

    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

  2. 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)

  3. Click here to register for our Windows Phone forums and remove these ads.
  4. #2
    Boycan's Avatar
    Join Date
    Jul 2008
    Location
    Dallas Tx.
    Posts
    572
    Thanks
    49
    Thanked 44 Times in 37 Posts
    Downloads
    0
    Uploads
    0

    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 :-)

  5. #3

    Join Date
    Sep 2008
    Posts
    71
    Thanks
    3
    Thanked 16 Times in 8 Posts
    Downloads
    0
    Uploads
    0

    Quote Originally Posted by Boycan View Post
    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?

  6. #4
    rudeboy's Avatar
    Join Date
    Jan 2007
    Location
    ~alienated, population 1~
    Posts
    28,183
    Thanks
    287
    Thanked 2,137 Times in 1,698 Posts
    Downloads
    0
    Uploads
    0
    much later.. maybe.
    ~rb.



  7. #5
    Boycan's Avatar
    Join Date
    Jul 2008
    Location
    Dallas Tx.
    Posts
    572
    Thanks
    49
    Thanked 44 Times in 37 Posts
    Downloads
    0
    Uploads
    0

    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 :-)
    Quote Originally Posted by 5k1ttl3 View Post
    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>&nbsp;</p>
    <p>I'm pretty new here - Write for Chris?
    </p>

  8. #6

    Join Date
    Jul 2008
    Posts
    1,861
    Thanks
    42
    Thanked 78 Times in 68 Posts
    Downloads
    0
    Uploads
    0

    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.

  9. #7

    Join Date
    Sep 2008
    Posts
    71
    Thanks
    3
    Thanked 16 Times in 8 Posts
    Downloads
    0
    Uploads
    0

    Quote Originally Posted by fr4nk1yn View Post
    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.

  10. #8
    Vazguard's Avatar
    Join Date
    Jan 2008
    Location
    Maine, Rochester NY
    Posts
    2,758
    Thanks
    27
    Thanked 213 Times in 192 Posts
    Downloads
    0
    Uploads
    0

    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.



    If someone helps you, please make sure to thank them by hitting the button on his/her post!

    My Blog - Ebay Phones - EQ Author - my Drop

  11. #9

    Join Date
    Feb 2007
    Location
    Texas
    Posts
    453
    Thanks
    66
    Thanked 36 Times in 23 Posts
    Downloads
    0
    Uploads
    0

    [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

  12. #10
    Vazguard's Avatar
    Join Date
    Jan 2008
    Location
    Maine, Rochester NY
    Posts
    2,758
    Thanks
    27
    Thanked 213 Times in 192 Posts
    Downloads
    0
    Uploads
    0

    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.



    If someone helps you, please make sure to thank them by hitting the button on his/her post!

    My Blog - Ebay Phones - EQ Author - my Drop

+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts