![]() |
#46 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#47 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I did compare, but only with Total Commander's Viewer. The difference can be seen with this. But I don't know how to resolve this issue. I tried with 7zip, pkzip (the old, freeware 2.5 version, as i didn't find cli in the new, trial version), even winrar. I also tried with the windows built-in zip, with VB script, all produce different zip archives (can be seen in the TC Viewer), but all fail to work with Kobo. My "last" idea is to use TC's built in zip, but I need to do some research on it (it's probably in WCMZIP32.dll).
|
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,557
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Remember you need to make a tgz, which is a gzipped tar file. Does https://www.techwalla.com/articles/h...ile-in-windows help?
|
![]() |
![]() |
![]() |
#49 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The above has always been the case ("always" is since I first looked). Maybe it also handled other types of compressed file, but I don't believe Kobo every distributed the firmware as anything except a zip file (and an SD card in the dim distant past). If you think the issue is zip file compatibility, the device is running Linux. It is probably using gzip. Try that. And of coarse, make sure you can send the file that Kobo is pushing. And of course, it is completely possible that Kobo have changed something. It is even possible that they are making changes to prevent exactly what you are trying to do. It won't be easy to tell until the next update happens and someone tracks what happens. Maybe you need to go back a firmware version or two and test again. |
|
![]() |
![]() |
![]() |
#50 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I have no idea which bit is failing. The device downloads the zip, I can see the top bar showing the percent, but then nothing happens. No KoboRoot.tgz is extracted to /mnt/onboard/.kobo . If I have a zip created with Total Commander's built in zip, then it works perfectly. Now, with the latest FW, If I use KoboRoot.tgz as the update archive directly, the device downloads it, puts it in /mnt/onboard/.kobo, but does not reboot, nor it displays a message if the update type is "Available" or "Required". ("Forced" also does not reboot instatly.) If then I manually do a reboot, then it does the update, but not automaticaly. It worked with KoboRoot.tgz in fw 3.19.
I'll try gzip, maybe that works, thank You! |
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,557
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Are you ensuring the files have ThE CoRReCt casing in their names?
|
![]() |
![]() |
![]() |
#52 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I'm releasing the current, developement version of this custom Kobo Sync Server.
Just unzip it to c:\, but unzipping it to any folder may work also. There are two config files, in KoboSync\config: send2kobo.conf This is the config file of the send2kobo utility. The contents are self-explaining, I'll later write some more on this, if needed. KoboSync.conf This is the configuration file for the Sync Server. Change $KoboUpdateFile to 'kobo-update.zip' to experiment with the zip method. You can also set the $UpdateType, as described in the file. What is this and how to use it The 'core' is basicly EasyPHP-DevServer-13.1VC11 (www.easyphp.org), with everything unneccessary removed, to keep the file size as low as possible. This webserver hosts the custom Kobo Sync Server, which is currently 2 php files, found in \localweb\1.0 This can be easily started by executing "EasyPHP-KoboSyncServer.exe". On first run, if you put the whole thing to anything other than c:\KoboSync, it will ask you if you want to re-generate the config files. Make sure you click "Yes". The indicator next to "Apache" should turn green and the label next to it "Started". If not, you can try manually starting by clicking on "Apache", or try restarting the application. If you minimize this window, it will hide in the tray. Also make sure you allow Apache in the firewall, if it pops up. Important: the webserver uses port 88 instead of 80! You can test if it works by opening http://localhost:88/1.0/UpgradeCheck/test in your browser. It should show you some text between { and }, containing the update url, etc. If the page fails to load Next, you should install synchack to Kobo by executing: c:\KoboSync\send2kobo\install-synchack.bat This will patch your Kobo's firmware file if possible, by changing the UpdateCheck URL to your PC's hostname. As the warning say, this is a potentially dangerous task. So be sure to make a backup of your Kobo device before executing the install script! It will ask you to plug Kobo in, then unplug (it will safely unmount it, but you will have to unplug it manually), plug it again after it reboots, then unplug it again. This will also install "Send to Kobo" into the Send To right click menu. This right-click menu plug-in will prepare a KoboRoot.tgz for the sync server with the neccessary scripts to add epubs to Kobo by the virtua SD card method. It works with 3.19.5761, maybe with 4.2.8432, but needs more testing as I killed my time with the zip issue. If everything was OK, then if you tap "Sync" on the Kobo device, it will search for updates on your PC. Can be used this now to try which zip method works... I used code from GeoffR's firmware patch, and some found online mostly on stackoverflow. I hope it does not violate any license. EDIT1+EDIT2: I just realised that I left some code which now prevents the update to work, during the bug-hunting. The download link is presented without the port number, and therefor Kobo can't download the update file, as the webserver is not running on port 80. Also modified the files as some failed to work. So if you downloaded before, please download it again. The following files have changed: KoboSync\localweb\1.0\UpgradeCheck KoboSync\config\KoboSync.conf KoboSync\localweb\1.0\firmwares Thank you and sorry for the inconvenience. Last edited by kido.resuri; 02-19-2017 at 04:25 PM. |
![]() |
![]() |
![]() |
#53 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I had to re-upload the above zip, please read the edit comments.
|
![]() |
![]() |
![]() |
#54 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Nice idea!
It might be reasonable to replace in install-synchack.bat Code:
tools\get-libnickel.tgz Code:
tools\data\get-libnickel.tgz |
![]() |
![]() |
![]() |
#55 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
Hmm.. It was late last night and I changed a few things after testing to be a bit more clear, and I might forgot to change that. Thanks!
I also found some other mistakes in the send2kobo.bat, so I'll soon update the attachment. Sorry, my bad. That pesky zip issue realy took my time from the important things... On the zip issue: I examined the files with HEX editor, read about ZIP headers, found the differences, but no luck yet on finding the solution... |
![]() |
![]() |
![]() |
#56 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I uploaded the modifications, please re-download if you downloaded it before. This should finally work. For the zip issue, I think I'm close to the solution. WinZip, and only WinZip might be able to compress with the settings that Kobo needs. It requires Deflate method with maximum compression. (general purpose bit flag (address 0x6) is set to 0x02, and compressing method (addr. 0x8) is set to 0x08)
|
![]() |
![]() |
![]() |
#57 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I can create zip with winzip, but winzip needs to be installed to work on the user's pc. I don't want that.
I found pkzip25, which also can create the required type of zip file, but not with files already compressed - like KoboRoot.tgz is. If I try to compress a text file for example, it will create a Kobo-compatible zip. Kobo will extract the contents to .kobo. But if I try to compress KoboRoot.tgz with the same settings, it creates a zip with "store only" method. That is very frustrating at the moment. |
![]() |
![]() |
![]() |
#58 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I don't have the Kobo with me now, but I may found the solution with some workaround.
Could anyone of you please try this zip (make sure you don't re-zip it) with the KoboSync above? This will add a placeholder.txt to the .kobo folder, and after the successful update, a test.txt to the USB root. Don't forget to post here if it succeed! It was created with 7za (the tar and tgz) and with PKZIP25. Last edited by kido.resuri; 02-21-2017 at 03:23 PM. |
![]() |
![]() |
![]() |
#59 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 13368
Join Date: Dec 2012
Device: Kobo Glo HD
|
I also did my little investigation, and here's what I found:
Also, I think another thing to look at should be the Desktop/Mobile apps, it's way easier to capture traffic from that. Fun fact: their server also isn't W3C compliant, as it can return 404 when the only problem is that the request type isn't valid. Last edited by miyoyo; 03-26-2017 at 01:20 PM. |
![]() |
![]() |
![]() |
#60 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
I captured data by doing a man-in-the-middle: added a wifi AP to my PC's ethernet, and shared the real wifi connection by Windows. So all traffic goes through my PC. The I started Wireshark sessions on the ethernet interface, then replaced every https with http in the Kobo conf file. I also used Firefox extensions HttpRequester and "Modify Header Value (HTTP Headers)", and added the headers from the captured packets. This way I can get all data from the real Kobo servers, even if they are HTTPS. The only data I can't get with this method are from the URLs that I can't change to HTTP in Kobo, like mobile.kobobooks.com, this one seems to be responsible to download the books to the reader when it does a sync.
Then, when I have the captured real data, I - or someone else - can *easily* make a local webserver with the correct data format and responses. I haven't played with it since the last posts, as I didn't have much time (and my fiancée started using the eReader, didn't want to mess it up for her), but I could add my custom Bookstore entries to the Kobo device, like custom book categories, and it worked fine as far as I got. If anyone else is interested in the reverse engineering, I would gladly share my experiences other than the above i described. The best would be to integrate it with Calibre, or maybe create a whole new "store" database software. Edit: I also set up an apache webserver on my capture PC, and later changed all the URLs in Kobo conf to access this, and mimiced the answers of the real kobostore to get further in the data-layers. Last edited by kido.resuri; 03-28-2017 at 03:46 PM. |
![]() |
![]() |
![]() |
Tags |
bookstore kobo replace |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replacing Nook Simple Touch: Onyx T68 vs Kobo Aura vs Kobo Aura H2O | iNovelReader | Which one should I buy? | 0 | 10-28-2014 01:40 AM |
Kobo Bookstore? | TorontoJenny | Kobo Reader | 1 | 07-15-2013 01:33 AM |
Kobo bookstore on Kobo Touch not showing prices (Canada) | RobertJSawyer | Kobo Reader | 13 | 09-23-2012 08:30 PM |
Replacing my new Kobo - again! | objectman | Kobo Reader | 7 | 09-20-2010 08:00 PM |
Ratings on Kobo bookstore | kiwikobo | Kobo Reader | 0 | 07-02-2010 03:39 AM |