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 08-29-2012, 12:45 PM   #1
chris_c
Member Retired
chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.
 
Posts: 38
Karma: 134098
Join Date: Aug 2012
Device: kindle touch
libkb.so a library worth hacking

libkb.so on the kindle is very probably an on screen keyboard

it calls a number of gtk functions which indicates it could well indeed be a keyboard

I've linked to it and attempted to call some of the functions

kb_globals_init

might work but I don't know if it returns anything or even expects a function....

kb_main

causes a seg fault which is no surprise !

any clues I've gained are via
arm-linux-gnueabi-nm -D -n libkb.so


anyone got any ideas on this library?
chris_c is offline   Reply With Quote
Old 08-29-2012, 01:02 PM   #2
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,187
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
objdump -d
Your host system objdump may be able to do that, otherwise use the one in the cross-compile install.

I often have a binutils built with the config option target=all so am not sure what may be installed on your system.
knc1 is offline   Reply With Quote
Old 08-29-2012, 05:11 PM   #3
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 710
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by chris_c View Post
libkb.so on the kindle is very probably an on screen keyboard
I'm kindly asking you to dump your future findings (if any) not only in this thread, but also in wiki: Kindle_Touch_Hacking#On-screen_keyboard
eureka is offline   Reply With Quote
Old 08-29-2012, 05:27 PM   #4
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
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
I'm sure this is a stupid suggestion but...

Do you have any experience with Qt. Might not be a terrible option if it's in your skills price range. A lot of underlying support for it's bits and bats in the kindle already.

I have a k5 in the pipeline and shunting a microkernel into memory running parallel with extra enabled kernel level features may also be an option in the medium term.

Whilst this isn't about your OSK lib - it is about alternate sources of low hanging fruit.

Throw rocks now, I'm done.
twobob is offline   Reply With Quote
Old 08-29-2012, 05:32 PM   #5
chris_c
Member Retired
chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.
 
Posts: 38
Karma: 134098
Join Date: Aug 2012
Device: kindle touch
ya not gonna love me for this, but I much prefer gtk ! ....
chris_c is offline   Reply With Quote
Old 08-29-2012, 06:50 PM   #6
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
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
no - that's fine. if gtk is your bent, sobeit.
twobob is offline   Reply With Quote
Old 08-29-2012, 10:58 PM   #7
chris_c
Member Retired
chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.
 
Posts: 38
Karma: 134098
Join Date: Aug 2012
Device: kindle touch
turns out libkbd isn't really needed there's any easier way
http://www.mobileread.com/forums/sho...8&postcount=28

here's it running in a homebrew gtk app....
http://www.youtube.com/watch?v=LMr1VAmgThY

gt-key lol!

I'll write a mini tutorial once I get some time to code something a little less sucky
chris_c is offline   Reply With Quote
Old 08-29-2012, 11:07 PM   #8
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by chris_c View Post
turns out libkbd isn't really needed there's any easier way
http://www.mobileread.com/forums/sho...8&postcount=28

here's it running in a homebrew gtk app....
http://www.youtube.com/watch?v=LMr1VAmgThY

gt-key lol!

I'll write a mini tutorial once I get some time to code something a little less sucky
Thanks for pointing our eureka's post. Really. I do not know HOW I could have missed it the first time. I gave him some karma for that one. Good news! And some karma for you too for bringing it to my attention.

Last edited by geekmaster; 08-29-2012 at 11:37 PM.
geekmaster is offline   Reply With Quote
Old 08-29-2012, 11:10 PM   #9
chris_c
Member Retired
chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.
 
Posts: 38
Karma: 134098
Join Date: Aug 2012
Device: kindle touch
just goes to show, its *is* worth digging through the wiki!! :-o
chris_c is offline   Reply With Quote
Old 08-30-2012, 04:00 AM   #10
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,187
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by chris_c View Post
just goes to show, its *is* worth digging through the wiki!! :-o
Add it to the index page(s) if it has any value.
knc1 is offline   Reply With Quote
Old 08-30-2012, 08:04 AM   #11
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 710
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by chris_c View Post
turns out libkbd isn't really needed there's any easier way
http://www.mobileread.com/forums/sho...8&postcount=28
So, now /usr/lib/liblipc.so is the library worth hacking?
eureka is offline   Reply With Quote
Old 08-30-2012, 08:52 AM   #12
chris_c
Member Retired
chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.chris_c can bend spoons with a thought.
 
