Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2021, 12:51 AM   #31
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,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Download the attached zip file and extract it into the hidden .kobo folder on the device. The old privacy settings will be temporarily available after the device reboots.

Spoiler:
Code:
#include <QString>
#include <fcntl.h>
#include <NickelHook.h>

QString (*kpp_hook_orig)(void*);

static struct nh_info KoboPrivacyPermissions = {
    .name           = "KoboPrivacyPermissions",
    .desc           = "Switches back to the old privacy settings for the next boot.",
    .uninstall_flag = "/mnt/onboard/kpp_uninstall",
};

static struct nh_hook KoboPrivacyPermissionsHook[] = {
    {.sym = "_ZN23OneStoreServiceSettings18privacySettingsUrlEv", .sym_new = "_kpp_hook", .lib = "libnickel.so.1.0.0", .out = nh_symoutptr(kpp_hook_orig), .desc = "[OneStoreServices] kobo_privacyCentre_url", .optional = true},
    {0},
};

static struct nh_dlsym KoboPrivacyPermissionsDlsym[] = {
    {0},
};

static int kpp_init() {
    if (!kpp_hook_orig)
        nh_log("failed to hook privacySettingsUrl");
    creat(KoboPrivacyPermissions.uninstall_flag, 0644);
    return 0;
}

NickelHook(
    .init  = kpp_init,
    .info  = &KoboPrivacyPermissions,
    .hook  = KoboPrivacyPermissionsHook,
    .dlsym = KoboPrivacyPermissionsDlsym,
)

extern "C" __attribute__((visibility("default"))) QString _kpp_hook(void*) {
    return QString();
}
Code:
include NickelHook/NickelHook.mk

override LIBRARY  := libkoboprivacypermissions.so
override SOURCES  += src/koboprivacypermissions.cc 
override CFLAGS   += -Wall -Wextra -Werror
override CXXFLAGS += -Wall -Wextra -Werror -Wno-missing-field-initializers

include NickelHook/NickelHook.mk
Attached Files
File Type: zip KoboPrivacyPermissions.zip (11.8 KB, 93 views)

Last edited by geek1011; 02-24-2021 at 02:34 PM.
geek1011 is offline   Reply With Quote
Old 02-24-2021, 01:40 PM   #32
Pam R
Connoisseur
Pam R began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Dec 2019
Device: Kobo Clara HD
Quote:
Originally Posted by geek1011 View Post
Download the attached zip file and extract it into the hidden .kobo folder on the device. The old privacy settings will be temporarily available after the device reboots.

Spoiler:
Code:
#include <QString>
#include <fcntl.h>
#include <NickelHook.h>

QString (*kpp_hook_orig)(void*);

static struct nh_info KoboPrivacyPermissions = {
    .name           = "KoboPrivacyPermissions",
    .desc           = "Switches back to the old privacy settings for the next boot.",
    .uninstall_flag = "/mnt/onboard/kpp_uninstall",
};

static struct nh_hook KoboPrivacyPermissionsHook[] = {
    {.sym = "_ZN23OneStoreServiceSettings18privacySettingsUrlEv", .sym_new = "_kpp_hook", .lib = "libnickel.so.1.0.0", .out = nh_symoutptr(kpp_hook_orig), .desc = "[OneStoreServices] kobo_privacyCentre_url", .optional = true},
    {0},
};

static struct nh_dlsym KoboPrivacyPermissionsDlsym[] = {
    {0},
};

static int kpp_init() {
    if (!kpp_hook_orig)
        nh_log("failed to hook privacySettingsUrl");
    creat(KoboPrivacyPermissions.uninstall_flag, 0644);
    return 0;
}

NickelHook(
    .init  = kpp_init,
    .info  = &KoboPrivacyPermissions,
    .hook  = KoboPrivacyPermissionsHook,
    .dlsym = KoboPrivacyPermissionsDlsym,
)

extern "C" __attribute__((visibility("default"))) QString _kpp_hook(void*) {
    return QString();
}

