View Single Post
Old 09-21-2012, 04:06 PM   #6
bhaak
Groupie
bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.
 
bhaak's Avatar
 
Posts: 162
Karma: 164959
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
So, I finally had time to do something with this again.

For a minimal booklet it's actually quite simple. You just need to create a class that extends AbstractBooklet and adding Main-Class: your.package.path.and.BookletClass to META-INF/MANIFEST.MF and that gives you a simple empty window when started.

I hijacked the booklet com.lab126.booklet.testbooklet that should be contained in /opt/amazon/ebook/booklet/testBook.jar but this jar is missing from a non-debug KT. So I didn't even have to overwrite any original files. I used a symlink for testBook.jar, so I didn't had to always do a mntroot although I still had to restart cvm for every update.

Code:
mntroot rw
ln -s /mnt/us/testBook.jar /opt/amazon/ebook/booklet/testBook.jar
mntroot ro
lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.testbooklet
There are many methods that you can implement, but so far I've only seen calls to the constructor and create(BookletContext bookletContext) when starting up for the first time, calls to start(URI contentURI) for every start and stop() when pressing the home button.

Here's a link to the class' source code. I'll also attach the jar.
https://gist.github.com/3762793

Wiring that booklet up to the store button is easy enough after this. Just changing in /usr/share/webkit-1.0/pillow/javascripts/search_bar.js the STORE_ID constant to app://com.lab126.booklet.testbooklet and voilą.

Now I only need to extend that booklet to launch HackedUpReader. Should not be too hard.
Attached Files
File Type: zip KindleCustomBooklet.zip (2.1 KB, 53 views)

Last edited by bhaak; 10-04-2012 at 07:47 AM. Reason: typo
bhaak is offline   Reply With Quote