Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2025, 09:14 AM   #1
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Lightbulb About the capabilities of modding a jailbroken Kindle

I just heard of the new jailbreak method.
I'm not particularly interested in KOReader or tools that completely change the functionality, but I want slight modifications like:
- overwriting the translate API to use Google translate or DeepL
- having the "wikipedia" mini window show custom results like from ChatGPT
All modifications are to be made in the built-in reader.
I want to know if these modifications are possible, even if no one's done it yet, I'll try to do it myself.

Any information would be appreciated.
Mino101 is offline   Reply With Quote
Old 01-08-2025, 10:21 AM   #2
thejist92
Junior Member
thejist92 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2025
Device: Kindle Scribe
Thanks for posting this - was about to post something similar. I have a Scribe. I've been perusing this forum and some of the recent Winterbreak posts, and I still can't really determine where to start if I want to develop something.

In particular, on my Scribe, when I create a new notebook, it's titled YYYY-MM-DD + "title". I'd like to create a button that enters the current date in that format into the text field.

It's just little QoL things to speed up some things here and there.
thejist92 is offline   Reply With Quote
Advert
Old 01-09-2025, 02:34 PM   #3
BionicGecko
Evangelist
BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.
 
BionicGecko's Avatar
 
Posts: 478
Karma: 5555555
Join Date: Aug 2016
Location: Czech Republic
Device: Voyage, Oasis, Scribe, Colorsoft, Libra Colour
I asked a similar question here a while back; you can find the thread here. Of particular interest is this answer by HackerDude (who wrote WinterBreak).

In a nutshell, it is very hard to modify the Kindle native UI, as the source code is not available and the binaries are highly protected against reverse-engineering.
BionicGecko is offline   Reply With Quote
Old 01-09-2025, 03:03 PM   #4
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Quote:
Originally Posted by BionicGecko View Post
In a nutshell, it is very hard to modify the Kindle native UI, as the source code is not available and the binaries are highly protected against reverse-engineering.
Thanks for the info, I'm still willing to tackle the challenge,
so you have put me on the right track.

Quote:
Originally Posted by HackerDude
Whilst it could be theoretically possible to modify, say, the home screen code, unfortunately, since it now uses WASM it is extremely difficult to reverse engineer.
That's the kind of information I wanted to know. The fact that the UI uses WASM is indeed a hurdle, even though I am sure it's able to be cracked with some work. There is WASM tools that should make the task possible. For simple QoL improvements it should be feasable.

Though I have a question in mind as I'm new to the universe of jailbreaking, if I was able to successfully mod the code, what are steps to apply it to the kindle, just replace the file and reboot ?

