Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intitial testing for enabling hidden notebook on kobo libra 2. #144

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Pololot64
Copy link

I did some basic research. This lets you open the notebook "app". The app doesn't function properly, however. You also cannot draw on pdfs.

@pgaskin
Copy link
Owner

pgaskin commented Sep 2, 2023

Thanks! I will take a look at this when I start working on the patch updates for the latest release (I've been away recently).

Copy link
Owner

@pgaskin pgaskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Documentation.
  • Use "notebooks" as the name for consistency.
  • It's _ZN15LibraryNavMixin13showNotebooksEv from 17623 to 19086, and _ZN14MoreController9notebooksEv from 19501.
_ZN15LibraryNavMixin13showNotebooksEv @ 19086 _ZN14MoreController9notebooksEv @ 21908
image image

@Pololot64
Copy link
Author

Is it best to write it only for the newer build versions or should there be a build check?

@pgaskin
Copy link
Owner

pgaskin commented Oct 7, 2023

Is it best to write it only for the newer build versions or should there be a build check?

Try loading both (newest one first), and if one is null, then use the other. Something like:

else if (!strcmp(arg2, "notebooks")) sym_f = dlsym(RTLD_DEFAULT, "_ZN14MoreController9notebooksEv")
    ? "_ZN14MoreController9notebooksEv"        //libnickel 4.32.19501 * _ZN14MoreController9notebooksEv
    : "_ZN15LibraryNavMixin13showNotebooksEv"; //libnickel 4.28.17623 4.31.19086 _ZN15LibraryNavMixin13showNotebooksEv

@Pololot64
Copy link
Author

Just pasted what you said :) I don't speak cpp yet. Let me go test.

@Pololot64
Copy link
Author

I have a question, I found the original string (that turned out to be wrong) by fuzzy searching in compiled binaries pulled out of the firmware. Is there a better way?

@Pololot64
Copy link
Author

So, it seems that kobo is smarter than that. As before, I can open the notebooks app. The problem is that on the creation of any note, the device requests to download the handwriting recognition pack and fails in a loop of try again dialogs. I cannot think of a way around this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants