![]() |
#1 |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
![]()
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). When an update attempt is detected and subfolder /documents/backdoorlock exists in your Kindle, you will find a new document named "Silent update attempt detected" containing the details on your home screen. You shouldn't ever need to disable/uninstall this hack as it doesn't stop you from installing anything manually. The only exception is when an incremental update needs to patch the file /etc/updater.conf - such update would fail with an error. Only then you would need to uninstall the hack or deactivate it with KUAL. You would also need to reinstall/reactivate the hack after installing a full update (the huge one). It was tested on Kindle 3 and Kindle 4 but should work on any Kindle, PW2 included. Silent update detection does not work on Kindle Touch and Kindle Paperwhite as the hack uses a different method to stop silent updates on these devices. You can install the hack as a classic update bundle or a KUAL extension. Please do not install both. Installing using update bundle Make sure you have already jailbroken your Kindle. Extract backdoorlock_*version*.zip and choose an appropriate update_backdoorlock_*_install.bin file for your Kindle model: - If you have Kindle Keyboard 3G, choose update_backdoorlock_*version*_k3g_install.bin [serial number starts with B006] or update_backdoorlock_*version*_k3gb_install.bin [serial number starts with B00A] - If you have Kindle Keyboard WiFi, choose update_backdoorlock_*version*_k3w_install.bin - For all other models choose update_backdoorlock_*version*_install.bin Then copy the chosen update_*.bin file to root of your Kindle storage, safely eject your Kindle and on Kindle go to *[HOME] -> [MENU] > Settings -> [MENU] > Update Your Kindle*. Use the same steps to uninstall the hack, just use an appropriate update_backdoorlock_*_uninstall.bin file instead. Installing using KUAL (Kindle Unified Application Launcher) Make sure you have KUAL installed properly. Extract backdoorlock_kual_*version*.zip and copy the contents (the backdoorlock folder) to folder /extensions on your Kindle. Safely eject your Kindle and find five new menu items in KUAL. If you want to fully uninstall the extension, remember to unlock the back door before deleting the extension folder. If you want to read the lock state report as a document, create a subfolder /documents/backdoorlock in your Kindle. Then the report will be created in this folder everytime you select the "Lock state" menu item. On the other hand, if you don't like the onscreen reports and prefer to read the document only, create an empty file named noeips in folder /extensions/backdoorlock/ . Spoiler:
Last edited by dsmid; 12-19-2014 at 03:13 AM. Reason: removed extraneous comma in menu.json |
![]() |
![]() |
![]() |
#2 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
If unknown, please test for that and report back. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I love you. but some source would be nice.
Tidy. thanks Last edited by twobob; 02-13-2013 at 08:22 AM. |
![]() |
![]() |
![]() |
#4 | |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
Quote:
On the other hand, doing the same thing with a hack (update_loc_cz_4.1r62_k4_install.bin) gave me "Update error 3" on boot. I suppose that the initramfs beast is looking for update files with a lowercase prefix of update_ or is silently ignoring Amazon signed packages that are not full updates. I don't know how would a full update package behave on reboot though (there are no such updates for my Kindle models). It may get installed. The problem is that deleting/damaging the update file would trigger redownloading and I'm trying to avoid that. Maybe an init script purging any update files in user store scheduled to launch when Kindle is shutting down would solve the problem. Last edited by dsmid; 02-13-2013 at 08:44 AM. |
|
![]() |
![]() |
![]() |
#5 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
Thanks for the hint eureka, unfortunately Kindle 3 & 4 doesn't have /etc/todo/handler_registry.conf nor otaupd daemon.
On Kindle 3 & 4, Transfer Manager Daemon (tmd) handles the downloading part, reports back to framework via DBus when the download is complete and then the framework creates file /tmp/.framework_update (containing path to the downloaded update file) and, on the occasion of entering sleep mode, launches process_update which in turn launches updatewait which in turn launches process_update -i after some preconditions are met (battery level sufficient etc.). "Update Your Kindle" launches updatewait -i which in turn launches process_update -i. Last edited by dsmid; 02-14-2013 at 03:17 PM. |
![]() |
![]() |
![]() |
#7 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
Maybe I've got a solution.
I've extracted all strings from KPW 5.3.3 recovery_util (initramfs binary responsible for handling updates) and found this: Code:
update*.bin ERROR:Refusing to update: %d update files were found. Expected to find only one. BTW, these two strings sitting next to each other look quite interesting: Code:
turing126 PASSWORD: ![]() Last edited by dsmid; 02-13-2013 at 10:31 AM. |
![]() |
![]() |
![]() |
#9 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Spoiler:
And "Yes". probably creating a phantom update would work. I have on occasion stupidly dropped 2 .bins in the root. Needless to say they fail. both of them. Nice mental machinations! |
![]() |
![]() |
![]() |
#10 |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
Here are some confirmed facts:
Last edited by dsmid; 02-14-2013 at 09:54 AM. |
![]() |
![]() |
![]() |
#11 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Sounds much more complete. Are you going to give this on/off updater thing KUAL buttons? Although I haven't written it up anywhere specifically, I did post the complete sequence for adding one new button to the KUAL 'Helpers' menu: Start here, first post: https://www.mobileread.com/forums/sho...d.php?t=205610 That is one of the existing buttons. Then in post #3 : https://www.mobileread.com/forums/sho...98&postcount=3 The changes needed in words, and an attachment of the files in #1 after the changes. At that point, I started by adding the "helper2" code to the kBBB repo - http://hg.minimodding.com/repos/sys/...97cdb3/helper2 Which tracks all the changes from the post #3 attachment to the working DateTime button. To summarize - just a few small edits to the control files + a new script to perform the function you want to add. Last edited by knc1; 02-14-2013 at 06:50 AM. |
|
![]() |
![]() |
![]() |
#12 |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
|
![]() |
![]() |
![]() |
#13 |
Linux devotee
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
Version 2:
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)
You can install the hack as a KUAL extension now. |
![]() |
![]() |
![]() |
#14 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Topness! much obliged. Once the Touch and PW tests are in I will ditch the ? after the support numbers ![]() Excellentness. That should be word |
|
![]() |
![]() |
![]() |
#15 |
( ͡° ͜ʖ ͡°)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39
Karma: 10000
Join Date: Aug 2012
Device: O_o
|
Thanks for making this.
Unfortunately I was unable to install via the 'update_backdoorlock_2_install.bin' on a K3 3G. "update your kindle" is grayed out. Restart results in an error. (Update error: 3) |
![]() |
![]() |
![]() |
Tags |
k3 k4 k5 kpw backdoorlock |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prevents ZIPs from becoming CBZs | wladdy | Calibre | 3 | 03-01-2014 02:38 PM |
BackDoorLock | slantybard | Kindle Developer's Corner | 6 | 12-08-2013 02:50 PM |
Kual y backdoorlock | adegir1952 | Amazon Kindle | 3 | 06-14-2013 09:44 AM |
Updates Provider hack | dsmid | Kindle Developer's Corner | 51 | 05-08-2012 11:51 PM |
Request: Silent updates. | fabian | Calibre | 5 | 03-15-2011 11:34 AM |