11-30-2023, 10:48 AM | #31 |
Connoisseur
Posts: 95
Karma: 81981
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 |
11-30-2023, 01:14 PM | #32 |
Guru
Posts: 869
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. |
Advert | |
|
12-01-2023, 01:02 AM | #33 |
Connoisseur
Posts: 95
Karma: 81981
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! |
12-01-2023, 02:07 AM | #34 |
Guru
Posts: 869
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. |
12-01-2023, 08:25 AM | #35 | ||
Wizard
Posts: 2,788
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
Quote:
|
||
Advert | |
|
12-02-2023, 03:30 PM | #36 |
Connoisseur
Posts: 95
Karma: 81981
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 |
|
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 |