View Single Post
Old 05-20-2014, 11:48 PM   #88
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,255
Karma: 171291590
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by doctorbook View Post
I tried the patch for version 3.3.0 but it seems that does not work.
kpg.exe does not create the file koboroot.tgz
My apologies for not testing the patch properly. The address is correct but the string now has a different format and the replace_string function does not work with it. I suspect a unicode replace would work however the string starts with some extra information and terminates with a \x00\x00 pair. This would make keeping the string length the same rather important.

A quick look at the 3.3.1 libnickel file suggests the 39 at C4B294 is the string length (0x39 or 57 decimal), the 10 at C4B29C is the character width (0x10 or 16) and the 114 bytes from C4B2A0 to C4B311 are the 57 characters in the string while the 2 \x00 characters at C4B312 are the terminating null character.

The easiest way to make the change might be just to do a replace byte on the %4 string.

Something like:
3.3.1
replace_bytes = C4B308, 25 00 34 00, 39 00 39 00

3.3.0
replace_bytes = C482E8, 25 00 34 00, 39 00 39 00

Which keeps the length of the string the same but changes %4 to 99 which should make the wireless update dysfunctional. And we can hope no other chunk of code references that substring.


Regards,
David

Last edited by DNSB; 05-21-2014 at 12:15 AM. Reason: Add 3.3.0 suggested change
DNSB is online now   Reply With Quote