Dec
29
2009

Change PagePool of HTC Diamond & HTC Raphael Roms by HEX Editing

by Ameet

MiniSD 128MB It usually happens that non developer or users who try different custom Roms are bound to stick to the Pagepool offered by the chef. So in-order to not goo too deep into technicality and simply change the Pagepool of you Diamond or Raphael’s Roms, it is suggested that you follow the below Steps properly.

Things you need:

  1. Hex Editor

Get the OS.nb file:

  1. If you have already the OS.nb file the start changing the pagepool else open NBHUtil.exe.
  2. Go to Extract NBH and select the correct NBH and press GO
  3. Now extract the “OS” from the right menu.
  4. Open the extracted OS.nb in the Hex Editor and move to next step.

To change PP of Diamond ROMs:

  1. Go to offset 0x37AD68 to find 03 25 A0 E3 03 15 A0 E3 00 20 83 E5 hex string (If this string is not found at the 37AD68 offset, then search for this hex string) Replace the string with 20 83 E5 with 00 A0 E1

    This will make the string NOP (No Operation) meaning, the ROM wont set the PP to default 12MB but will allow the change in below offset

  2. Now go to offset 0x3A7F94 to find E0 E2 04 80 00 00 60 00 hex string again, if this hex string not found at the 3A7F94 offset, then search for the hex string. Just as a hint, this string is after the second NKKD8 (search for text string) 60 is the size of PP that you can now modify to suit your liking e.g. I made mine 00 to get 0MB PP. Or change it to 80 to get 8MB PP, so forth and so on. With changing the first hex string and making the Kernel NOP, you can also use the tool to change PagePool and it does work.
    Also to make it a permanent change you can hex edit the first mentioned string in S000 of nk.exe module in XIP and then modify the PP with the program or by hex on OS.nb

To change PP of Raphael ROMs:

Search for hex string: 03 15 A0 03 02 15 A0 13 00 10 82 E5 and change the last 4 bytes to 03 15 A0 03 02 15 A0 13 00 00 A0 E1 then the normal PP Changer tool will work This is the 2nd string, ignore the 1st one coz that’s in ULDR

Previous post:

Next post:


Copyright ©2009, TechParaiso.com, Technology Paradise. Based on Thesis Theme. Designed by TechParaiso.
Articles here should not be reproduced anywhere else without Permission.