03-23-2021, 01:01 AM | #31 |
Wizard
Posts: 1,084
Karma: 3592495
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Even with the correct update file in the internal storage Update Your Kindle button remains greyed.
So some protection exists, we hope. |
03-23-2021, 01:16 AM | #32 | |
Member
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
|
Quote:
FWIW, since the previous post I've made a few tests on my freshly jailbroken KT4. Enabling wi-fi with the ota* binaries on stock and running, the root of internal storage would start filling up with an update*.partial file within seconds of enabling an internet connection. Enabled airplane mode, connect USB to PC, deleted the update*.partial file, then ran the script from your extension to rename the ota* services, rebooted, reenabled wi-fi, and no update*.partial file shows up. For good measure, rolled back the renaming to stock, rebooted, and again the update*.partial shows up within seconds of the kindle getting an internet connection. Ran the script for a final time, rebooted, and there's no update.partial file to be seen for quite a while and counting. But again, I'd be more comfortable if more people would test this. |
|
Advert | |
|
03-23-2021, 01:31 AM | #33 |
Wizard
Posts: 1,084
Karma: 3592495
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Good to know, thanks.
What is the full name of this temporary file? Does it have some random symbols? It's a pity that old good method of the update.bin.tmp.partial folder doesn't work. |
03-23-2021, 02:05 AM | #34 | |
Member
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
|
Quote:
The finished file (if I wait for OTA do download it) has some seemingly random text at the end that kinda looks like a GUID, but with the first part apparently always the same. Here's what those finished files looked like after I let OTA finish downloading update files twice: update-3692520026-96e812dc-4b7f-4e20-96dd-5cbb7a91af12.bin update-3692520026-ecfb5355-6007-4b0b-a8d5-1d892719a050.bin The part after "3692520026" was consistent across finished downloads, so my guess is that "3692520026" is an ID that would uniquely identify a FW version for a given device model. The rest after that really looks like a GUID, and I can't think of a good reason for that to be there. |
|
03-23-2021, 02:13 AM | #35 |
Member
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
|
|
Advert | |
|
03-23-2021, 02:32 AM | #36 |
Wizard
Posts: 1,084
Karma: 3592495
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
The question is why creating the update.bin.tmp.partial folder doesn't prevent creating temporary download file with the same name on newer firmwares? Can we protect this folder against forced deleting by the system? Maybe, creating some files inside it and chmod them?
|
03-23-2021, 11:18 AM | #37 | |
Member
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
|
Quote:
|
|
03-23-2021, 12:22 PM | #38 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
IIRC, @knc1 tried to play with FAT attributes to enforce the partial as ro, and that didn't help either.
(I may be entirely misremembering that. I also don't remember if the fatattr tool is shipped by default). |
03-23-2021, 02:24 PM | #39 | |||
Grand Sorcerer
Posts: 5,531
Karma: 100606001
Join Date: Apr 2011
Device: pb360
|
Quote:
I think the reason is in the posts by NiLuJe quoted below. Quote:
Quote:
|
|||
03-23-2021, 03:00 PM | #40 | |
Member
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
|
Quote:
On the kindle, you mean? Yes, just tried it here also, it's part of busybox, so it's there, but again, even if fumbling with attributes worked, at that point we'd be restricting ourselves to rooted devices, and for that I think disabling the OTA service as per the OP is a more robust solution. |
|
03-23-2021, 07:00 PM | #41 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I never really looked into it, but I don't recall seeing fatattr calls (unlike the rm one @j.p.s reminded me of ;p).
But what might be happening is something playing with the actual filesystem instead of the fuse proxy, or vice-versa. Do try blocking both /mnt/us/whatever and /mnt/base-us/whatever, see if that changes anything. That, or they're playing with the attributes in C ;o). |
03-24-2021, 02:02 AM | #42 |
Member
Posts: 15
Karma: 10
Join Date: Jul 2018
Device: Kindle Oasis 2 (Jailbroken)
|
I extracted the KO2 5.13.3 firmware update file and took a look in IDA at rootfs.img\usr\bin\otav3 file and found the function where they detect a non valid "update.bin.tmp.partial" file:
https://i.imgur.com/mHu1vzU.png The first if just checks if it can lstat read the update file. The second if statement seems to be where it finds a "non regular file". I think stat_buf.st_mode & 1 needs to equal 0 for the function to return 0 (aka success). But I don't linux well so idk if we can change the st_mode for our update file, I have 0 clue about vFAT and linux in general. Also found the function that is in charge of deleting the file: https://i.imgur.com/HxLh73S.png If only we could pack a custom ota file, we could probably just nop parts of the function out. Altho idk what side effects there'd be, seems like a messy solution and can't xref the function to the calling function. This info is prob useless, but just thought I'd post |
03-24-2021, 02:14 AM | #43 |
Member
Posts: 15
Karma: 10
Join Date: Jul 2018
Device: Kindle Oasis 2 (Jailbroken)
|
Not sure where the edit button is, but I wanted to point out that I'm unsure what value that the return value needs to be to return successfully. Thought it was 0 at first, but realized that the func returns 0 in the first if statement block, when lstat fails
Also take anything I say skeptically, cause idk much, other than windows binary reversing |
04-03-2021, 09:02 AM | #44 |
Connoisseur
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
|
Thank, a little gem this one, since update.bin.tmp.partial is inactive
I am running 5.13.3 on my pw3 kindle... I keep my kindle on airplane mode to avoid the "nice" Amazon "automatic update".
(I think of that as an unbearable intrusion on my private life... I accept to consider that the software on MY kindle is only made available to me... I refuse to admit that it gives ANYONE BUT ME the right to change the said software... you dictator Amazon... but that is another story, excuse the rambling) Of course, this attitude from Amazon prevent me to get any book from Amazon, unless of course I can control MY KINDLE. I downloaded the "renameotabin.zip" file, unpacked it and copied it in the extentions folder in my kindle... KUAL now has a new "rename OTA binaries" entry. Inside it, I activated the Rename, the kindle rebooted... I verified that both the *ota* files are renamed and the no *ota* process exists... I did get out of airplane mode, waited a few minutes, the folder named "update.bin.tmp.partial" was still a folder... So I synchronized the kindle with my account in Amazon, and it did so, but did not try to download any update.bin... So A BIG THANKS for this. (needless to say, the kindle is back in airplane mode) |
04-10-2021, 08:58 PM | #45 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2021
Location: Paris
Device: FW 5.12.4 - G090VB, Kindle Basic 3 (2019) Kids Edition, KT4, KT4KE
|
Quote:
Hello ! Actually, I'm running Firmware 5.12.4 on "G090VB, Kindle Basic 3 (2019) Kids Edition, KT4, KT4KE" and I want to use wifi (for registered my Amazon's account and for send email with pdf/epub to my Kindle). At this moment, i never use wifi (only airplane mode). So, someone could help me please ? For information, actually i already did this : 1) Jailbreak (with "kindlejailbreak") 2) Use "Jailbreak Hotfix" 3) Install "kual-mrinstaller-1.7.N-r18392.tar" 4) Then install "Update_KUALBooklet_44a61b6_install.bin" And after that, like you said, i did this : 1) Download "renameotabin.zip" 2) Copy with my PC the folder "renameota" in the folder "extensions" of my Kindle 3) Launch on the Kindle the app "Kual", then "Rename OTA binaries" and then "Rename" (ps: because i do not sure to understand why we have a button "Restore"). 4) Like you, my Kindle reboot just after I touch "Rename" and finally....nothing for me ! In fact, before i use Wifi for the first time, someone can explain to me what does the end of the previous message of "lrpirlet" means please ? PS: Because i do not see *ota* files, neither a " folder named 'update.bin.tmp.partial'" in my Kindle (and I do not want to loose the jailbreak) Thank you very very much in advance for your help ! |
|
Tags |
renameotabin, update blocker |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to format /mnt/us to ext3/4 to block OTA? | zaoqi | Kindle Developer's Corner | 7 | 11-29-2019 06:45 AM |
Can /etc/hosts be used to block OTA updates? | zaoqi | Kindle Developer's Corner | 1 | 08-18-2019 10:35 AM |
OTA blocking | knc1 | Kindle Developer's Corner | 12 | 02-27-2018 01:30 PM |
Block OTA before connecting wifi to register? | Pajamaman | Kindle Developer's Corner | 2 | 10-21-2017 11:12 PM |
5.6.1 OTA Update | lredgen | Kindle Developer's Corner | 2 | 12-17-2014 07:07 PM |