Johx22 / Patch-Recovery

CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd.
111 stars 1.26k forks source link

Created Local Scripts for Linux and Windows #47

Closed TheRealMrWicked closed 8 months ago

TheRealMrWicked commented 8 months ago

I created versions of this program that are meant to be run on users computers locally, this should be done for two reasons:

I made some further modification to the scripts, they are as follow:

Rationale - The "dd" line shrinks the img file by removing the hash and footer, then the avbtool reinserts new ones at the end of the patching process. This is not needed because magiskboot can just patch the file in-place and the img will flash through Odin properly. This is good because it reduces the number of steps that the script needs to execute and reduces the reliance on additional programs such as the avbtool and opensll.

If you want to include the commands I removed in the local script for Linux, that is perfectly fine but note that the avbtool does not work on Windows, so if the hash and footer are removed they cannot be reinserted, as such the windows script must remain as is.

Lastly I added a simple explanation of how to use the local scripts in the README.md.