![]() |
#166 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
It seems strange to me, just from the numbering, that your device went from firmware 5.6.1.anything to 5.6.2.something. See: https://www.mobileread.com/forums/sho...d.php?t=262279 But it looks like that is what they did (went from 5.6.1.0.6 to 5.6.2.1). See: http://www.amazon.com/gp/help/custom...deId=200203720 Unless that 2nd gen PW list is in error (which has also happened in the past). Last edited by knc1; 07-11-2015 at 09:18 PM. |
|
![]() |
![]() |
![]() |
#167 | ||
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 18445
Join Date: Apr 2014
Device: Kindle PW5 (11th gen, 6.8in)
|
Quote:
Quote:
I've given you a log and there is nothing about UNLOCKING A BACK DOOR, so I'm sure it's unpredicted behavior of BackDoorLock hack and another silent update to 5.6.x FW. So I'll try to be very careful, I think as an alternative I'll leave only 50 Mb of space when switchin the Aiplane Mode off. I think I'll even create script for it, my idea was to create a large dummy file and update it's filesize manually by KUAL or PC. |
||
![]() |
![]() |
![]() |
#168 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
- - - - I can't recall how FAT32 handles 'sparse' files, but try that first, just write the last (erase block size) block. I.E: dd if=/dev/zero bs=4096 seek=250K count=1 of=space_waste.txt If FAT32 can do that without writing the 250K blocks that where skipped on output, it will be both faster and less wear on the flash (only one write command). |
|
![]() |
![]() |
![]() |
#169 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 18445
Join Date: Apr 2014
Device: Kindle PW5 (11th gen, 6.8in)
|
FAT32 does not support "sparse" attribute... ( info: http://mldonkey.sourceforge.net/Sparse_files ) So I would have to find out some other solution...
I have another idea of non-deletable FAT32 file (update.bin.tmp.partial) http://superuser.com/questions/42421...n-an-usb-drive , but I'm not sure it will help with Linux on Kindle and it's way to silently download OTA updates... What do you think? Do you have a fast way to test it out? *(if not I can test it out myself later this week, I would need to lower my FW, I haven't done it but I've seen it and it doesn't look too hard) |
![]() |
![]() |
![]() |
#170 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I suppose we could think of that as the Windows version of "Immutable" - at least for our purposes. I don't have a ready-to-run solution for setting those bits in the FAT32 directory - But it should not be too hard to make one (maybe runnable via a KUAL menu entry). If you have access to a Linux PC, then you can easily get a copy of the FAT32 backing store - including MBR, Partition table, Directory, and data area. See: https://www.mobileread.com/forums/sho...d.php?t=262358 (and maybe the older write-up). And under Linux, that file copy of the backing store device can be used just as if it was a real device (that is what losetup does, a file -> device translation). Handy for testing out utilities for diddling the FAT32 directory entries. It will not matter to the final solution if the user only has Windows on their PC - we have Linux on the Kindle, which is where the bit diddle utility will eventual run. And that may be where we have trouble - the Linux FAT32 driver may not respond the same way to those hidden bits that the Windows driver/system does. But certainly worth spending some time trying it out. If your going to downgrade and then let the device attempt to download the OTA update (hopefully aborting its download before it completes) - One of the things to check for, is the '.tmp' sub-string part of the temporary filename. It has been reported that perhaps 5.6.x does not include that in the temporary filename. And that might be why the current Backdoor Lock fails (its expecting the wrong temporary filename). - - - - Note: to only diddle the directory entries - you only need the first 8196 bytes (two flash erase blocks, 16 logical sectors) of the backing store. That will get you the FAT32 MBR, Partition table, and Directory (without the 2g data area). Last edited by knc1; 07-15-2015 at 09:02 AM. |
|
![]() |
![]() |
![]() |
#171 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 18445
Join Date: Apr 2014
Device: Kindle PW5 (11th gen, 6.8in)
|
I've created update.bin.tmp.partial file on my Kindle, then with a help of Active@ Disk Editor (on my pc) I've changed file attributes to 42 and I couldn't remove it on my PC, but I removed it through KTerm rm command quite easily. So I'll downgrade/upgrade and test this method later but I don't have too high hopes.
Also I'll note all files and changes, maybe there is a better solution somewhere out there ) I haven't looked on BackDoorLock itself maybe I'll understand it and get what chaged or what has an issue ) P.S. Funny thing it's the 42 ) |
![]() |
![]() |
![]() |
#172 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Create two directories:
Kindle:/update.bin.tmp.partial and Kindle:/update.bin.partial Then set the y bit (and maybe hidden and/or system) on those. |
![]() |
![]() |
![]() |
#173 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yup, vfat doesn't care about reserved bits, won't help on Linux
![]() |
![]() |
![]() |
![]() |
#174 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The jailbreak already mounts the userstore as "exec", yes? Just set it as "sys_immutable" as well. Then the backDoorLock can mark a directory with ATTR_SYS. (Is there any common utility that can set these vfat flags?
![]() Of course, Amazon is just going to read this thread and "fix" that too. ![]() |
![]() |
![]() |
![]() |
#175 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Except that /mnt/us is a weird fuse proxy, which doesn't give a crap about FAT32 attributes ;/. I'm not even sure vfat doesn't already handle those in a very lenient fashion anyway...
I can't remember right now if I actually went to the trouble of double-checking on device with fatattr, but I *think* I did. |
![]() |
![]() |
![]() |
#176 |
SQUIRREL!!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,636
Karma: 8400000
Join Date: Nov 2010
Location: California
Device: K-Fire, PW2, PW3
|
I'm a little confused by the last series of posts.... they would suggest that the BackDoorLock does not currently stop OTA updates on the PW2 FW> 5.6.* (and possibly the PW 1?). Is this correct or did I misinterpret things?
Thanks! |
![]() |
![]() |
![]() |
#177 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 40200
Join Date: Jun 2012
Device: Kindle PW3, Kindle 4
|
Quote:
It didn't work for me on PW2, and others had similar experiences too. |
|
![]() |
![]() |
![]() |
#178 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#179 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 40200
Join Date: Jun 2012
Device: Kindle PW3, Kindle 4
|
|
![]() |
![]() |
![]() |
#180 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Nothing personal intended that I didn't recall the specifics of yours. - - - - - Could you check if your 5.6.2.1 can be downgraded for us? The PW-1 installation of 5.6.1.1 can be downgraded, see: https://www.mobileread.com/forums/sho...d.php?t=263411 If you can, then I will ask you to let it start downloading the 5.6.2.1 OTA update (again), but to take the Kindle off-line before the download completes so we can learn what filenames are being used. |
|
![]() |
![]() |
![]() |
Tags |
k3 k4 k5 kpw backdoorlock |
|
![]() |
||||
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 |