Quote:
Originally Posted by geek1011
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.