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 11-30-2023, 10:48 AM   #31
lumping-sugar66
Enthusiast
lumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than mom
 
lumping-sugar66's Avatar
 
Posts: 26
Karma: 78045
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
So, more progress. I've had some success!

I wanted to triple-check the symbols availability on the device and change the nh.c to dump all the available symbols to a text file, and then I checked for the symbols from working mods vs. unsuccessful attempts of mine.

Sure enough, "_ZN11ReadingView19readerIsDoneLoadingEv" is on this list (nickelclock)

But, "_ZN20OverDriveActionProxy16setShowOverDriveEb " is not. Some of the other symbols I've tried are not there as well.

I ended up basing my search on this list instead of Ghidra and symdump results, and for this use case of forcing OverDrive, thankfully, there's a "_ZN20OverDriveCardManager18isOverDriveEnabled Ev". I hooked onto that and overridden the internal logic, and sure enough, the mod works with no hiccup.

So I'm not sure if it's the particular libnickel.so.1.0.0 that doesn't expose these symbols in some way or make them available to nickelhook, but I think I'll base my search for hookable symbols on that list and proceed with other tools to see the decompilation result, unless there's other suggestions.

FWIW, I'm sharing that list here: https://gist.github.com/onatbas/a203...0968ab9aee3db2
lumping-sugar66 is offline   Reply With Quote
Old 11-30-2023, 01:14 PM   #32
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
You know you can just dump the symbols using nm right?

Anyway, you probably had a firmware version mismatch or something. Symbols are often only found in later firmware versions. Sometimes they are also removed.
sherman is offline   Reply With Quote
Advert
Old 12-01-2023, 01:02 AM   #33
lumping-sugar66
Enthusiast
lumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than mom
 
lumping-sugar66's Avatar
 
Posts: 26
Karma: 78045
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
I guess I don’t. Which tool is that?

Also, I need some help with getting the qt resources exported. The qrc2zip instructions are to look for some registration and init calls to get the parameters required but I’m seeing to trace to these calls. shermp, I see in your code you act based on the design and structure of these internal qt files. Is there an easy way to get them or the parameter set for qrc2zip?

Thank you.

FWIW: I was playing around with the DragonQuiltedPowerView method and hooking into it , getting the size written to see which widget it was etc. and managed to completely factory reset the device. No idea how that happened, but creating mods aren’t as safe as I initially thought!
lumping-sugar66 is offline   Reply With Quote
Old 12-01-2023, 02:07 AM   #34
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
For the Qt resources, I don't bother getting them myself. In the kobo-patches repository, geek1011 extracts them on every firmware issue. Just find the issue for the latest firmware and look for the comment that includes them.

Once you have the zip file, the file structure inside tells you what path to use.

As far as nm is concerned, it is generally installed as part of the standard binutils package on any linux distro. Therefore it should also be available in the nickeltc docker container, if you aren't already developing on linux.
sherman is offline   Reply With Quote
Old 12-01-2023, 08:25 AM   #35
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,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by lumping-sugar66 View Post
Also, I need some help with getting the qt resources exported. The qrc2zip instructions are to look for some registration and init calls to get the parameters required but I’m seeing to trace to these calls. shermp, I see in your code you act based on the design and structure of these internal qt files. Is there an easy way to get them or the parameter set for qrc2zip?
https://github.com/pgaskin/qrc/blob/...ipts/armqrc.py

Quote:
FWIW: I was playing around with the DragonQuiltedPowerView method and hooking into it , getting the size written to see which widget it was etc. and managed to completely factory reset the device. No idea how that happened, but creating mods aren’t as safe as I initially thought!
It's always riskier hooking stuff which is used before getting to the home screen. It's also possible that something you did (not necessarily in the mod itself) interfered with the database, which would cause a reset. Mods should always be safer than nearly all other methods, though, since they remove themselves eventually, and they only load when nickel loads.
geek1011 is offline   Reply With Quote
Advert
Old 12-02-2023, 03:30 PM   #36
lumping-sugar66
Enthusiast
lumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than momlumping-sugar66 loves his/her reader more than mom
 
lumping-sugar66's Avatar
 
Posts: 26
Karma: 78045
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
Thank you guys for your help.

I just shared my first mode in another thread. Couldn’t have done it without your support.
https://www.mobileread.com/forums/sh...d.php?t=357540
lumping-sugar66 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kindle Touch] Calibre Kindle Collections Plug-in Hooks sumpin Kindle Developer's Corner 68 11-30-2012 06:20 PM
Finding my posts melmac Feedback 5 08-30-2011 02:34 PM
Need help finding an e-reader please Pica Which one should I buy? 28 12-19-2010 09:26 AM
Hooks, They Ain't That Easy plumboz Writers' Corner 8 05-03-2010 08:28 PM
Need help finding this book Katosen Reading Recommendations 5 09-10-2009 09:42 PM


All times are GMT -4. The time now is 01:38 PM.


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