Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2020, 12:51 PM   #496
lrpirlet
Connoisseur
lrpirlet began at the beginning.
 
Posts: 96
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
Quote:
Originally Posted by NiLuJe View Post
@MrTick: Kudos! Can you send a PR to my GitHub fork?
Hi NiLuJe

First of all, thanks for keeping the sources current.

Now, for the record, I updated my GitHub copy with your last 2 commits and downloaded the updated files to my kindle...

ooops, LibrarianSync was hanging...

Kual log read
Code:
env: can't execute 'python2.7
': No such file or directory
Then I realized that I was working from my windows computer and that GIT was saving the files using CRLF instead of LF...

Solution was to change CRLF to LF (notepad+ does that at a mouse click)...

Then when I went to commit the change, GIT told me that the file would be saved using CRLF...

Solution is to issue
Code:
git config --global core.autocrlf input
Quote:
This setup should leave you with CRLF endings in Windows checkouts, but LF endings on macOS and Linux systems and in the repository.
the above quoted from the Pro Git book chapter 8, paragraph core.autocrlf

Of course, I should have downloaded a zip from your GitHub repository and, via 7zip, move the needed files to the kindle...

Last edited by lrpirlet; 11-04-2020 at 12:57 PM.
lrpirlet is offline   Reply With Quote
Old 11-04-2020, 04:43 PM   #497
MrTick
Enhtusiast
MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.
 
MrTick's Avatar
 
Posts: 53
Karma: 2340139
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
Quote:
Originally Posted by lrpirlet View Post
Out of curiosity, to learn some, what did you monitor with tcpdump that leaded you to check the /tmp/session_token ?
I've simply hooked a precompiled arm binary taken (as far as I remember) from here and used it to capture whole traffic on the loopback interface:
Code:
tcpdump -i lo -w /mnt/us/dump.pcap
Then I've done sync few times, created bunch of collections both on Amazon and Kindle and that's it
I'd rather not share my .pcap file, but you should be able to easy reproduce this situation and most of POST requests to 9101 port contains the AuthToken.

I was fortunate enough to find it in the /tmp folder (that was indeed a pure luck).

And as for
Quote:
Originally Posted by lrpirlet View Post
Solution was to change CRLF to LF (notepad+ does that at a mouse click)...
Yeah, I also remember wasting some hours because of this stupid mechanism. Why for f***s sake a version control system would want to modify files it's supposed to provide.

Anyway I see most of the systems slowly migrate to universal \n endline, leaving typewriters \n\r legacy behind. Hopefully that'll happen still in my lifetime
MrTick is offline   Reply With Quote
Advert
Old 11-06-2020, 06:32 AM   #498
lrpirlet
Connoisseur
lrpirlet began at the beginning.
 
Posts: 96
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
Hi MrTick

Thanks for sharing...

And, as far as luck is concerned, I bet you hide your skills and your developing intuition behind it...

Ok, I may have been unclear about the command:
Code:
git config --global core.autocrlf input
According to my experience, if the master on GitHub is saved as a unix file, then after the command, Git accept to save it localy with CR only.(verified with od -c on my local windows repository)...

So yes the workaround (solution?) is there already.

Last edited by lrpirlet; 11-06-2020 at 11:13 AM.
lrpirlet is offline   Reply With Quote
Old 04-18-2021, 01:08 PM   #499
ninki
Connoisseur
ninki began at the beginning.
 
Posts: 71
Karma: 10
Join Date: Aug 2008
Device: Hanlin 6.1, Kindle 3, Kindle Touch, KPW3, KOA3
Hi.
Does librariansync works with KOA3 5.12.4?
It’s not creating the collections.
Thanks
ninki is offline   Reply With Quote
Old 04-19-2021, 09:01 AM   #500
MrTick
Enhtusiast
MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.
 
MrTick's Avatar
 
Posts: 53
Karma: 2340139
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
Quote:
Originally Posted by ninki View Post
Does librariansync works with KOA3 5.12.4?
It’s not creating the collections.
I'd say 'yes it should' but it obviously seems it isn't
Do you have python2.7 installed from NiLuJe?
https://www.mobileread.com/forums/sh...d.php?t=225030
MrTick is offline   Reply With Quote
Advert
Old 04-19-2021, 10:49 AM   #501
ninki
Connoisseur
ninki began at the beginning.
 
Posts: 71
Karma: 10
Join Date: Aug 2008
Device: Hanlin 6.1, Kindle 3, Kindle Touch, KPW3, KOA3
Quote:
Originally Posted by MrTick View Post
I'd say 'yes it should' but it obviously seems it isn't
Do you have python2.7 installed from NiLuJe?
https://www.mobileread.com/forums/sh...d.php?t=225030
Well I made a mess but finally erased python3 folder from the kindle and left 2.7 There is no uninstall. Librariansync was hanging not doing anything. Hope I don’t pay for it later. After this it seems to work. It said done and all but it was not creating the collections
Then I replace cc_update file that you made. Thanks so much for it and now it’s working.
My hands were shaking all the way just so you know.
Thank you very much. I jailbreak especially for the collections.
ninki is offline   Reply With Quote
Old 04-19-2021, 11:22 AM   #502
MrTick
Enhtusiast
MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.
 
MrTick's Avatar
 
Posts: 53
Karma: 2340139
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
Quote:
Originally Posted by ninki View Post
(...)
Then I replace cc_update file that you made. Thanks so much for it and now it’s working..
Good to hear

