Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2014, 06:36 AM   #46
Caramon77
Enthusiast
Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.
 
Posts: 26
Karma: 123892
Join Date: Oct 2012
Device: Kobo Glo
Well... maybe i am too "simply thinking" but i just changed the url in Libnickel. I don't think my kobo will be able to download any firmware till the end of time (or 'till someone registers the domain i wrote and setus up a kobo-compliant update server...)
Caramon77 is offline   Reply With Quote
Old 03-02-2014, 09:01 AM   #47
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Test version of Utilities plugin with disk fill

I have had a play with filling the disk and doing a sync. Unfortunately, it doesn't seem to work to prevent the download and installation of an update, but still allow syncing. I have played with leaving various amounts of free space, but, none seem to do what is desired.

Just in case someone wants to try, I have posted a test version of the Kobo Utilities plugin. This has an extra option on the menu called "Fill disk". This allows you to set an amount of free space to leave and then creates a file to fill the disk.

My testing has been on two different Touch's. One has 2.5.2 and the other 3.1.1. I haven't tried the Glo as I didn't feel like setting it back from 3.2.0.

My conclusions from this testing are that if an update is found during a sync:

- If there is not enough space to download the firmware update file, you will get a not enough space error and the download won't happen.

- If there is not enough space to download the update and unpack it, the file will be downloaded, but an error is displayed afterwards. The downloaded file is removed on 3.1.1 but not on 2.5.2.

- If there is enough space to download the update and unpack it, the file will be downloaded, unpacked and you get prompted to install it.

For none of the cases was the sync done.

There is also a minimum free space below which a sync won't be done. In this case, a not enough space message is displayed. I didn't test at what free space this happened at, but I suspect it is 50MB.

The test version of the plugin is there if someone wants to try and confirm, or better still, disprove my conclusions. Or check them on another device or firmware level. I recommend doing it while you have something else to do as each test takes time. Watching "Aliens" again was a suitable distraction.
davidfor is offline   Reply With Quote
Advert
Old 03-03-2014, 03:06 AM   #48
Caramon77
Enthusiast
Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.Caramon77 is an accomplished Snipe hunter.
 
Posts: 26
Karma: 123892
Join Date: Oct 2012
Device: Kobo Glo
Have you simply tried my method? change the URL.
Caramon77 is offline   Reply With Quote
Old 03-03-2014, 03:49 AM   #49
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Caramon77 View Post
Have you simply tried my method? change the URL.
Some people might be more interested in proving or disproving certain concepts than in preventing updates on their own devices.
tshering is offline   Reply With Quote
Old 03-03-2014, 04:52 AM   #50
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
There is that, but there's also the safety factor. Changing the URL in libnickel is completely unsupported and risks bricking the device. Most threads (hopefully all, but I haven't read them all) talking about how to edit or patch Kobo-provided firmware files carries a suitable warning. The Kobo Utilities plugin, so far anyway, only does operations which we can all be reasonably certain (based on the long use of the KoboTouch driver) are quite safe. It still isn't supported, but nothing in the Kobo Utilities plugin is going to brick your device if it's done a tiny bit wrong.

That is, assuming davidfor didn't sneak in a "or os.unlink(db_file)" somewhere
jgoguen is offline   Reply With Quote
Advert
Old 03-03-2014, 05:12 AM   #51
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jgoguen View Post
That is, assuming davidfor didn't sneak in a "or os.unlink(db_file)" somewhere
From memory, the full code looks like:
Code:
if self.person_pissed_me_off(self.get_username_from_db()):
   os.unlink(self.device_database_path)
davidfor is offline   Reply With Quote
Old 05-02-2014, 03:39 AM   #52
byblo
Traumatized
byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.
 
byblo's Avatar
 
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
Alternatively, you can edit the urls in the Kobo eReader.conf file. Seems more simple, permanent and safer than patching binaries:

Since I don't use the kobo store or any online service from kobo, I disabled everything on that configuration file and never had any upgrade, error popups or anything from kobo.

