Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-11-2015, 09:13 PM   #166
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Dexmaster View Post
I've checked that one, that's the same zip, even file dates are same...
I guess that I was wrong then, the Backdoor Lock was "fixed" as long ago as those dates show.

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.
knc1 is offline   Reply With Quote
Old 07-12-2015, 06:14 PM   #167
Dexmaster
Connoisseur
Dexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a Texan
 
Dexmaster's Avatar
 
Posts: 72
Karma: 18445
Join Date: Apr 2014
Device: Kindle PW5 (11th gen, 6.8in)
Quote:
Originally Posted by knc1 View Post
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
I have Airplane mode always on, so I have checked and I had a Kindle PW2 with a FW "5.6.1". Then I switched Airplane mode off, and after a day of it I've got FW "5.6.2.1", I still had JB but I needed to reinstall all hacks I used.

Quote:
Originally Posted by knc1 View Post
Unless that 2nd gen PW list is in error (which has also happened in the past).
I'm not sure I understood correctly, If needs be I can replicate the same thing by rolling back a firmware image over my device. Then update it to 5.6.1 and check one more time, but I'm sure this error would persist.

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.
Dexmaster is offline   Reply With Quote
Old 07-12-2015, 08:32 PM   #168
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Dexmaster View Post
- - - -
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.
That second link (the one you cut out from your quote) shows that Amazon did indeed go from a 5.6.1 to a 5.6.2.

- - - -

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).
knc1 is offline   Reply With Quote
Old 07-15-2015, 08:25 AM   #169
Dexmaster
Connoisseur
Dexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a Texan
 
Dexmaster's Avatar
 
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)
Dexmaster is offline   Reply With Quote
Old 07-15-2015, 08:55 AM   #170
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Dexmaster View Post
- - - - -
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?
- - - - -
Nice find.
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.
knc1 is offline   Reply With Quote
Old 07-15-2015, 09:22 AM   #171
Dexmaster
Connoisseur
Dexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a TexanDexmaster might easily be mistaken for a Texan
 
Dexmaster's Avatar
 
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 )
Dexmaster is offline   Reply With Quote
Old 07-15-2015, 10:06 AM   #172
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
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.
knc1 is offline   Reply With Quote
Old 07-15-2015, 01:48 PM   #173
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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 .
NiLuJe is offline   Reply With Quote
Old 07-16-2015, 11:15 AM   #174
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Old 07-17-2015, 09:31 AM   #175
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 07-30-2015, 12:04 PM   #176
GoSharks
SQUIRREL!!
GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.
 
GoSharks's Avatar
 
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!
GoSharks is offline   Reply With Quote
Old 07-30-2015, 02:54 PM   #177
juan_carlos
Enthusiast
juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.
 
Posts: 41
Karma: 40200
Join Date: Jun 2012
Device: Kindle PW3, Kindle 4
Quote:
Originally Posted by GoSharks View Post
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!

It didn't work for me on PW2, and others had similar experiences too.
juan_carlos is offline   Reply With Quote
Old 07-30-2015, 03:48 PM   #178
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by juan_carlos View Post
It didn't work for me on PW2, and others had similar experiences too.
Your PW-2 was updated from <what version> to <what other version> ?
knc1 is offline   Reply With Quote
Old 07-31-2015, 02:27 AM   #179
juan_carlos
Enthusiast
juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.juan_carlos writes the songs that make the whole world sing.
 
Posts: 41
Karma: 40200
Join Date: Jun 2012
Device: Kindle PW3, Kindle 4
Quote:
Originally Posted by knc1 View Post
Your PW-2 was updated from <what version> to <what other version> ?
From 5.6.1.0.6 to 5.6.2.1 with bdl12 in locked state. But I already reported this in #154 and #159.
juan_carlos is offline   Reply With Quote
Old 07-31-2015, 07:42 AM   #180
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by juan_carlos View Post
From 5.6.1.0.6 to 5.6.2.1 with bdl12 in locked state. But I already reported this in #154 and #159.
I read a lot of reports.
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.
knc1 is offline   Reply With Quote
Reply

Tags
k3 k4 k5 kpw backdoorlock


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:03 AM.


MobileRead.com is a privately owned, operated and funded community.