Andrew de Quincey's livejournal

  • 1


When you have a dig around, can you see how you would go about changing the useragent for the browser? I assume it is a Webkit via SWT if if is all Java. It would be good to know how you go about adding javascript bookmarklets - I can't see how to do it, and it would be great to add readability, like squarefree's 'zap' ones.

I am so glad you have this device too. It is a massive value add :)


I've been really enjoying using the kindle!

As for the user agent, there seem to be a couple of files that might let you change that: (not tried it myself yet)

userAgentKindleVersion = "Kindle/3.0 (screen 600x800; rotate)"

# User-agent sent with HTTP header
user_agent.base = Mozilla/4.0 (compatible; Linux 2.6.22) NetFront/3.4 Kindle/2.2

Bookmarklets - I guess it must store them on the filing system somewhere so even if we can't add 'em from the GUI, perhaps we can mess with the thing when mounted as a USB device.

Edited at 2010-09-30 11:19 am (UTC)

Using the shell on Kindle 3

Aloha Andrew,

Can you please tell me if currently there is a known method for accessing and using the shell directly on a Kindle? I've been doing this in the meantime:



Re: Using the shell on Kindle 3

Hmm, I've not seen a java shell GUI for the shell on it, no; hopefully someone will write one now though!


Can you explain how to hack the usbnetwork scripts to disable the firewall? Thank you in advance.

With the latest, there's a file you can create on the USB stick which does that...


You'll need to change the root password though as the default kindle one is unknown AFAIK..

Re: iptables

default kindle root password:

# kpass script for kindle root passwd
echo kindle root passwd:
echo fiona$(echo $serno | md5sum | cut -b 8-10)

./kpass B006A0A004749999

There are 4096 different root passwords. The one that you need to use depends on your kindle serial number.


Thanks for all your hard work - I now have a simple applet running on my Kindle - however I have run into an issue with permissions. Do you know what permissions policy file the Kindle uses?

I have searched the jar files and found a file called '' - but I am not sure what should be placed in here...any ideas?


Re: FilePermission

There's a file on the system partition I was guessing you need to modify (I've not tried it myself though). Have a look at /opt/amazon/ebook/security/external.policy -- it seems a fairly standard java permissions file.

I don't know if there are any other checks beside this: I do know that the kindlet loader will only allow certain classes from the framework to be loaded.

After looking at some official kindlet, they seem to be able to load resource from the jar file as usually done, this features doesn't seem to work with kindlet signed with developper key, have you missed one entry ?

Hmm, those were the only three I could see; enabling verbose debugging (as in my first kindle post) might give a clue as to what is going on...

Argh - Help?

Hi, I'm getting the same error message for Kif now - ie 'don't have permission' - you linked the files but I'm not sure where I need to put them to get Kif running. I need to do this because 3.1 has started blocking the jailbreaks, and the only one that seems to work -'s 'kindle-jailbreak' doesn't want to play nice with your dev keys install. Halp!

Re: Argh - Help?

Have you tried the one from the orignal mobileread thread? I've just tested it here, and it works ok for me with my 0.2 devkeys.

Re: Argh - Help?


Especially when you consider that he is making the source available.

I've been trying to get your ktest running according to your explanation, but I haven't even been able to get the app tho show up on the main screen as you did. Is this the same configuration to yours (used downladed source from ):

[root@kindle root]# ls -la /mnt/us/documents/ktest
drwxr-xr-x 3 root root 8192 Apr 17 23:49 .
drwxr-xr-x 4 root root 8192 Apr 17 23:15 ..
-rwxr-xr-x 1 root root 950 Apr 17 23:29 ktest.jardesc
-rwxr-xr-x 1 root root 162 Apr 17 23:29 ktest.manifest
-rwxr-xr-x 1 root root 615 Apr 17 23:30 makekeystore
-rwxr-xr-x 1 root root 217 Apr 17 23:30 signkindlet
drwxr-xr-x 4 root root 8192 Apr 17 23:30 src

I setup the logging as well, and saw:

PrefixFreeVolume:DebugInfo::PathDataMap.UpdateFilter.accept: rejected: ktest.jardesc
PrefixFreeVolume:DebugInfo::PathDataMap.UpdateFilter.accept: rejected: ktest.manifest
... etc

I also tried putting the files in the home directory without a container, but no success there either.


Sorry, only just spotted this now; did you manage to get it working in the end?

  • 1

Log in