Don't ask me which variable preventing the upgrade, I have no idea, I just wanted to disable all online services from kobo.

Code:
[Services]
ContactUsURL=http://127.0.0.1
EulaURL=http://127.0.0.1
FirstTimeUXURL=https://127.0.0.1
ForgotPasswordURL=https://127.0.0.1
ImageHandlerURL=http://127.0.0.1
PartnerProxyHandlerURL=https://127.0.0.1
PrivacyURL=http://127.0.0.1
PurchaseURL=https://127.0.0.1
RequestURL=http://127.0.0.1
SecureURL=https://127.0.0.1
ServiceDomain=.127.0.0.1
SignInURL=
SocialAuthorizationURL=https://127.0.0.1
SocialURL=https://127.0.0.1
WebsiteURL=http://127.0.0.1
WebstoreProxyURL=https://127.0.0.1
WebstoreURL=http://127.0.0.1
byblo is offline   Reply With Quote
Old 05-02-2014, 03:52 AM   #53
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by byblo View Post
Since I don't use the kobo store or any online service from kobo, I disabled everything on that configuration file and never had any upgrade, error popups or anything from kobo.

Don't ask me which variable preventing the upgrade, I have no idea, I just wanted to disable all online services from kobo.
I doubt if any of them do. The reason you aren't getting prompted to do a WiFi update is because you don't use the Kobo services. The ONLY time a firmware update check is done is when you are doing a synch. And a synch will only be done when you press the sync button or once a day if you have the auto sync option set. If you have the browser and never do a sync, then you will never get prompted to update. Of course, if you don't use the Kobo services and don't use the browser, turning WiFi off will guarantee that you never get a firmware update.
davidfor is offline   Reply With Quote
Old 05-02-2014, 08:55 AM   #54
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by davidfor View Post
I doubt if any of them do. The reason you aren't getting prompted to do a WiFi update is because you don't use the Kobo services. The ONLY time a firmware update check is done is when you are doing a synch. And a synch will only be done when you press the sync button or once a day if you have the auto sync option set. If you have the browser and never do a sync, then you will never get prompted to update. Of course, if you don't use the Kobo services and don't use the browser, turning WiFi off will guarantee that you never get a firmware update.
...and should not drain the battery as much.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 05-03-2014, 05:30 PM   #55
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by Cecell3000 View Post
teste prevent firmware update

Code:
# Firmware 3.1.1 (761b066420)

<Patch>
patch_name = `prevent firmware update`
patch_enable = `yes`
# alternative 1
#change `5.0.0` , `99.10` , `999.9` or similar
replace_string = 01105C10, `3.1.1`, `99.10`
# alternative 2
#replace_string = 01106BB0, `https://api.kobobooks.com/1.0/UpgradeCheck/%1/%2/%3/%4/%5`, `https://api.kobobooks.com/1.0/UpgradeCheck/%1/%2/%3/9.9/N`
# alternative 3
#replace_string = 01106BB0, `https://api.kobobooks.com/1.0/UpgradeCheck/%1/%2/%3/%4/%5`, `https://api.kobobooks.com/1.0/UpgradeCheck/%1/%2/k/99.9/N`
</Patch>
I tested and it's working ...

but question:
this code can cause problems with account kobo (blacklist) or device serial number ??


sorry English (using google translator)
Tried the patch on my aura HD to disable the auto updates and the patching itself worked fine.
But like the picture shows, the software version changes into 99.10.0
All the books work great but when using Calibre, it says:
"kobo database version unsupported" and calibre stopped working (Calibre 1.35.0 )
Tried the alternative strings, they all patched okay, but changes the software version into one Calibre doesn't recognise and refused to transfer books to or from the reader.
So after all, it doesn't seem such a good idea to use this patch.

I do want to use the sync, so just changing all the urls doesn't seems to be a good idea also.

