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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2023, 06:43 AM   #991
swmhoktpndroawoq
Junior Member
swmhoktpndroawoq began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2023
Device: Kobo
Quote:
Originally Posted by Aleron Ives View Post
Could you disable the header and footer in the settings, then edit the "Reduce top/bottom page spacer" patch to increase the page spacer size to match the margins used with the header/footer enabled?
Thanks! It works perfectly
swmhoktpndroawoq is offline   Reply With Quote
Old 09-17-2023, 04:36 AM   #992
Aleron Ives
Guru
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 768
Karma: 8835684
Join Date: Sep 2022
Device: Kobo Libra 2
I was poking around in libnickel.so.1.0.0 earlier, and I remembered a few users reporting that the patch "Block WiFi firmware upgrade" didn't actually work a few firmwares ago (as the patch description warns might be the case). I noticed the following strings appear near the "UpgradeCheck" strings that get patched:

Code:
https://api.ereaderupgrade.com
https://api.ereaderupgrades.com
https://api.kobobooks.com
Perhaps it would be possible to overwrite one or more of these strings to create a more reliable method of blocking firmware updates? Ideally it would be possible to block the firmware check without losing the ability to sync books and dictionaries, but I don't know which URLs Kobo uses for which functionalities.

As an easy test for an adventurous user, you could redirect these addresses to 127.0.0.1 in your Kobo hosts file, instead of editing libnickel.so.1.0.0 directly.
Aleron Ives is offline   Reply With Quote
Old 09-17-2023, 10:53 AM   #993
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,656
Karma: 6254413
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Aleron Ives View Post
Code:
https://api.ereaderupgrade.com
https://api.ereaderupgrades.com
https://api.kobobooks.com
I think the ereaderupgrade URL is for China, especially since it gives download URLs like "https://cdn.8a24a8b95776b1ec975b8cdd7dfdf7fd.com/downloads/firmwares/8a24a8b95776b1ec975b8cdd7dfdf7fd8/Aug2023/8a24a8b95776b1ec975b8cdd7dfdf7fd-update-4.38.21908.zip", and appears to otherwise be a limited proxy (written in node.js) to the existing api.kobobooks.com (written in asp.net). Also, 8a24a8b95776b1ec975b8cdd7dfdf7fd is the MD5 hash of "Kobo".
geek1011 is offline   Reply With Quote
Old 09-17-2023, 05:48 PM   #994
Aleron Ives
Guru
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 768
Karma: 8835684
Join Date: Sep 2022
Device: Kobo Libra 2
Do you know which URL is used for syncing books and dictionaries? I guess blocking api.kobobooks.com would work for firmware, at least.
Aleron Ives is offline   Reply With Quote
Old 10-02-2023, 12:45 PM   #995
Florin
Junior Member
Florin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2023
Device: Kobo Sage
Sorry for ressurecting an old topic, but I accidentally reset my kobo an would really want to get my reading hours stat back. From the info I've been able to dig out the only method that (once) worked was to use the kobopatch to make it so that every time you finished a book it added some amount of hours to total reading time.

Code:
Manipulate reading stats:
  - Enabled: yes
  - Description: Always add 10 hours to the reading time every time you close a book.
  # in EventEngine::endReadingSession(*Volume) when recording end of reading session stats, change QDateTime::secsTo calls to a fixed value
  - ReplaceBytes: {Offset: 0x4D53A0, FindBLX: 0x425270, ReplaceH: 4F F6 FF 70} # MOV  r0, #65535
  - ReplaceBytes: {Offset: 0x4D53C0, FindBLX: 0x425270, ReplaceH: 4F F6 FF 70} # MOV  r0, #65535
This doesn't work on current firmware version. Did a search for 0x425270 (4FF766EF) with no results in libnickel.so.1.0.0 file.

Is there a way to make this work on the 4.38 update? Or did they change something that makes this impossible to do anymore?
Florin is offline   Reply With Quote
Old 10-02-2023, 05:17 PM   #996
Aleron Ives
Guru
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 768
Karma: 8835684
Join Date: Sep 2022
Device: Kobo Libra 2
As I recall, this patch was an April Fool's joke. It was never a serious patch, so it wasn't released for any other firmware versions.
Aleron Ives is offline   Reply With Quote
Old 10-02-2023, 07:09 PM   #997
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,656
Karma: 6254413
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Florin View Post
Sorry for ressurecting an old topic, but I accidentally reset my kobo an would really want to get my reading hours stat back. From the info I've been able to dig out the only method that (once) worked was to use the kobopatch to make it so that every time you finished a book it added some amount of hours to total reading time.

Code:
Manipulate reading stats:
  - Enabled: yes
  - Description: Always add 10 hours to the reading time every time you close a book.
  # in EventEngine::endReadingSession(*Volume) when recording end of reading session stats, change QDateTime::secsTo calls to a fixed value
  - ReplaceBytes: {Offset: 0x4D53A0, FindBLX: 0x425270, ReplaceH: 4F F6 FF 70} # MOV  r0, #65535
  - ReplaceBytes: {Offset: 0x4D53C0, FindBLX: 0x425270, ReplaceH: 4F F6 FF 70} # MOV  r0, #65535
This doesn't work on current firmware version. Did a search for 0x425270 (4FF766EF) with no results in libnickel.so.1.0.0 file.

