[Sony Xperia P, U, Sola, Go] Nathanael_Mtd:
About OpenDelta

Hi people !

Just an information about how work OpenDelta on your phone, because I don't want to see messages this sunday like: WHY MY PHONE DOWNLOAD/REDOWNLOAD THE WHOLE ROM IF WE HAVE OPENDELTA ???? .

Because I like scripting, here is a comprehensible script to explain OpenDelta on your phone

In this exemple you are now on current Build 13:

[COLOR="DarkOrchid"]check [/COLOR][B]build.prop[/B] for [B]ro.delta.version[/B] value
[COLOR="DarkOrchid"]value [/COLOR]is [B]13[/B]
[COLOR="Orange"]if [/COLOR][B]cm11.0-14.zip[/B] exist on server
[COLOR="DarkOrchid"]echo [/COLOR]"Yaay ! You have an update"
[COLOR="Orange"]if [/COLOR]you don t have [B]cm11.0-13.zip[/B] (whole rom) in your phone in OpenDelta folder
[COLOR="DarkOrchid"]download [/COLOR][B]cm11.0-13.zip[/B] from server to your phone in OpenDelta folder [I](230MB)[/I]
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="green"]"Current complete build downloaded"[/COLOR]
[COLOR="DarkOrchid"]download [/COLOR][B]cm11.0-13.delta[/B] [I](15MB to 30MB)[/I]
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="green"]"Delta update for Build14 downloaded"[/COLOR]
[COLOR="DarkOrchid"]patch [/COLOR][B]cm11.0-13.zip[/B] with [B]cm11.0-13.update[/B] file
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="green"]"Current whole build files patched with build14 updated files"[/COLOR]
[COLOR="DarkOrchid"]rename [/COLOR][B]cm11.0-13.zip[/B] to [B]cm11.0-14.zip[/B]
[COLOR="DarkOrchid"]reboot [/COLOR]to recovery
[COLOR="DarkOrchid"]wipe [/COLOR]cache/dalvik cache
[COLOR="DarkOrchid"]flash [/COLOR][B]cm11.0-14.zip[/B]
[COLOR="DarkOrchid"]reboot [/COLOR]to system
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="green"]"You have now Build 14 !"[/COLOR]
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="red"]"245MB to 260MB downloaded in total !"[/COLOR]
[COLOR="Orange"]else [/COLOR][I](if you have already cm11.0-13.zip on your phone)[/I]
[COLOR="DarkOrchid"]download [/COLOR][B]cm11.0-13.delta[/B] (15MB to 30MB)
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="green"]"Delta update for Build14 downloaded"[/COLOR]
[COLOR="DarkOrchid"]patch[/COLOR] [B]cm11.0-13.zip[/B] with [B]cm11.0-13.update[/B] file
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="green"]"Current whole build files patched with build 14 files"[/COLOR]
[COLOR="DarkOrchid"]rename [/COLOR][B]cm11.0-13.zip[/B] to [B]cm11.0-14.zip[/B]
[COLOR="DarkOrchid"]reboot [/COLOR]to recovery
[COLOR="DarkOrchid"]wipe [/COLOR]cache/dalvik cache
[COLOR="DarkOrchid"]flash [/COLOR][B]cm11.0-14.zip[/B]
[COLOR="DarkOrchid"]reboot [/COLOR]to system
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="Green"]"You have now Build 14 !"[/COLOR]
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="red"]"15MB to 30MB downloaded in total !"[/COLOR]
[COLOR="Orange"]ifend[/COLOR]
[COLOR="Orange"]else[/COLOR]
[COLOR="DarkOrchid"]echo [/COLOR][COLOR="Green"]"Oh sorry, you don't have an update now ! Wait next update in few days :)"[/COLOR]
[COLOR="Orange"]ifend[/COLOR]

If you don't understand the script it's simple:

This sunday, when the build is ready, you can download last build from Settings > About > System Updates

After checking the whole current rom the download starts (Build13). YES THE WHOLE CURRENT BUILD ! :)

Why ? Because OpenDelta patch the whole build zip with delta update file. It's very logic.

The delta file is the difference between the files of the next build from the last build.

After the patch you have the Build14.zip file from Build13.zip patched with Build13.update

The problem with you, not you, other people if you prefer, is that you are going to delete the build .zip file included in OpenDelta folder.

If you make that, each time you have a new update, the whole current build download starts before the new delta update, and you are going to download more than 250MB for each build instead of just 15-30MB if you keep the .zip build file.

You just need to keep the current .zip build file after that your phone is updated with OpenDelta.

Now you know all, don't complain at the end of next week for Build 15 when you see your phone downloading the whole Build 14 .zip.