09-19-2012, 09:10 PM | #106 |
Resident Curmudgeon
Posts: 73,966
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
09-21-2012, 12:03 PM | #107 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
For Kindle Touch (only): https://www.mobileread.com/forums/sho....php?p=2232405
|
Advert | |
|
09-24-2012, 08:07 PM | #108 |
Enthusiast
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
|
Guys, I am the one who initiated this all, but now I have serious problem.
I am asking all of you to help me. My kindle doesn't load. I've done an attempt to code on java the functionality which reads data from /mnt/us/system/com.amazon.ebook.booklet.reader/fontfix.pref with contents like FONT_LETTER=a FONT_SIZES=15,16,17,18,19,20,21,22,23,24,25,26,27, 28,29,30,31,32,33,34 I've done an error - the code in ReaderResources_en_US.java generates null reference exception in static constructor. I understood where the problem is, but unfortunately too late - after I copied buggy jar files to \opt...\lib folder on my device. Now I see on the screen the message that I have to contact Amazon support, etc. I need to somehow load my kindle WITHOUT GUI and copy correct files to \opt folder (or to remove en_US.jar files from there). Question: how can I do this? Please, help. |
09-24-2012, 08:45 PM | #109 |
Enthusiast
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
|
problem solved.
presses shift shift N 100 times - it loaded usbNetwork, and then very quickly in putty launched 3 commands mntroot rw rm -f /opt/amazon/ebook/lib/framework-api_en_US.jar rm -f /opt/amazon/ebook/lib/MobiReader_en_US.jar and it works. but anyway, I would be happy to know what to do in general case - when a patch is crashing. How to load step by step, etc? |
09-24-2012, 09:04 PM | #110 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@ihor: Always run a dev device with SSH enabled/a shell open? Stop/Start the framework manually when testing stuff requiring/tweaking the framework?
|
Advert | |
|
09-24-2012, 09:54 PM | #111 |
Enthusiast
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
|
well, since I fixed my problem now, I would like to tell what I am trying to do.
Here is the code: Spoiler:
when I comment the line readConfig(); in static constructor - it works fine: I see my font sizes with just letter a. when I uncomment the line readConfig();, I see - to my surprise - OLD SET OF FONT SIZES. As if there are no absolutely en_US resource. Question: why does it happen? It seems as if java runtime doesn't want to load this class when it sees a method call in static constructor. but why? I am not a java programmer, so if anyone can help with this - I'll be grateful. |
09-24-2012, 09:55 PM | #112 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Yeah, I keep SSH enabled on my devices. Comes in handy when you muck up the GUI.
|
09-24-2012, 10:21 PM | #113 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
As to the code, there is nothing that looks immediately wrong. My guess is the String.split() method - the Kindles do not support regexes (I have also been bitten by this a few times). Try to use a StringTokenizer instead. And note that Integer.parseInt() may also throw an unchecked exception. Last edited by ixtab; 09-24-2012 at 10:23 PM. |
|
09-25-2012, 03:22 AM | #114 | |
Enthusiast
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
|
Quote:
Spoiler:
so, ixtab, you were right as to splitting strings. I will use StringTokenizer |
|
09-25-2012, 09:06 PM | #115 |
Enthusiast
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
|
I made 2 improvements:
1) there is a a bin file - see attachment. 2) in /mnt/us/fontfix/fontfix.prefs you may set up necessary font sizes and letter that is displayed on top of font parameter selection window. Feel free to install it and give me your comments. I'd be grateful to receive feedback about your Kindle models - to know where it works fine. Thank you. |
09-28-2012, 03:43 PM | #116 |
Feral Underclass
Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
|
09-28-2012, 05:01 PM | #117 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@mr ploppy: What do you mean by that? What happens, exactly? (Greyed UYK link? U00* update failure? Or it installs successfully, but doesn't work?)
|
09-28-2012, 05:43 PM | #118 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Yeah, everybody gets bitten by that sooner or later - imprecise problem descriptions. But I still like the good old "it doesn't work!" best.
Sorry for the sarcasm and for the rather useless post. |
09-28-2012, 06:17 PM | #119 | |
Not an Addict
Posts: 301
Karma: 5678807
Join Date: Mar 2011
Device: The blue one next to the fish.
|
Quote:
|
|
09-29-2012, 06:21 AM | #120 |
Feral Underclass
Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font sizes | paulfiera | Conversion | 2 | 08-14-2012 08:49 AM |
602 How to set a hot key for turning off WIFI | jshzh | PocketBook | 2 | 01-27-2011 05:06 PM |
Font sizes | DaleDe | Sigil | 8 | 03-13-2010 05:52 PM |
Font Sizes | brewt | Amazon Kindle | 9 | 06-12-2009 03:03 PM |
Font Sizes on DX | wallcraft | Amazon Kindle | 1 | 05-06-2009 11:08 PM |