Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4459

BackDoorLock hack - prevents silent updates

$
0
0
This simple hack has only one purpose: stop Amazon from updating your Kindle silently without your explicit consent.
It is intended for users who believe in "My device - my rules" principle.

It doesn't stop Kindle from downloading the update file but once it is downloaded, any silent installation attempt fails instantly in an early stage without depleting the battery and intercepting the GUI.
The update file is preserved after such failed attempt and thus it is not downloaded again and again.
Full updates are recognized during the attempt and a countermeasure is deployed (dummy update file update__this-file-prevents-installing-on-reboot.bin is created to confuse the boot-time updater)

Manual update triggered by user is still possible (i.e. selecting "Update Your Kindle" in the menu).

It was tested on Kindle 4 but should work on any Kindle.

You can install the hack as a classic update bundle or a KUAL extension. Please do not install both.

Spoiler:

Here is how it works:

It replaces the line
Code:

_UPDATE_WAIT="/usr/sbin/updatewait"
in /etc/updater.conf with this one:
Code:

_UPDATE_WAIT="$(if [ -x /mnt/us/backdoorlock/updatewait ]; then echo /mnt/us/backdoorlock/updatewait; else echo /usr/sbin/updatewait; fi)"
Wrapper script /mnt/us/backdoorlock/updatewait passes any calls to /usr/sbin/updatewait but only if called with parameter -i (immediate/interactive) - that's how "Update Your Kindle" calls it.
OTOH silent updates call updatewait without any parameters and such attempts are intercepted and logged to /mnt/us/backdoorlock/update.log or /mnt/us/extensions/backdoorlock/update.log .

Attached Files
File Type: zip backdoorlock_3.zip (21.9 KB)
File Type: zip backdoorlock_kual_3.zip (3.9 KB)
File Type: gz backdoorlock_3_src.tar.gz (119.8 KB)

Viewing all articles
Browse latest Browse all 4459

Trending Articles