Thank you for you trouble, it worked beautifully once then went back to the referring me to kobo privacy.
Pam R is offline   Reply With Quote
Advert
Old 02-24-2021, 02:34 PM   #33
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,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Pam R View Post
Thank you for you trouble, it worked beautifully once then went back to the referring me to kobo privacy.
That was intentional. If you want a permanent one, I've attached it below.

Spoiler:
Code:
#include <QString>
#include <NickelHook.h>

QString (*kpp_hook_orig)(void*);

static struct nh_info KoboPrivacyPermissions = {
    .name            = "KoboPrivacyPermissions",
    .desc            = "Switches back to the old privacy settings.",
    .uninstall_flag  = "/mnt/onboard/kpp_uninstall",
    .uninstall_xflag = "/mnt/onboard/.kobo/use_old_privacy_settings"
};

static struct nh_hook KoboPrivacyPermissionsHook[] = {
    {.sym = "_ZN23OneStoreServiceSettings18privacySettingsUrlEv", .sym_new = "_kpp_hook", .lib = "libnickel.so.1.0.0", .out = nh_symoutptr(kpp_hook_orig), .desc = "[OneStoreServices] kobo_privacyCentre_url", .optional = false},
    {0},
};

static struct nh_dlsym KoboPrivacyPermissionsDlsym[] = {
    {0},
};

NickelHook(
    .init  = nullptr,
    .info  = &KoboPrivacyPermissions,
    .hook  = KoboPrivacyPermissionsHook,
    .dlsym = KoboPrivacyPermissionsDlsym,
)

extern "C" __attribute__((visibility("default"))) QString _kpp_hook(void*) {
    return QString();
}
Code:
include NickelHook/NickelHook.mk

override LIBRARY  := libkoboprivacypermissions.so
override SOURCES  += src/koboprivacypermissions.cc 
override CFLAGS   += -Wall -Wextra -Werror
override CXXFLAGS += -Wall -Wextra -Werror -Wno-missing-field-initializers
override KOBOROOT += src/use_old_privacy_settings:/mnt/onboard/.kobo/use_old_privacy_settings

include NickelHook/NickelHook.mk
Code:
Delete this file to go back to the default privacy settings.
Attached Files
File Type: zip KoboPrivacyPermissionsPermanent.zip (11.7 KB, 153 views)

Last edited by geek1011; 02-24-2021 at 02:40 PM.
geek1011 is offline   Reply With Quote
Old 02-24-2021, 03:45 PM   #34
Pam R
Connoisseur
Pam R began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Dec 2019
Device: Kobo Clara HD
Quote:
Originally Posted by geek1011 View Post
That was intentional. If you want a permanent one, I've attached it below.

Spoiler:
Code:
#include <QString>
#include <NickelHook.h>

QString (*kpp_hook_orig)(void*);

static struct nh_info KoboPrivacyPermissions = {
    .name            = "KoboPrivacyPermissions",
    .desc            = "Switches back to the old privacy settings.",
    .uninstall_flag  = "/mnt/onboard/kpp_uninstall",
    .uninstall_xflag = "/mnt/onboard/.kobo/use_old_privacy_settings"
};

static struct nh_hook KoboPrivacyPermissionsHook[] = {
    {.sym = "_ZN23OneStoreServiceSettings18privacySettingsUrlEv", .sym_new = "_kpp_hook", .lib = "libnickel.so.1.0.0", .out = nh_symoutptr(kpp_hook_orig), .desc = "[OneStoreServices] kobo_privacyCentre_url", .optional = false},
    {0},
};

static struct nh_dlsym KoboPrivacyPermissionsDlsym[] = {
    {0},
};

NickelHook(
    .init  = nullptr,
    .info  = &KoboPrivacyPermissions,
    .hook  = KoboPrivacyPermissionsHook,
    .dlsym = KoboPrivacyPermissionsDlsym,
)