Is there a way to make this work on the 4.38 update? Or did they change something that makes this impossible to do anymore?
PM me how long you want (I can do any amount of time), and I'll put something together for you.
geek1011 is offline   Reply With Quote
Old 10-03-2023, 05:19 AM   #998
Florin
Junior Member
Florin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2023
Device: Kobo Sage
Quote:
Originally Posted by geek1011 View Post
PM me how long you want (I can do any amount of time), and I'll put something together for you.
I've spent like 10 minutes trying to figure out how to send a PM, and I'm not sure if it's because I'm a new member or what but I don't see the option anywhere, so I'll write here. Hope that's ok.

This is the thread you replied to a while back. That's where I got that code snippet from, also the instructions on how to use it.

For the amount of time what I need is 723 hours total, but something like 10 hours would also be ok. If the method to change the amount of time is still the same as in that thread, then I think I understand how to change the amount added using armconverter to get the hex value to replace (for example for 1 hour -> MOVW R0, #03600 -> ReplaceH: 40 F2 80 70; did I get that right?).

This is one patch that rarely gets used, but when you mess up and reset your device you really need something like it. One thing I learned from all this is to use KoboUtilities and backup the db often.
Florin is offline   Reply With Quote
Old 10-03-2023, 01:19 PM   #999
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 31,153
Karma: 136000011
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Florin View Post
I've spent like 10 minutes trying to figure out how to send a PM, and I'm not sure if it's because I'm a new member or what but I don't see the option anywhere, so I'll write here. Hope that's ok.
Currently you do not have PMs enabled (click on an user name in the upper left corner of a message. If you don't see 'send a private message...' in the options, you need to have PMs enabled. See attached images.

You should post in the Requests to enable Private Messages thread to ask for PMs to be enabled or, if feeling very patient, simply wait until you have posted enough times for the automatic enablement to happen.
Attached Thumbnails
Click image for larger version

Name:	PMs_no.png
Views:	23
Size:	4.8 KB
ID:	204100   Click image for larger version

Name:	PMs_yes.png
Views:	22
Size:	8.8 KB
ID:	204101  

Last edited by DNSB; 10-03-2023 at 01:26 PM. Reason: attached images
DNSB is offline   Reply With Quote
Old 10-03-2023, 01:44 PM   #1000
Florin
Junior Member
Florin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2023
Device: Kobo Sage
Quote:
Originally Posted by DNSB View Post
You should post in the Requests to enable Private Messages thread to ask for PMs to be enabled
Thank you. Made a request.
Florin is offline   Reply With Quote
Old 11-24-2023, 09:18 PM   #1001
zuyang
Junior Member
zuyang began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2023
Device: Kindle Scribe
Change custom font display name

I wonder if it's possible to change font display name when selecting font based on current system language or even content language.

For example, when I set the language to Chinese, the built-in fonts have their names in Chinese, while custom fonts are shown in English.

Thanks,
Attached Thumbnails
Click image for larger version

Name:	screen_003.png
Views:	18
Size:	152.0 KB
ID:	204899   Click image for larger version

Name:	screen_004.png
Views:	17
Size:	173.8 KB
ID:	204900  
zuyang is offline   Reply With Quote
Old 11-25-2023, 05:30 PM   #1002
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,137
Karma: 16059044
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by zuyang View Post
I wonder if it's possible to change font display name when selecting font based on current system language or even content language.

For example, when I set the language to Chinese, the built-in fonts have their names in Chinese, while custom fonts are shown in English.
I doubt whether a patch can do this but you will need to wait for a reply from @geek1011 to be sure.

As far as I can tell, for custom fonts, the font display name in the drop-down menu is read from the font-family name stored inside the actual .ttf/.otf font file. I base this comment on observation rather than a deep knowledge of the code in the firmware.

You could try opening one of your fonts in a font editor (e.g. FontForge) to edit the name to something you like better. However, a font file can contain multiple occurrences of font-family name so it's anyone's guess which of those Kobo actually uses. You would need to experiment.
jackie_w is offline   Reply With Quote
Old 11-26-2023, 06:23 PM   #1003
egin
Member
egin began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Apr 2017
Device: kobo
how can I deactivate the recommodations? I cant find it in the patches
egin is offline   Reply With Quote
Old 11-26-2023, 07:19 PM   #1004
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 9,003
Karma: 219221630
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by egin View Post
how can I deactivate the recommodations? I cant find it in the patches
The patch should be "Remove recommendations (row1col2) from home screen". It's in the libnickel.so file.
Sirtel is online now   Reply With Quote
Old 11-27-2023, 12:09 PM   #1005
egin
Member
egin began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Apr 2017
Device: kobo
I have changed the nickel file to this entry:

Code:
Remove recommendations (row1col2) from home screen:
  - Enabled: yes
  - Description: |
      By default, when there are less than 2 books open, a recommendations
      column shows in the top right of the home screen. This patch hides it.
  - ReplaceBytes:
      Base:           "HomePageView::configureTopRight(HomePageWidgets)"
      Offset:         48
      FindH:          58 B1 # never skip hiding the top-right widget
      ReplaceInstNOP: true
somehow it was not changed after i patched the created firmware.
egin is offline   Reply With Quote
Reply

Tags
kobopatch, patches, patching, request, requests

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for PW3 kernel [posted in another thread] mustdie Kindle Developer's Corner 5 10-21-2015 05:28 PM
Kobobooks.com future feature request thread Mrs_Often Kobo Reader 47 11-08-2012 12:59 PM
[Old Thread] Calibre 'feature request' thread Waba Calibre 2 02-10-2010 08:52 PM
Feature request thread? Dahak Calibre 1 08-02-2009 01:51 AM
3rd party software request thread Adam B. iRex 23 11-28-2008 02:08 PM


All times are GMT -4. The time now is 05:10 PM.


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