Thread: K5 JBPatch
View Single Post
Old 04-16-2012, 06:14 AM   #2
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
So I have come up with something that I'm pretty excited about.

Note that this is NOT ready for prime time yet (consider it alpha at most), so installation is manual. I have only tested this on Kindle Touch 5.1.0 (because that's the only device I have around).

For the time being, if you have a different version or model, you won't see any effect, so don't even bother to install it. But if you are on 5.1.0 and are curious, then:
  1. Rename the attached kpatcher.zip to kpatcher.jar and copy it to /opt/amazon/ebook/lib/
  2. Modify /opt/amazon/ebook/bin/init.xargs: insert the line "-istart kpatcher.jar" above the "-istart portability-impl.jar" (i.e., kpatcher.jar should be the first "istart" line).
  3. reboot, or simply killall cvm

Then, go to Menu > Settings, Menu > Legal and be prepared for a surprise

There is also Menu > Settings, Menu > Device Info to check out. And finally, try to enable TTS on a non-english (or TTS-disabled) book (and then go back to device info). Oh, and there's /tmp/kpatcher.log as well.

This is somewhat of a logical follow-up to this older post, but it is MUCH more powerful. In fact, with this approach, we can modify every single class in the framework, without having to overwrite Amazon's files or distributing copyrighted binary files. Yeeehaaa!

Note: As said, the "demo" works on KT 5.1.0 only. However, the general approach is suitable for all models (in fact, maybe even more for older models than for the Touch, because on older models the entire UI is in Java, which is not the case on KT).

Update: attachment removed. See first post for the newest version.

Last edited by ixtab; 04-29-2012 at 06:48 PM.
ixtab is offline   Reply With Quote