extern "C" __attribute__((visibility("default"))) QString _kpp_hook(void*) {
    return QString();
}
Code:
include NickelHook/NickelHook.mk

override LIBRARY  := libkoboprivacypermissions.so
override SOURCES  += src/koboprivacypermissions.cc 
override CFLAGS   += -Wall -Wextra -Werror
override CXXFLAGS += -Wall -Wextra -Werror -Wno-missing-field-initializers
override KOBOROOT += src/use_old_privacy_settings:/mnt/onboard/.kobo/use_old_privacy_settings

include NickelHook/NickelHook.mk
Code:
Delete this file to go back to the default privacy settings.
My hero

Does make you wonder what went wrong in the first place.

On a different matter - One thing I did notice when fiddling around with this is that whilst my reader is not authorised with Adobe Digital Editions I can open that app and transfer files with a right click on the book straight to the Clara without having to do it from the My Digital Editions in my documents folder. So I won't bother wasting authorisations in future.

Last edited by Pam R; 02-24-2021 at 03:50 PM.
Pam R is offline   Reply With Quote
Old 02-24-2021, 06:04 PM   #35
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Pam R View Post
On a different matter - One thing I did notice when fiddling around with this is that whilst my reader is not authorised with Adobe Digital Editions I can open that app and transfer files with a right click on the book straight to the Clara without having to do it from the My Digital Editions in my documents folder. So I won't bother wasting authorisations in future.
But do those books open on the device? The authorisation is about being able to decode the book on the device. Unless you have added DRM free books to ADE, I would not expect you to be able to read these books.
davidfor is offline   Reply With Quote
Advert
Old 02-24-2021, 07:03 PM   #36
Pam R
Connoisseur
Pam R began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Dec 2019
Device: Kobo Clara HD
Quote:
Originally Posted by davidfor View Post
But do those books open on the device? The authorisation is about being able to decode the book on the device. Unless you have added DRM free books to ADE, I would not expect you to be able to read these books.
Yes they do.
Pam R is offline   Reply With Quote
Old 02-24-2021, 07:21 PM   #37
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Pam R View Post
Yes they do.
Then that means either the books do not have DRM, or you have actually authorized the device. The former can be tested by opening in a viewer that does not opened books with DRM, such as the calibre viewer. The latter can be seen on the accounts page of the settings on the device.
davidfor is offline   Reply With Quote
Old 02-25-2021, 04:06 AM   #38
Pam R
Connoisseur
Pam R began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Dec 2019
Device: Kobo Clara HD
Quote:
Originally Posted by davidfor View Post
Then that means either the books do not have DRM, or you have actually authorized the device. The former can be tested by opening in a viewer that does not opened books with DRM, such as the calibre viewer. The latter can be seen on the accounts page of the settings on the device.
Oh, yes the ones I tried since deauthorising were guttenberg drm free Better reauthorise
Pam R is offline   Reply With Quote
Old 02-09-2022, 11:30 AM   #39
Pam R
Connoisseur
Pam R began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Dec 2019
Device: Kobo Clara HD
I did a manual reset today to see if it would make any difference to the battery issues I have. All went well until I checked for the "automatically share date abut the features you use" and it wasn't there again, just like before. But many thanks to geek1011 whose piece of code I have saved on my laptop, all is well again.

Very odd.
Pam R is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Libra Reading Life Activity Awards Uncle Robin Kobo Reader 16 03-20-2021 08:12 AM
Kobo Glo HD activity not updating thelittlewildone Kobo Reader 1 06-14-2018 11:44 PM
Glo Reading Activity not updating - Firmware 4.7.10413 thelittlewildone Kobo Reader 5 05-10-2018 04:29 AM
Just to confirm: reading activity not working properly on current firmware? cerem0ny Kobo Reader 3 05-08-2017 06:02 AM
Free (Kindle/Kobo) On Hosting Your Regency-Era Xmas Party [Tie-in Activity & Recipes] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-28-2014 02:56 AM


All times are GMT -4. The time now is 03:18 AM.


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