Can I also be pointed to which binaries I need to look into ? (Please attach if possible, I didn't jailbreak my kindle yet)
Mino101 is offline   Reply With Quote
Old 01-10-2025, 04:02 AM   #5
BionicGecko
Evangelist
BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.
 
BionicGecko's Avatar
 
Posts: 478
Karma: 5555555
Join Date: Aug 2016
Location: Czech Republic
Device: Voyage, Oasis, Scribe, Colorsoft, Libra Colour
The MobileRead forums are great for end-users but if you're interested in actively developing for the Kindle I would strongly suggest you join the Kindle Modding Community on Discord.

All the devs hang out there and you will get answers to your development-related questions much quicker than here on the forums. There is also definitely some interest in hacking the official GUI amongst some of the other users there.
BionicGecko is offline   Reply With Quote
Advert
Old 01-10-2025, 11:28 AM   #6
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Quote:
Originally Posted by BionicGecko View Post
The MobileRead forums are great for end-users but if you're interested in actively developing for the Kindle I would strongly suggest you join the Kindle Modding Community on Discord.

All the devs hang out there and you will get answers to your development-related questions much quicker than here on the forums. There is also definitely some interest in hacking the official GUI amongst some of the other users there.
Alright thanks
Mino101 is offline   Reply With Quote
Old 01-11-2025, 07:03 PM   #7
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Sharing my progress:

Mino101 is offline   Reply With Quote
Old 01-11-2025, 07:43 PM   #8
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 333332
Join Date: Oct 2011
Device: KINDLE 3
Quote:
Originally Posted by Mino101 View Post
Sharing my progress:

Can you modify this page to become an AI assistant?
Inkwell - Kindle AI Assistant


-
cdhigh is offline   Reply With Quote
Old 01-12-2025, 01:56 PM   #9
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Quote:
Originally Posted by cdhigh View Post
Can you modify this page to become an AI assistant?
Inkwell - Kindle AI Assistant


-
That's what I intend to do. I am planning to redirect the call to a custom server, where I wil call the AI APIs.
Do you think I can renounce the server and call the API directly from within the kindle using Inkwell ? I think to make it possible, we should implement a local server in Inkwell that's always listening, is it possible ?
Mino101 is offline   Reply With Quote
Old 01-12-2025, 02:20 PM   #10
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 333332
Join Date: Oct 2011
Device: KINDLE 3
Quote:
Originally Posted by Mino101 View Post
That's what I intend to do. I am planning to redirect the call to a custom server, where I wil call the AI APIs.
Do you think I can renounce the server and call the API directly from within the kindle using Inkwell ? I think to make it possible, we should implement a local server in Inkwell that's always listening, is it possible ?
Given the Kindle's limited CPU and RAM, writing comprehensive Java code directly is recommended over calling Python scripts.
If you can successfully hack the Wikipedia page to customize its GUI (at least with an input textbox and an output textbox and a pop-up keyboard), implementing simple Java functions to connect to an AI server should be relatively straightforward.
The SimpleAiProvider class in my Inkwell project already wrap the APIs of several AI services into a unified interface, making the Java conversion process even easier.
Or writing only an OpenAI API is enough.


-
cdhigh is offline   Reply With Quote
Old 01-13-2025, 04:22 AM   #11
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Quote:
Originally Posted by cdhigh View Post
Given the Kindle's limited CPU and RAM, writing comprehensive Java code directly is recommended over calling Python scripts.
If you can successfully hack the Wikipedia page to customize its GUI (at least with an input textbox and an output textbox and a pop-up keyboard), implementing simple Java functions to connect to an AI server should be relatively straightforward.
The SimpleAiProvider class in my Inkwell project already wrap the APIs of several AI services into a unified interface, making the Java conversion process even easier.
Or writing only an OpenAI API is enough.


-
I want to refrain from embedding the AI code in the patched jars, because the APIs change frequently and it wouldn't be convenient to update the patches in the kindle everytime, that's why I want to redirect the calls to a custom server and do all the work there. It would be much easier to maintain and more customizable.
Mino101 is offline   Reply With Quote
Old 01-13-2025, 04:27 AM   #12
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
I'm having some problems with patching the jars, I created a public static function that returns a constant and included it in the jar, and patched the jar to call when wikipedia mini window is shown, but the window gets stuck in "Searching Wikipedia..." even though I didn't change anything. Maybe the classloader is excluding the custom classes I have written because they aren't in the "com.amazon" package but it doesn't make a lot of sense. It's driving me crazy
Mino101 is offline   Reply With Quote
Old 01-13-2025, 02:56 PM   #13
Mino101
Member
Mino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheeseMino101 can extract oil from cheese
 
Posts: 15
Karma: 1028
Join Date: Jan 2025
Device: Kindle Basic 11th Gen
Problem solved:
The problem was that I accidentally set the Java version to 19, while Kindle works with Java 1.8, so it silently ignored the classes I've written

Update:

WIkipedia URL is now configurable via a file
Mino101 is offline   Reply With Quote
Old 01-13-2025, 03:44 PM   #14
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,068
Karma: 12000044
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
@Mino101Could you maybe look into why the edited hardcoded values for margins (that are inside " "/opt/amazon/ebook/lib/ReaderSDK-impl-*.jar" files) aren't being used (even after a OS reboot) by the reader / renderer software since firmware 5.10.x? To figure what and where overrides them.

Some links as a starting point:

https://www.mobileread.com/forums/sh...postcount=1795

https://www.mobileread.com/forums/sh....php?p=2527653
shamanNS is offline   Reply With Quote
Old 01-14-2025, 06:19 AM   #15
plug313
Junior Member
plug313 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2025
Device: Kindle PW11 Signature
thank you for your enthusiasm in developing stuff like that for the kindle. I think what we need at this point is a true CFW with added features that truly make the jailbreak worth it, like a lot of other devices have. I understand that it's difficult but from my experience with hacked consoles developers can do incredible things!

my mind was blown when I installed KOReader and saw that you can't just browse and read your actual Kindle books on it... the app is awesome don't get me wrong but I thought that would be the most basic feature
plug313 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools Kindle Modding discord info Pumpkinpie132 Kindle Developer's Corner 0 10-15-2023 06:34 PM
Kindle Touch hardware modding leonard.pitzu Kindle Developer's Corner 28 10-03-2012 06:31 AM
EB600/italica firmware modding/hacking capabilities? Reset Netronix 6 06-10-2011 06:42 PM
Kindle 3 GPS capabilities? jphphotography Kindle Developer's Corner 9 12-14-2010 09:30 AM
Modding My Kindle DiggerG Amazon Kindle 15 11-01-2009 12:01 PM


All times are GMT -4. The time now is 10:45 AM.


MobileRead.com is a privately owned, operated and funded community.