Posts: 38
Karma: 134098
Join Date: Aug 2012
Device: kindle touch
Quote:
Originally Posted by knc1
Quote:
Originally Posted by chris_c

I'll write a mini tutorial once I get some time to code something a little less sucky.
Please stop including disparaging remarks in your posts.

The expected norm on this site is that of public courtesy.

No amount of similes is a substitute for using common courtesy.

Some of our members are pre-teens, they don't need the examples of bad behavior.
Not even from someone who might be a pre-teenager them self.
I'm not sure how describing my own hack potentially misusing someones great discovery as sucky is disparaging.
I frequently make rough code doodles that suck for a variety of reasons, I consider describing something that is rough as something that sucks language that is fine even for pre-teens from whom I frequently hear using far worse.

Please refrain from sending me private messages in future.


@eureka - possibly! How did you figure out the lipc command for the keyboard, I'd love to find out if there's one for turning the pages in the reader...
Sorry if you thought I might be suggesting your discovery was in anyway poor, I thought it obvious I was referring to my abuse of it...
chris_c is offline   Reply With Quote
Old 08-30-2012, 09:34 AM   #13
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
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
Actually PM's are exactly the type of place for that stuff.

But there you go.

Extrapolating from

Quote:
LIPC
LIPC is essentially an inter-process communication tool. Processes can start other apps, send events to them, register listeners for events, etc. Internally, it is (seems to be) built on dbus. There are LIPC bindings for the higher-level layers as well, which for example enables a Webkit application (written in HTML+Javascript) to communicate with a Java service, or a native application, etc. Complex data structures are encoded as JSON.
[edit] Application registry
In fact, LIPC is an essential underpinning of the system. There is an SQLite database located at /var/local/appreg.db containing a lot of information about how the "wiring" is performed. (This DB seems to be the "union" of the files /var/local/reg/ServerConfig.db and /var/local/reg/prereg.db).
Below are excerpts from a dump of it. While not everything is fully understood yet, there are a few "educated guesses" added as comments:
and

Quote:
Starting arbitrary applications

lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.settings?diagnosticMode=\;411 -- start settings activity. Because of the appended parameter, this goes directly to the 411 diagnostic screen (device info)
taken from here

one could reasonably assume you are looking for an appended ie command;pageturn , quite possibly obfuscated away somewhere in there.

PS. for the record it it far more polite to say "Dont PM me again" in a PM rather than for all and sundry to see... and the quote is -roughly- from the forum rules if I'm not mistaken (again)

Hope that helps, possibly won't : )
twobob is offline   Reply With Quote
Old 08-30-2012, 03:06 PM   #14
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 710
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by chris_c View Post
@eureka - possibly! How did you figure out the lipc command for the keyboard, I'd love to find out if there's one for turning the pages in the reader...
Sorry if you thought I might be suggesting your discovery was in anyway poor, I thought it obvious I was referring to my abuse of it...
Don't worry, I didn't put any negative meanings (or sub-meanings) into my words. To be clear, I just wanted to point to underlying library, which is lipc-set-prop linked with -- in hope, that despite lost interest in libkb.so, you still has original intention to dig into [any significant] library API and, maybe, document it.

Precise lipc-set-prop command was found with: examining output of strings for relevant executables and libaries, examining of lipc-probe output, looking into logs after interaction with keyboard (showlog with LIPC property logLevel of relevant LIPC publisher set to debug9). Full list of sub-layouts and flag names were found in decompiled code of Java UI (i.e. framework code).
eureka 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
PRS-T2 Hacking the T2 Nate the great Sony Reader Dev Corner 224 07-10-2014 12:12 PM
Calibre library android app. Is it worth it? clittle Calibre 12 01-02-2012 07:38 PM
When you are locked out of your $1000 worth Amazon library. Nexutix General Discussions 124 12-05-2011 06:04 AM
Chicago Public Library Figured Out How to Prevent Hacking! (Misleading) Sydney's Mom Amazon Kindle 8 06-13-2010 03:54 PM


All times are GMT -4. The time now is 04:24 AM.


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