Sean McCreary 313 Posted March 9 Share Posted March 9 10 hours ago, claude0001 said: The official LineageOS tool to extract them is extract.py, but there are others ... FYI, some Linux distributions (like Debian Bullseye) name the prerequisite package "python3-protobuf", and you may need to set "PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python" to get the script to work. 2 Quote Link to post Share on other sites
claude0001 1,055 Posted March 9 Share Posted March 9 5 hours ago, Sean McCreary said: you may need to set "PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python" Seemed to work without this on my Bullseye. Thanks anyway for the hint. Quote Link to post Share on other sites
claude0001 1,055 Posted March 9 Share Posted March 9 12 hours ago, EskeRahn said: So not that easy to extract after all Well, it is really easy for those who have a lineage build environment up and running anyway. Extracting some previous payload.bin is a required step in making your own ROM. For those who are not running on Linux (and thus have no preinstalled Python), people have made stand-alone extractor programs (like this one or that one). Please note that I haven't tested those, and think twice before running your phone's boot partition through some random tool from the internet. 1 Quote Link to post Share on other sites
Hook 2,372 Posted March 9 Share Posted March 9 3 hours ago, claude0001 said: Well, it is really easy for those who have a lineage build environment up and running anyway. But I think the point for us "civilians" is we don't have to extract those files because those files are provided. 😄 If you are flashing for the first time, you need to fastboot flash those files in order to be able to boot into Lineage recovery so you can sideload the zip (which, yes, also contains those files). Used to get it as one image file which also was labeled with the date. But you only have to flash those files once so you have access to recovery for ADB sideload. After that, you only do ADB sideload or use OTA (when official). 1 Quote Link to post Share on other sites
claude0001 1,055 Posted March 9 Share Posted March 9 (edited) 3 hours ago, Hook said: After that, you only do ADB sideload or use OTA (when official). Yes, normal users need to fastboot-flash the boot.img only once, and can then sideload-away for years to come. But I believe @EskeRahn specifically wants to backup previous Lineage versions, to be able to jump back to them in case regressions were to be introduced in the OTAs. In such a scenario, he would indeed have to first flash the boot.img matching the timestamp of the *.zip. This is because, to my knowledge, Lineage recovery does not allow downgrading itself via sideload (at least in 16.0 it didn't). So my only point was that it is not necessary for him to figure out a scheme to keep track of all his boot.img-versions. If needed, he could always extract the right one from the *.zip itself, which -- I think -- is an acceptable inconvenience in such an advanced use-case. Edited March 9 by claude0001 1 Quote Link to post Share on other sites
EskeRahn 4,970 Posted March 9 Share Posted March 9 6 hours ago, claude0001 said: Yes, normal users need to fastboot-flash the boot.img only once, and can then sideload-away for years to come. As can be seen even on the hash of the last four, the boot.img is not identical, and I know from AICP, that a flash can be quite picky on the bootloader selected matching the zip. So at the least when changing major version, I think you should flash the boot-loader first. For LOS I always flash the matching bootloader before booting into the recovery and sideloading the main zip. It might be a superfluous step in general. but I believe @tdm did the same thing in the guide he originally provided for v16, so I just followed that since... 1 Quote Link to post Share on other sites
claude0001 1,055 Posted March 9 Share Posted March 9 28 minutes ago, EskeRahn said: As can be seen even on the hash of the last four, the boot.img is not identical [...] Well, as the timestamp updates, I do not see how the hash could stay identical, even if there are no functional changes. That said, there probably is a reason why LOS recovery does not allow downgrading via sideload ... Quote Link to post Share on other sites
EskeRahn 4,970 Posted March 9 Share Posted March 9 13 minutes ago, claude0001 said: Well, as the timestamp updates, I do not see how the hash could stay identical, even if there are no functional changes. That said, there probably is a reason why LOS recovery does not allow downgrading via sideload ... When I have experimented with downgrading a good while back, and it works fine - though you will (almost) always need to wipe the user data in the process, and I always flashed the boot image as well. Quote Link to post Share on other sites
EskeRahn 4,970 Posted March 16 Share Posted March 16 (lineage-20.0-20230313-nightly-pro1-signed.zip on February 5 security patch installed smoothly using adb sideload and MindTheGapps-13.0.0-arm64-20221025_100653) Quote Link to post Share on other sites
EskeRahn 4,970 Posted March 21 Share Posted March 21 I was wondering what kept the usual Monday update, and checked this https://download.lineageos.org/devices/pro1/changes It seems like the next update we get will have a LOT of changes (over 120), so might be a good idea to take an extra backup, and be sure to download the previous 2023-03-13 build if we need to go back. 2 Quote Link to post Share on other sites
Wheeljack 189 Posted yesterday at 07:01 AM Share Posted yesterday at 07:01 AM According to the buildkite logs, the scheduled build simply crashed and wasn't re-scheduled. This weeks 20230327 update has finished though. Already have it running on my Pro1. OTA went through without issues. 1 1 Quote Link to post Share on other sites
EskeRahn 4,970 Posted yesterday at 02:29 PM Share Posted yesterday at 02:29 PM (lineage-20.0-20230327-nightly-pro1-signed.zip on March 5 security patch installed smoothly using adb sideload and MindTheGapps-13.0.0-arm64-20221025_100653) 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.