07-22-2024, 11:09 AM | #1 |
Wizard
Posts: 2,806
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Full vs. incremental updates
Ok, most of you all know this stuff, but just to restate the obvious.
A full update has all (most) of the system stuff you need on your device to run. It makes no presumptions of what system data you currently have on your device. On the other hand, it can refuse to update to an older version. On Onyx a full update is about 1.5 GB or so. An incremental update contains modifications to existing sytem data on your device. It presumes that it is modifying a specific, known, last installed, full version. If you have modified anything by rooting or hacking there may be complications. On Onyx an incremental update is about 0.5 GB or so. To make things a bit more complicated, a single update may be partially full and partially incremental. As an example, here is the last Poke5P full update: Code:
Partition New Operations -------------- ------ -------------------------------------- boot 96.0 M REPLACE[3], REPLACE_XZ[6], REPLACE_BZ[39] dtbo 8.00 M REPLACE_XZ[1], REPLACE_BZ[3] product 389 M REPLACE[26], REPLACE_XZ[168], REPLACE_BZ[1] system 2.09 G REPLACE[59], REPLACE_XZ[992], REPLACE_BZ[21] system_ext 286 M REPLACE[13], REPLACE_XZ[127], REPLACE_BZ[3] vbmeta 8.00 k REPLACE_XZ[1] vbmeta_system 4.00 k REPLACE_XZ[1] vendor 487 M REPLACE[1], REPLACE_XZ[242], REPLACE_BZ[1] xbl 3.01 M REPLACE_XZ[2] But the ones that it does have, it fully overwrites. If you replaced the boot image for Magisk you won't have root afterwards, but it won't explode. Here is a Poke5P incremental update: Code:
Partition Old New Operations -------------- ------ ------ -------------------------------------- abl 148 k REPLACE_XZ[1] boot 96.0 M 96.0 M ZERO[40], SOURCE_COPY[1], PUFFDIFF[1], BROTLI_BSDIFF[1] dtbo 8.00 M 8.00 M ZERO[4], BROTLI_BSDIFF[1] product 389 M 637 M ZERO[3], REPLACE_XZ[41], REPLACE_BZ[78], SOURCE_COPY[310], PUFFDIFF[6], BROTLI_BSDIFF[56] recovery 96.0 M ZERO[35], REPLACE[3], REPLACE_XZ[9], REPLACE_BZ[1] system 2.09 G 1.92 G ZERO[5], REPLACE_XZ[67], REPLACE_BZ[147], SOURCE_COPY[1876], PUFFDIFF[30], BROTLI_BSDIFF[293] system_ext 286 M 284 M ZERO[2], REPLACE_XZ[3], REPLACE_BZ[25], SOURCE_COPY[252], PUFFDIFF[6], BROTLI_BSDIFF[110] vbmeta 8.00 k 8.00 k BROTLI_BSDIFF[1] vbmeta_system 4.00 k 4.00 k BROTLI_BSDIFF[1] vendor 487 M 487 M ZERO[3], SOURCE_COPY[800], BROTLI_BSDIFF[203] xbl 3.01 M 3.01 M ZERO[4], REPLACE_XZ[1], SOURCE_COPY[5] Note that abl is fully replaced. If you were looking just for that you could use a payload dumper and get a clean copy. The other files, like boot, can not be extracted except in the context of a device updated to a specific full update. (These printouts are from a work-in-progress utility.) Last edited by Renate; 07-28-2024 at 09:40 AM. |
07-28-2024, 09:48 AM | #2 |
Wizard
Posts: 2,806
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
I've updated the previous post a few times as I've made advances on the utility.
If you do downloading of updates yourself, it's probably good if you note down the download URL. You might want to rollback to an earlier version sometime. Also, some things like abl are being clamped down with removing fastboot flash from the bootloader. Note that there are anti-rollback provisions in these updates. There may be issues getting them to work. Code:
Anti-rollback 2024-07-01 15:50:32 |
Advert | |
|
07-29-2024, 02:30 AM | #3 |
Connoisseur
Posts: 50
Karma: 10
Join Date: Jun 2024
Device: Boox Go 10.3
|
Just checking. If you have a full backup made with EDL. And want to rollback to an earlier version sometime can I?
Will the Anti-rollback pose a problem? Even further down the line might EDL access be blocked off? Thank you for your hard work! |
07-29-2024, 06:47 AM | #4 |
Wizard
Posts: 2,806
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
A full, raw EDL backup (with a combined size the same as your flash, 32GB or 128 GB) will always go back on your device just fine. If you flash it on your friend's device you have just overwritten the device ID, WiFi and Bluetooth MACs and who knows what else.
Do not ever "wipe" your data. That destroys your keys and even a raw backup will not save you. Although the (freely available) documentation is poor, I presume that additional efuses on your device could be blown. If the OEM were to release some evil update they could blow fuses and clamp down on a lot of things. That would be evil. The anti-rollback would not necessarily be a big deal, but it might require some effort. We've seen that we can flash the "wrong" software on a device (e.g. flash Poke5P on a Poke5). The normal update process checks the metadata and signing on the update.zip, but I update without that anyway. |
08-03-2024, 08:11 AM | #5 |
Wizard
Posts: 2,806
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
I've been using my autoupdate in recovery to flash update.zip from a USB flash drive.
It works just fine and I've even flashed my poor Poke5 to Chinese and back again. I can be so brave because I have a full raw backup, which I have EDL'ed in a few times. But incremental updates can be problematical. They need a lot of elbow room to rearrange the super partition. Probably more space than you have RAM unless you have something with 4 GB or more. Well, I'm working on this: Code:
01/01/1980 00:00 670,998,528 product_a-cow-img.img.0000 01/01/1980 00:00 1,318,719,488 system_a-cow-img.img.0000 01/01/1980 00:00 298,991,616 system_ext_a-cow-img.img.0000 01/01/1980 00:00 451,747,840 vendor_a-cow-img.img.0000 I could probably get this to work if I formatted a flash drive with ext2. |
Advert | |
|
08-04-2024, 11:52 AM | #6 |
Connoisseur
Posts: 52
Karma: 10
Join Date: May 2024
Device: Poke3, Poke5, Leaf2.
|
Hi Renate, Can we extract a full raw img backup file on PC to research it? is there any way to modify something in the img file?
|
08-05-2024, 07:08 AM | #7 |
Wizard
Posts: 2,806
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Yes and yes. If this has nothing to do with this thread, start another.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove repeated incremental numbers in books | pinky62 | Library Management | 3 | 12-12-2022 03:28 PM |
Incremental IDs plugin | Doitsu | Plugins | 41 | 07-11-2022 12:59 AM |
The new PaperWhite snuck out! Incremental update | mewmartigan | News | 192 | 09-13-2013 07:28 AM |
search and replace with incremental number | pimpoum | General Discussions | 4 | 07-08-2011 02:41 PM |
Can we at least have an incremental firmware upgrade? | mwlcarter | Kobo Reader | 2 | 05-23-2010 02:35 PM |