From 584cb757cd1eb60c421a862202273b8355bc5670 Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 15 Apr 2015 11:23:13 +0800 Subject: [PATCH] add whisper touch support for Kindle Voyage --- ChangeLog.txt | 4 ++++ build-updates.sh | 3 ++- install.ffs | 8 ++++++++ whispertouch.install.sql | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 whispertouch.install.sql diff --git a/ChangeLog.txt b/ChangeLog.txt index 89bc817..de09fed 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2015-04-15 10:57 chrox + + * add whisper touch support for Kindle Voyage + 2014-11-27 20:32 chrox * add support for firmware version 5.6.1 diff --git a/build-updates.sh b/build-updates.sh index 7baf5bd..c30c2b9 100755 --- a/build-updates.sh +++ b/build-updates.sh @@ -2,7 +2,7 @@ HACKNAME="kpvbooklet" PKGNAME="${HACKNAME}" -PKGVER="0.5.8" +PKGVER="0.6.0" # We need kindletool (https://github.com/NiLuJe/KindleTool) in $PATH if (( $(kindletool version | wc -l) == 1 )) ; then @@ -28,6 +28,7 @@ fi cp -f install.ffs build/install/install.ffs cp -f build/jar/KPVBooklet.jar build/install/KPVBooklet.jar cp -f mimes.install.sql build/install/mimes.install.sql +cp -f whispertouch.install.sql build/install/whispertouch.install.sql cp -f uninstall.ffs build/uninstall/uninstall.ffs cp -f mimes.uninstall.sql build/uninstall/mimes.uninstall.sql diff --git a/install.ffs b/install.ffs index b45a372..bd8fc21 100755 --- a/install.ffs +++ b/install.ffs @@ -44,6 +44,14 @@ fi progress 40 "Updating appreg.db" sqlite3 /var/local/appreg.db < mimes.install.sql +if [ "$VERSION" \> "5.6" ]; then + WHISPERTOUCH=`sqlite3 /var/local/appreg.db .dump|grep "'whisper-touch','supported'"|wc -l` + if [ "$WHISPERTOUCH" \> 0 ]; then + progress 50 "Enable whisper touch for Kindle Voyage" + sqlite3 /var/local/appreg.db < whispertouch.install.sql + fi +fi + if [ "$VERSION" \> "5.4" ]; then progress 70 "Creating the userstore exec flag file" touch "/MNTUS_EXEC" diff --git a/whispertouch.install.sql b/whispertouch.install.sql new file mode 100644 index 0000000..01b593e --- /dev/null +++ b/whispertouch.install.sql @@ -0,0 +1 @@ +INSERT OR IGNORE INTO "properties" VALUES('com.github.koreader.kpvbooklet','whisper-touch','supported');