View Single Post
Old 02-22-2012, 05:52 AM   #115
mbspringer
Junior Member
mbspringer began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: none
Wed 22 Feb 2012 05:43:19 AM EST

I am following these procedures:

If anyone wants to know how I patched the home screen's menu system.
I took JBE (Java Bytecode Editor) and opened up "com.
amazon.kindle.home.view.browse.BrowseDisplayContro ller.$BrowseMenuManager"
(found in /opt/amazon/ebook/booklet/home.jar) and under the initMenu() method,
I added the following bytecode after line 25:

.
.
.
Then I made sure all

the gotos and jumps

afterwards were corrected with the new line numbers.
I saved the class and added it into my KindleLauncher.jar and added that jar into /opt/amazon/ebook/lib,
since it's in the lib folder it gets loaded before home.jar.
Then I edited /opt/amazon/ebook/config/reader_plugins.xml and added my reader plugin in it.

===

I opened up the file and found two goto statements one at
line # 13 : goto 17

11 invokespecial com/amazon/agui/swing/MenuDialog/<init>(Ljava/lang/StringV
12 putfield com/amazon/kindle/home/view/browse/BrowseDisplayController$BrowseMenuManager/B Lcom/amazon/agui/swing/MenuDialog;
13 goto 17

and one at line # 109: goto 111

106 invokestatic com/amazon/kindle/home/view/browse/BrowseDisplayController/class$(Ljava/lang/StringLjava/lang/Class;
107 dup
108 putstatic com/amazon/kindle/home/view/browse/BrowseDisplayController/B Ljava/lang/Class;
109 goto 111

I cannot find any 'jumps'. Am I misinterpreting something?
mbspringer is offline   Reply With Quote