Quote:
Originally Posted by JustAMan
eureka,
No problem, man, just let me know if you need some tech help 
BTW, when we discovered that Kindle tool cannot extract homebrew updates (I think this might be related to certificate or whatever... didn't investigate, though), would you mind sharing kbd sources so kbd can be tweaked? 
|
Well, nope. I'd rather provide extraction program:
Code:
import array, os, sys
def dm(s):
arr = array.array('B',s)
for i in xrange(len(arr)):
b = arr[i] ^ 0x7A
arr[i] = (b >> 4 | b << 4) & 0xFF
return arr.tostring()
def extract(binname):
f = open(binname, "rb")
f.seek(254)
open(os.path.splitext(binname)[0] + ".tar.gz", "wb").write(dm(f.read()))
extract(sys.argv[1])
It is Python program. It takes path to update bundle as first argument and produces tarball with bundle's content. I've ran it with Python 2.6, checked on localization bundle and keyboard bundle. (Offset at bundle where tarball starts should be computed, but I'm too lazy to program it, so it's hardcoded

Therefore, extracting could not work with other bundles.)
Quote:
Originally Posted by ixtab
This is easy to implement (en_US.utf8 would go into locale-base), and will keep localization files small. And it works
Also don't forget that space on the device is rather limited. I don't like the idea of having > 1 MB of locale stuff which concerns only the console, per language.
|
I have about 110 MB free on my KT rootfs and don't mind to spend some MB for Russian locale. I think, most of users will install only one localization bundle for their's native language.
But if you are sure that locale definitions affects only console (and no other aspect), then I have no objections for using of en_US.
Even if you are not sure, I have no objections at all. I understand that it will be a lot of work with unlikely noticeable effect. And I can compile and install ru_RU by myself
Also, if you are decided to refactor locale stuff in separate bundle, please don't add it to bundle with JAR that override Amazon interface. Make it really separate bundle. I understand that installing that JAR is safe but it should be optional. What if Amazon will update UI so that JAR should be uninstalled? Then I'll (as user) apply bundle for JAR uninstalling, but, oops, it will be uninstalled with locale stuff. Symlinks will be broken