11-04-2012, 04:00 PM | #901 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
|
|
11-06-2012, 03:13 AM | #902 |
Junior Member
Posts: 7
Karma: 11342
Join Date: Oct 2012
Device: Kindle Touch
|
I've just updated https://wiki.mobileread.com/wiki/Kind...on.27s_classes
to put links to javat (written by member wl.) and JD-GUI (http://java.decompiler.free.fr/) |
Advert | |
|
11-06-2012, 06:20 AM | #903 |
Junior Member
Posts: 7
Karma: 11342
Join Date: Oct 2012
Device: Kindle Touch
|
tried & failed
In order to control zooming ratio while reading PDF, I tried to patch here and there. So far all of them failed . At least I learned something about JVM bytecode and Java class file .
Using ht under Linux, I was trying to change op-codes directly in Java class file (ht can (dis)assemble bytecode of a Java class). test #1: I patched function mousePressed(MouseEvent a) in zb.class in ReaderSDK-impl.jar change "40" into "20" (2 occurrences) Code:
public class ContentPanel extends ReaderUIContext { public void mousePressed(MouseEvent a) { //... int x = a.getX(); int y = a.getY(); switch (a.getButton()) { case 1: //first finger case 2: //second finger case 8: //this.E += 40; this.doZoom(...); case 7: //this.E -= 40; this.doZoom(...); case 9: //case 3,4,5,6: //do nothing } //... } } test #2: I patched function D(int a, int a, boolean a, boolean a, boolean a, boolean a) in zb.class in ReaderSDK-impl.jar change 99 (ifeq) into 9a (ifne) "if(arg4)" become "if(!arg4)" Code:
if(arg4) { //* 84 155:iload 4 //* 85 157:ifeq 188 if(arg5) { //* 86 160:iload 5 //* 87 162:ifeq 178 j++; } else { j--; } } test #3: in the same function as the last test change "j++" into "j += 0.5" change "j--" into "j -= 0.5" result: no book listed in home screen! test #4: in the same function as the last test change "j++" into "j += 2" change "j--" into "j -= 2" result: no book listed in home screen! |
11-06-2012, 06:25 AM | #904 |
Junior Member
Posts: 7
Karma: 11342
Join Date: Oct 2012
Device: Kindle Touch
|
The best think is that: accidentally I found out that Kindle Touch support zoom-to-column mode (by double tap), so I can read small paragraph without having to modify PDF files or converting them to another format.
|
11-06-2012, 07:57 AM | #905 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
|
|
Advert | |
|
11-18-2012, 07:11 AM | #906 |
Enthusiast
Posts: 29
Karma: 75502
Join Date: Nov 2012
Device: Kindel Touch
|
Hi, ixtab
I found a bug in JBpatch 2.41. In prograssBar default menu which enter from home menu, there is not Chapter option. So when you reboot kindle, Chapter option which you select in reader will change to Prograss. |
11-18-2012, 09:45 AM | #907 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
This is on purpose. Not all books have chapters...
|
11-18-2012, 04:07 PM | #908 |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Would it be hard to intercept the "move to next/previous chapter" gesture and change it to "move to next/prev highlighted text/bookmark/note" or integrate it (move to next/prev chapter/highlight/bookmark/note whichever comes first)?
|
11-18-2012, 04:21 PM | #909 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
The problem is not so much in *changing* the action performed when the event is detected, but in *finding* the place of the code where this is happening. I'm currently very short on time, so I can't look into it, sorry. But feel free to give it a shot, i.e., try to find exactly where this stuff is handled. |
|
11-18-2012, 08:23 PM | #910 |
Connoisseur
Posts: 69
Karma: 36148
Join Date: Nov 2012
Device: Kindle Paperwhite
|
Update Error : 3
Hello community,
I have a little problem. When i take the update_jbpatch_2.4.1_install.bin file in mnt/us/ per xterm commands and then look in menu->setting->menu the 'Update your kindle' is greyed out. If i restart my device then comes 'Update Error : 3' with some other stuff like 'press [home] to return to home'. I reinstalled the jailbreak already but nothings is changed and I never got an error before this update. I have Kindle Touch version 5.1.2. I hope someone can tell what I did wrong or how can i run it. Best regards Bagerfahrer Last edited by Bagerfahrer; 11-18-2012 at 08:29 PM. |
11-18-2012, 08:27 PM | #911 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
you can use
Quote:
I'll add link LINK: https://www.mobileread.com/forums/sho...30&postcount=7 Spoiler:
top option |
|
11-18-2012, 08:45 PM | #912 | |
Connoisseur
Posts: 69
Karma: 36148
Join Date: Nov 2012
Device: Kindle Paperwhite
|
Quote:
Best regards Bagerfahrer |
|
11-18-2012, 09:03 PM | #913 |
Connoisseur
Posts: 69
Karma: 36148
Join Date: Nov 2012
Device: Kindle Paperwhite
|
xterm keyboard disappeard
hello again,
After this nice update I can not see the xterm keyboard if i entered it. Hat could I do to appear the keyboard from the xterm? EDIT: I deactivated all certificates of JBPatch and see the keyboard is back. Best regards Bagerfahrer Last edited by Bagerfahrer; 11-18-2012 at 09:08 PM. |
11-19-2012, 04:38 AM | #914 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
-----
|
11-19-2012, 05:13 AM | #915 |
Enthusiast
Posts: 29
Karma: 75502
Join Date: Nov 2012
Device: Kindel Touch
|
Chinese(China) language pack
Usage:
1. Use winrar unzip the attached file. 2. Connect kindle with USB mode. 3. Copy all TXT files unziped to directory \opt\jbpatch. 4. Reboot your kindle. |