From 11df9f3e211b5b081cf569bfbfe27c393da08d87 Mon Sep 17 00:00:00 2001 From: Jay Logan Date: Sat, 23 Oct 2021 23:39:19 -0500 Subject: [PATCH] Patches v72, firmware 4.28.18220 Updated NickelMenu config Added script to merge NickelMenu into patched KoboRoot.tgz --- kobopatch.yaml | 2 +- merge-nm.sh | 12 +++ other-conf/nickelmenu/doc | 64 ++++++++++-- other-conf/nickelmenu/nickel | 1 + src/libadobe.so.yaml | 2 +- src/libnickel.so.1.0.0.yaml | 189 +++++++++++++++++------------------ src/nickel.yaml | 126 ++++++++++------------- 7 files changed, 218 insertions(+), 178 deletions(-) create mode 100755 merge-nm.sh diff --git a/kobopatch.yaml b/kobopatch.yaml index ef49f8b..c6944b3 100644 --- a/kobopatch.yaml +++ b/kobopatch.yaml @@ -1,5 +1,5 @@ ## Sixthhokage1's kobopatch config -version: 4.26.16704 +version: 4.28.18220 in: src/latest.zip out: out/KoboRoot.tgz log: out/log.txt diff --git a/merge-nm.sh b/merge-nm.sh new file mode 100755 index 0000000..850b0d3 --- /dev/null +++ b/merge-nm.sh @@ -0,0 +1,12 @@ +# modified from NiLuJe's autopatch.sh: http://trac.ak-team.com/trac/browser/niluje/Configs/trunk/Kindle/Kobo_Hacks/Patches/autopatch.sh + +echo "Uncompressing tarballs" +gunzip -c bin/NM.tgz > NM.tar +gunzip -c out/KoboRoot.tgz > KoboPatch.tar +echo "Merging tarballs" +tar -Avf NM.tar KoboPatch.tar +echo "Compressing merged tarball" +gzip NM.tar +echo "Collecting garbage" +rm out/KoboRoot.tgz KoboPatch.tar +mv -v NM.tar.gz out/KoboRoot.tgz diff --git a/other-conf/nickelmenu/doc b/other-conf/nickelmenu/doc index 675c33c..9d7e67b 100644 --- a/other-conf/nickelmenu/doc +++ b/other-conf/nickelmenu/doc @@ -1,9 +1,10 @@ # NickelMenu (libnm.so) +# https://pgaskin.net/NickelMenu # # This tool injects menu items into Nickel. # # It should work on firmware 4.6+, but it has only been tested on 4.20.14622 - -# 4.22.15268. It is perfectly safe to try out on any newer firmware version, as +# 4.26.16704. It is perfectly safe to try out on any newer firmware version, as # it has a lot of error checking, and a failsafe mechanism which automatically # uninstalls it as a last resort. # @@ -15,11 +16,39 @@ # Adds a menu item. # # the menu to add the item to, one of: -# main - the menu in the top-left corner of the home screen -# (in firmware 4.23.15505+, this menu was removed, so a new item will be added to the tabs on the bottom-right) -# reader - the overflow menu in the reader -# browser - the menu in the bottom-right of the web browser -# library - the menu in the filter bar for the "My Books" and "My Articles" library views +# main - the menu in the top-left corner of the home screen +# (in firmware 4.23.15505+, this menu was removed, so a new item will be added to the tabs on the bottom-right) +# reader - the overflow menu in the reader +# browser - the menu in the bottom-right of the web browser +# library - the menu in the filter bar for the "My Books" and "My Articles" library views +# selection - the selection menu (4.20.14622+) +# all arguments will support substitutions in the form {A|B|C} as follows (see the end of this file for examples): +# A is the string to substitute +# 1 - current selection +# B is zero or more transformations applied from left to right: +# a - all to lowercase +# A - all to uppercase +# f - keep everything up to the first whitespace character +# n - remove non-alphanumeric +# s - trim whitespace +# S - normalize whitespace (trim, then collapse multiple whitespace chars) +# u - replace whitespace with underscores +# w - remove all whitespace +# x - special: return an error if the string is empty at this point +# C is zero or more escape methods applied from left to right: +# " - escape for double-quoted strings (JSON-compatible, C-compatible): +# " => \" +# newline => \n +# backspace => \b +# tab => \t +# form-feed => \f +# carriage-return => \r +# \ => \\ +# $ - escape for single-quoted strings (bash-compatible): +# ' => '"'"' +# % - url encode all non-alphanumeric chars +# selection_search - the search sub-menu of the selection menu (4.20.14622+) +# see above #