This thread has grown quite massive with over 0.5K replies. Here's a source of the most recent version of librariansync that includes update needed for .12+ firmwares:
https://github.com/NiLuJe/librariansync

Maybe it'd be possible for @barsanuphe or one of the admins to add link to that repo in the first post (today is 1st anniversary for barsanuphe inactivity on this forum, hope he'll be back one day )
MrTick is offline   Reply With Quote
Old 04-19-2021, 01:59 PM   #503
ninki
Connoisseur
ninki began at the beginning.
 
Posts: 71
Karma: 10
Join Date: Aug 2008
Device: Hanlin 6.1, Kindle 3, Kindle Touch, KPW3, KOA3
Thank you! I just downloaded the one in the first page.
I’ll try this one.
ninki is offline   Reply With Quote
Old 04-19-2021, 02:03 PM   #504
MrTick
Enhtusiast
MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.
 
MrTick's Avatar
 
Posts: 53
Karma: 2340139
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
Quote:
Originally Posted by ninki View Post
Thank you! I just downloaded the one in the first page.
I’ll try this one.
Nononono! The one if first page will not work certainly!
Use the one from my link, it's the most recent NiLuJe version with my fixes
MrTick is offline   Reply With Quote
Old 04-21-2021, 12:43 PM   #505
ninki
Connoisseur
ninki began at the beginning.
 
Posts: 71
Karma: 10
Join Date: Aug 2008
Device: Hanlin 6.1, Kindle 3, Kindle Touch, KPW3, KOA3
I tried the GitHub version and it didn’t work. It says done but it does not create the collections.
Right now I got the newest version of the librariansync from the first page with you fix.
It works that way.
ninki is offline   Reply With Quote
Old 04-29-2021, 08:40 PM   #506
Homer_S
Member
Homer_S began at the beginning.
 
Homer_S's Avatar
 
Posts: 12
Karma: 10
Join Date: Apr 2020
Device: Kindle PW4
I'm getting a error on my Twilight Blue PaperWhite 4.

Quote:
Package 'Update_librariansync_20190103_kindle5.bin' (librariansync 20190103 kindle5) is not targeting your device
On a Kindle PW4 that it worked and shows this in the log:

Quote:
Device Twilight Blue Kindle PaperWhite 4 (2018) WiFi (32GB) (16Q -> 0x4D8)
Is there a file I can update and how do I find the right number/address to map?

Homer
Homer_S is offline   Reply With Quote
Old 04-29-2021, 09:05 PM   #507
Homer_S
Member
Homer_S began at the beginning.
 
Homer_S's Avatar
 
Posts: 12
Karma: 10
Join Date: Apr 2020
Device: Kindle PW4
Quote:
Originally Posted by Homer_S View Post
I'm getting a error on my Twilight Blue PaperWhite 4.



On a Kindle PW4 that it worked and shows this in the log:



Is there a file I can update and how do I find the right number/address to map?

Homer
UPDATE: I downloaded the "Code" zip from this link, extracted the librariansync folder to the extensions folder of the 16Q and all is well. Someone above my paygrade might want to build the installer and update the OP.

Thanks all!
Homer
Homer_S is offline   Reply With Quote
Old 06-08-2021, 09:08 PM   #508
H2D2
Member
H2D2 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2017
Device: Kindle Keyboard 3G US 3.4.2 & PW4 5.11.2
Hi

I have downloaded the latest librariansync and coppied it to "extensions". Unfortunately, KUAL does not see it.

I am on 5.11.2, PW5, JB'ed with all blows and whistles from snapshots. All is good except for LS, it simply does not show.

Any ideas about what I could be doing wrong?

And yes, I have gone through all the thread, to no avail.
H2D2 is offline   Reply With Quote
Old 06-08-2021, 09:55 PM   #509
H2D2
Member
H2D2 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2017
Device: Kindle Keyboard 3G US 3.4.2 & PW4 5.11.2
Quote:
Originally Posted by H2D2 View Post
Hi

I have downloaded the latest librariansync and coppied it to "extensions". Unfortunately, KUAL does not see it.

I am on 5.11.2, PW5, JB'ed with all blows and whistles from snapshots. All is good except for LS, it simply does not show.

Any ideas about what I could be doing wrong?

And yes, I have gone through all the thread, to no avail.
Meant PW4
H2D2 is offline   Reply With Quote
Old 06-08-2021, 11:41 PM   #510
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,506
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
H2D2 if you downloaded git repo, make sure that the folder “librariansync” in the extensions folder is the one that contains menu.json.
I mean, do not extract the whole git repo to extensions, only “librariansync” folder from it
mergen3107 is offline   Reply With Quote
Reply

Tags
kindle collections, librariansync


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vocabulary builder and flash card feature on old kindle 2/3/dx? dark.knight1 Kindle Developer's Corner 12 10-10-2015 01:12 PM
Vocabulary builder bobafruit Kindle Developer's Corner 25 09-04-2015 01:46 AM
Free (nook/Kindle/iTunes/DRM-free) Legacy Builder [Xtian Business Leadership Advice] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 0 10-13-2014 02:44 AM
Vocabulary Builder for Kindle Paperwhite 1 pxpxpx Amazon Kindle 2 02-16-2014 06:07 PM
SBPubX Builder tmaynard Fictionwise eBookwise 16 11-20-2008 12:35 PM


All times are GMT -4. The time now is 07:34 PM.


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