Patch to move the browser cache of Nokia s60v5 from C to E and increase its size up to 30 mb

A big problem of the Nokia devices is the management of the browser cache. Every Nokia device can use only few mb for the cache that is located in the unit C and this cause two problems:

  1. Having little space available for the cache every time you visit a site this will be fully charged in the phone memory and then browsing will be slower
  2. Since to host the browser cache is the small unit C we will have less and less space on it

The file that manages the cache is the file 101F8557.txt located in the  ROM Z of Nokia devices and this is its content:

cenrep
version 1
[defaultmeta]
 0
[platsec]

[Main]
0x1 int 1 0 cap_rd=alwayspass cap_wr=alwaysfail
0x2 int 4096000 0 cap_rd=alwayspass cap_wr=alwaysfail
0x3 string "C:\\system\\cache" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x4 string "c:\\system\\cache\\op" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x5 int 300000 0 cap_rd=alwayspass cap_wr=alwaysfail
0x6 string "http://host53.nokia-boston.com/Cache_OpCache/Op_Menu.xhtml" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x7 int 1 0 cap_rd=alwayspass cap_wr=alwaysfail
0x8 string "c:\\system\\cache\\vss" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x9 int 3000000 0 cap_rd=alwayspass cap_wr=alwaysfail
0xA string "http://www.vodafone.com;http://172.19.188.193/browser;http://testsuite.nokia-boston.com" 0 cap_rd=alwayspass cap_wr=alwaysfail
0xB int 1 0 cap_rd=alwayspass cap_wr=alwaysfail
0xC int 0 0 cap_rd=alwayspass cap_wr=alwaysfail
0xD int 6291456 0 cap_rd=alwayspass cap_wr=alwaysfail
0xE int 30000000 0 cap_rd=alwayspass cap_wr=alwaysfail
0xF string "10008D39;1;3072;C;10282822;1;1024;C;102829A0;1;0;C;" 0 cap_rd=alwayspass cap_wr=alwaysfail

Correctly editing this file and moving it in the path c:\private\10202be9\ we can edit the cache size and its location; we have to remeber that the private folder become accessible only if the phone is hacked.

The string 0x2 indicates the total size in bytes, the dafault value is è "4096000", that is 4 mb(4096000/10240000) considering that a mb is 10240000 bytes.

The strings 0x3, 0x4 e 0x8 indicate the path of where the cache is saved.

The string 0xF indicates the cache size and the unit of:

  • 10008d39: Browser default
  • 10282822: Widgets
  • 102829a0: SecureWidgetInstaller

with this syntax: UID;Enabled(1) or Disabled(0); Size in KB; Unit;

for example the string 0xF of the original file:

"10008D39;1;3072;C;10282822;1;1024;C;102829A0;1;0;C;"

tell us that the default browser cache is 3 mb and that it is saved in C, the widgets cache is 1 mb and is saved in C and that the SecureWidgetInstaller cache is 0 mb and it is saved in C;

We have to note that the total sum of these three values have to be equal to the total cache that is indicated in the string 0x2.

So correctly editing this file we can change the cache size and location, if for example we want increase the cache size up to 30 mb and we want move it in the unit E then we have to edit the file 101F8557.txt in this way:

cenrep
version 1
[defaultmeta]
 0
[platsec]

[Main]
0x1 int 1 0 cap_rd=alwayspass cap_wr=alwaysfail
0x2 int 30720000 0 cap_rd=alwayspass cap_wr=alwaysfail
0x3 string "E:\\system\\cache" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x4 string "e:\\system\\cache\\op" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x5 int 300000 0 cap_rd=alwayspass cap_wr=alwaysfail
0x6 string "http://host53.nokia-boston.com/Cache_OpCache/Op_Menu.xhtml" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x7 int 1 0 cap_rd=alwayspass cap_wr=alwaysfail
0x8 string "e:\\system\\cache\\vss" 0 cap_rd=alwayspass cap_wr=alwaysfail
0x9 int 3000000 0 cap_rd=alwayspass cap_wr=alwaysfail
0xA string "http://www.vodafone.com;http://172.19.188.193/browser;http://testsuite.nokia-boston.com" 0 cap_rd=alwayspass cap_wr=alwaysfail
0xB int 1 0 cap_rd=alwayspass cap_wr=alwaysfail
0xC int 0 0 cap_rd=alwayspass cap_wr=alwaysfail
0xD int 6291456 0 cap_rd=alwayspass cap_wr=alwaysfail
0xE int 30000000 0 cap_rd=alwayspass cap_wr=alwaysfail
0xF string "10008D39;1;28672;E;10282822;1;1024;E;102829A0;1;1024;E;" 0 cap_rd=alwayspass cap_wr=alwaysfail

In conclusion we can solve the two problems initially exposed simply editing the file that manage the cache or you can simply install the patch here attached, the patch will move the internet cache from C to E and will increase its size up to 30 mb.

The patch will work on any s60v5 device.

The patch is unsigned, to install the patch the phone have to be hacked and with the installserver patch enabled or you have to certificate the patch before installing, once the patch has been installed you only have to restart the phone.

AttachmentSize
internet_cache_hack_s60v5.sis1.05 KB
Section: 

Comments

3 comments

grazie, lo cercavo da tanto

va bene su N96? io l'ho fatto sul mio N96 ma il file originale non era cosi..

le stringhe arrivavano fino a

0xA ... ora installando il sis il file originale è staro rimpiazzato da quello.

va bene o devo rimettere il file originale?

Il Nokia N96 è un s60v3 e non ha i widget quindi la struttura del file è diversa per questo motivo non posso assicurarti che questo file funzioni ma puoi constatarne tu stesso il funzionamento; Vedi se usando il browser la cache viene archiviata sulla memoria C o sulla memoria E.

Add new comment