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 08-09-2024, 09:24 AM   #1
imax
Junior Member
imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.
 
Posts: 7
Karma: 240460
Join Date: Aug 2024
Device: Kobo Libra 2 & PocketBook 360°
Patch for unlocking builtin Dropbox/Google Drive support

I've sent a pull request to kobopatch repo a few days ago (https://github.com/pgaskin/kobopatch-patches/pull/139).

Firmware has a hardcoded list of device models on which these features are enabled. The patch simply changes device model checks to always return "true", effectively enabling them on any device.

I've applied this to my Kobo Libra 2 and Google Drive sync works perfectly well.

Initially I was setting out to find a way to enable them via some simple config changes, but, sadly, it turned out that libnickel simply does
Code:
return this->isFrost() || this->isEuropa();
🫠

If you happen to know of a less intrusive way to achieve the same without patching libnickel.so after every update - please do let me know!
imax is offline   Reply With Quote
Old 08-09-2024, 11:37 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,055
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by imax View Post
I've sent a pull request to kobopatch repo a few days ago (https://github.com/pgaskin/kobopatch-patches/pull/139).

Firmware has a hardcoded list of device models on which these features are enabled. The patch simply changes device model checks to always return "true", effectively enabling them on any device.

I've applied this to my Kobo Libra 2 and Google Drive sync works perfectly well.

Initially I was setting out to find a way to enable them via some simple config changes, but, sadly, it turned out that libnickel simply does
Code:
return this->isFrost() || this->isEuropa();
🫠

If you happen to know of a less intrusive way to achieve the same without patching libnickel.so after every update - please do let me know!
Where is the actual patch?
JSWolf is offline   Reply With Quote
Advert
Old 08-09-2024, 11:56 AM   #3
imax
Junior Member
imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.
 
Posts: 7
Karma: 240460
Join Date: Aug 2024
Device: Kobo Libra 2 & PocketBook 360°
Quote:
Originally Posted by JSWolf View Post
Where is the actual patch?
In the pull request, in the "Files changed" tab. Just in case, also attaching it here.
Attached Files
File Type: txt cloud_sync.yaml.txt (1.2 KB, 112 views)
imax is offline   Reply With Quote
Old 08-09-2024, 12:22 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,650
Karma: 74500000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I will admit this is a patch I'm not really in favour of; it's adding functionality that is intended for new devices to older ones.
PeterT is offline   Reply With Quote
Old 08-09-2024, 12:29 PM   #5
imax
Junior Member
imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.
 
Posts: 7
Karma: 240460
Join Date: Aug 2024
Device: Kobo Libra 2 & PocketBook 360°
Quote:
Originally Posted by PeterT View Post
I will admit this is a patch I'm not really in favour of; it's adding functionality that is intended for new devices to older ones.
My point of view is that the code is already there (and hopefully tested before shipping), the patch simply removes artificial gating of the features to more expensive devices.

I personally prefer having this over third-party scripts for similar results.
imax is offline   Reply With Quote
Advert
Old 08-09-2024, 01:03 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,650
Karma: 74500000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I seem to remember hearing from Kobo devs that one issue was memory usage; that older devices did not have sufficient RAM for this function to be reliable.
PeterT is offline   Reply With Quote
Old 08-09-2024, 01:59 PM   #7
imax
Junior Member
imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.
 
Posts: 7
Karma: 240460
Join Date: Aug 2024
Device: Kobo Libra 2 & PocketBook 360°
Quote:
Originally Posted by PeterT View Post
I seem to remember hearing from Kobo devs that one issue was memory usage; that older devices did not have sufficient RAM for this function to be reliable.
Yeah, it might need a bit of RAM. Some devices Kobo ships this to have 512MB of RAM, so any of their devices having that much memory should be fine.