Last edited by Nick_1964; 05-03-2014 at 05:38 PM.
Nick_1964 is offline   Reply With Quote
Old 05-03-2014, 05:37 PM   #56
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Nick_1964 View Post
So after all, it doesn't seem such a good idea to use this patch.
I guess the plugin has an option to skip the version check.
Edit: In post #17 i proposed another patch that would not influence calibre, since it doesn't change the hard coded version number. and only sends a higher version number to the Kobo server.
Edit 2: I just became aware that this has been included as alternatives 2 and 3.

Last edited by tshering; 05-04-2014 at 06:26 AM.
tshering is offline   Reply With Quote
Old 05-03-2014, 11:14 PM   #57
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Nick: As tshering said, the driver in calibre does a version check. There is an option to ignore this. If you are on recent firmware and know that calibre supports it, changing this option is safe.

But, as I keep pointing out all this is immaterial if you don't sync to the Kobo servers. The ONLY time that the firmware version is checked and a new version is downloaded is during a sync. If you don't read books from the Kobo server, you don't need to sync and hence won't have an update forced on you.
davidfor is offline   Reply With Quote
Old 05-03-2014, 11:58 PM   #58
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by davidfor View Post
Nick: As tshering said, the driver in calibre does a version check. There is an option to ignore this. If you are on recent firmware and know that calibre supports it, changing this option is safe.

But, as I keep pointing out all this is immaterial if you don't sync to the Kobo servers. The ONLY time that the firmware version is checked and a new version is downloaded is during a sync. If you don't read books from the Kobo server, you don't need to sync and hence won't have an update forced on you.
David; I thought that a "factory reset" would also result in an update check and download. Not so? I have my "user" data zeroed out, so it is not something I see, anymore.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 05-04-2014, 12:33 AM   #59
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Ken Maltby View Post
David; I thought that a "factory reset" would also result in an update check and download. Not so? I have my "user" data zeroed out, so it is not something I see, anymore.
Yes, you are correct. Maybe I should have said "during normal operation". Of course, if you do a factory reset, the patching won't help stop the update check.

And before anyone says something, doing a factory reset is not part of normal operation
davidfor is offline   Reply With Quote
Old 05-04-2014, 07:33 AM   #60
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
In https://www.mobileread.com/forums/sho...&postcount=700 you can see what happened to my device and computer, maybe it was an onetime event, but the computer doesn't recognized the whole reader anymore.
I solved it, but want to warn that the default option of the patch can do things that even the computer doesn't recognise the device anymore,and when you can't get onto it,you can't replace the patch by another one.
For sure it can all be a combination of windows version,virus check or other programs on my computer why this happened, or already patched things on the device that could trigger it with me,and not with you.
And every patch offcourse,is at own risk.
A factory reset could solve it,but that also can trigger a new firmware, and I am afraid that Kobo will build something in a new release that checks firmware and prevent you to go back to an older version and then you are in a whole new situation and have to wait until someone will find a patch for the new one... it all would be more easy when Kobo let the user deside to do,or do not perform a update, just display a warning that there is a new firmware and what it does,and let the user choose because now,when they choose to make something in the device I don't want, they can alter on distance the options on my device that I have now and change the behave I like,left me with only the hope I can reverse it by putting back the old firmware.
Someday I am afraid that going back to old firmware says something like "the firmware you try to install is older then the one currently on your device, operation aborted."
Nick_1964 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware not updating (M92) martienne Onyx Boox 9 02-14-2014 06:03 AM
Updating with EU-firmware Eures Amazon Kindle 5 01-20-2012 09:37 AM
Not updating firmware? zeekthegeek Kobo Reader 1 03-30-2011 10:20 PM
Firmware Update Please help on updating K2 firmware from 2.3 to 2.5 PS Kindle Amazon Kindle 13 01-21-2011 11:49 AM
Firmware Update Preventing firmware upgrade kindoru Amazon Kindle 5 05-04-2010 07:50 PM


All times are GMT -4. The time now is 07:18 AM.


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