With 256MB I'd still give it a shot, but would be fully prepared to roll it back if it crashes.
imax is offline   Reply With Quote
Old 08-09-2024, 05:08 PM   #8
Aleron Ives
Wizard
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: 1,386
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
Nice! Did you use Ghidra to locate the relevant functions that need patching?
Aleron Ives is offline   Reply With Quote
Old 08-10-2024, 05:36 AM   #9
imax
Junior Member
imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.imax ought to be getting tired of karma fortunes by now.
 
Posts: 7
Karma: 240460
Join Date: Aug 2024
Device: Kobo Libra 2 & PocketBook 360°
Quote:
Originally Posted by Aleron Ives View Post
Nice! Did you use Ghidra to locate the relevant functions that need patching?
Yup. It was a bit messy though, because I don't have a .gdt with Qt stuff.
imax is offline   Reply With Quote
Old 09-15-2024, 05:29 AM   #10
aceflor
Wizard
aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.aceflor ought to be getting tired of karma fortunes by now.
 
aceflor's Avatar
 
Posts: 3,471
Karma: 48036360
Join Date: Aug 2009
Location: where the sun lives, or so they say
Device: Pocketbook Era, Pocketbook Inkpad 4, Kobo Libra 2, Kindle Scribe
Works like a charm on my Libra2. Thanks !
aceflor is offline   Reply With Quote
Old 09-16-2024, 02:50 AM   #11
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,851
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
I seem to recall the folks putting out the patches stating they would not offer these sort of patches because it could lead to Kobo locking down their firmware to prevent patching.

None of the current patches offer off-device functionality that is exclusive to any device(s).

So I suspect this patch won’t be in an official release from Geek when the time comes.
MGlitch is offline   Reply With Quote
Old 09-28-2024, 02:09 PM   #12
gereksizuser
Member
gereksizuser began at the beginning.
 
gereksizuser's Avatar
 
Posts: 17
Karma: 10
Join Date: Aug 2021
Device: Kobo Aura Edition 2
I want to try this patch, but I'm not sure how to add the shared .yaml file to the patch file? Will the patch work if I do it like this?

1) Put the "cloud_sync.yaml" file in the src folder in the zip file and
2) in the patches section of the kobopatch.yaml file; If I add the line
"src/cloud_sync.yaml: usr/local/Kobo/cloud_sync"

Thank you in advance.

Last edited by gereksizuser; 09-28-2024 at 02:17 PM.
gereksizuser is offline   Reply With Quote
Old 10-01-2024, 08:17 AM   #13
Dirk-71
Zealot
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 134
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo: Libra 2, Aura One, Glo HD, Clara 2E
Dropbox works fine. Google Drive doesn't work at all. I get a blank screen and cannot do anything. I have used the original patch. Kobo Libra 2.
Dirk-71 is offline   Reply With Quote
Old 10-01-2024, 05:50 PM   #14
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 884
Karma: 270656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by Dirk-71 View Post
Google Drive doesn't work at all. I get a blank screen and cannot do anything.
Add to Kobo eReader.conf
Code:
googledrive_link_account_start=https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive
As far as I remember, geek1011 was against this and similar patches.
Semwize is offline   Reply With Quote
Old 10-02-2024, 03:26 AM   #15
xyclonei
Zealot
xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.
 
xyclonei's Avatar
 
Posts: 106
Karma: 67444
Join Date: Dec 2018
Device: Kobo Clara HD
From a discussion on NickelMenu's GitHub repo (link), it is possible to enable Google Drive on unsupported devices with just a modified NickelMenu and an eReader.conf edit.
xyclonei is offline   Reply With Quote
Reply

Tags
kobopatch

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Support for more cloud services: Google Drive, Dropbox, etc. fsantini Kobo Developer's Corner 111 07-25-2024 06:35 AM
Does the Kobo Aura support Moon+ and Google Drive / Dropbox? MISTER READER Android Devices 1 09-23-2018 04:13 PM
Aura Can't download from Dropbox, freezes on Google Drive cptnmo01 Kobo Reader 4 01-09-2015 08:15 PM
Dropbox or Google Drive as library location arturg Calibre 9 02-11-2014 07:49 AM


All times are GMT -4. The time now is 04:45 PM.


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