OpenDelta released and integrated into OmniROM
Posted on 2013-12-08, 79 comments, 313 +1's, imported from Google+/Chainfire

NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.

If you're an OmniROM user on one of the latest nightlies, you might have noticed that suddenly, wild System Updates have appeared, courtesy of OpenDelta.

OpenDelta is an OTA / delta updater designed to keep your ROM up-to-date while downloading as little as possible. If possible, it will download only the changes between your currently flashed ROM, and the latest available one, greatly reducing the download time and size.

Delta en/decoding is based on the VCDIFF (RFC 3284) standard, and is provided by the OSS xdelta ( http://xdelta.org/ )

OpenDelta is fully Open Source and license under the GPLv3. Any open ROM can use it. There are various configuration options present in the config.xml that your ROM's overlay can override to use your own servers and deltas.

Keep in mind this package is really new, and just now rolling out to a number of devices - there will still be some snags here and there!

The link below leads to the OmniROM GitHub, where you can fork the project if you want to. Submitting patches should be done through Gerrit ( http://gerrit.omnirom.org/ ).


android_packages_apps_OpenDelta

+1313
Brooks Sorensen commented on 2013-12-08 at 11:37:

Nice to see an android ROM using delta now. Sweet

Essin Singh commented on 2013-12-08 at 11:58:

Can't wait to see if and how delta updates are integrated into PA4.

Edit : Can't wait to test it out so installing Omni on N7.

Chainfire commented on 2013-12-08 at 11:59:

+Utkarsh Gupta Already in there. If you're on the 20131208 nightly (or newer), if you check for updates, a FlashAfterUpdate folder is created for you inside (internalstorage)/OpenDelta. You can drop ZIPs in there and they will be flashed automatically after each update.

Mike Tamanti commented on 2013-12-08 at 12:02:
Ricardo Varela commented on 2013-12-08 at 12:06:

And this is how Omni make a step forward and the other Roms get a step backwards..

Aldy Tormis commented on 2013-12-08 at 12:06:

Nice, hope you integrate supersu next. 

Christian Grambow commented on 2013-12-08 at 12:20:

Works perfect on mako and flo. No need to flash gapps and supersu again after updating because of the backup script, but the folder to do so is there. Thanks a lot!

Only one question. Why is the update file so big? It doesn't download for a long time, did it take the necessary stuff from the running rom or how does it work?

Nuno Pedro Vicente commented on 2013-12-08 at 12:25:

Did you just kick some CM ass?

This could have been a feature ages ago.

Alvin Chong commented on 2013-12-08 at 12:32:

Hope integrated SuperSU and USB-OTG will come soon.

Omni is slowly building up.

My phone is still on CM as I've bought some themes and would like to use them.

Carsten Dresbach commented on 2013-12-08 at 14:30:

Already updated my N4 two times with this Open Delta and all went well. Great stuff!

Hebel Castillo commented on 2013-12-08 at 14:32:

Please rom for alcatel idol Ultra 6033X :(

シェクラインヴァレンティン commented on 2013-12-08 at 15:13:

Just awesome! Works flawlessy on my find 5 ! Love you

Otto von Metzger commented on 2013-12-08 at 15:45:

I tried using this as I was leaving the theater with my parents and it murdered them. I am batman now.

Sébastien Faroux commented on 2013-12-08 at 16:01:

+Chainfire that's doesn't work.. I have put zip on FlashAfterUpdate folder but there are not flash after update flash.. I have nexus 5 and trwp.

Chris North commented on 2013-12-08 at 16:02:

Having issues on mako using this +Chainfire Am on 07 omni nightly and twrp.. Seems to install but then sits in boot loop. Anything I'm missing?! Thanks

Chainfire commented on 2013-12-08 at 16:16:

+Sébastien Faroux Seeing as that functionality was added in the 08 update, it would start working when flashing the 09 update. So either you're from the future, or you've misunderstood something :)

Sébastien Faroux commented on 2013-12-08 at 16:17:

Ok lol thanks

Chainfire commented on 2013-12-08 at 16:19:

+Chris North I doubt there would be an issue with OpenDelta, as the file is checked for a known good MD5 before flashing. It could be there's an issue with the nightly or the flashing operation itself ... who knows.

Garth St. Omer commented on 2013-12-08 at 16:27:

Just used this to update to the latest nightly for the S4. Worked flawlessly. Only issue was it broke root but a simple reflash of the latest SuperSU fixed it.

Chris North commented on 2013-12-08 at 16:36:

Will perform clean install and try again on tomorrow's nightly, thanks +Chainfire

Dhruva Krishnamurthy commented on 2013-12-08 at 16:37:

I had made a humble proposal a long time back in 2010, http://forum.xda-developers.com/showpost.php?p=9355889&postcount=1

Jules Archinova commented on 2013-12-08 at 16:49:

Awesome!

Ananda Bibek commented on 2013-12-08 at 18:42:

Funny enough, this debuts just in time when cyandelta stopped working for CM11

Ibrahim Awwal commented on 2013-12-08 at 21:11:

+Utkarsh Gupta hmm.. generally speaking, backuptool should preserve gapps and su though? gapps has had the backup script for ages and SuperSU added it recently i think.

Chainfire commented on 2013-12-08 at 21:26:

+Björn Seifert And that is relevant - how ?

+Ibrahim Awwal Not all gapps come with the backup script. SuperSU has had it for about a year (from memory) but not many users are aware of the feature.

Rob Riscoe commented on 2013-12-08 at 23:34:

+Ananda Bibek This is off topic, but CyanDelta is working just fine for me on CM 11 nightlies for Mako. Although, I'm a crack flasher, so I see a nandroid and trying Omni in my near future.

Adam Outler commented on 2013-12-09 at 01:12:

Awesome +Chainfire . I thought you said you don't do open source?

David Cahan commented on 2013-12-09 at 02:59:

+Chainfire I'm a little noob when it comes to delta updates. If it's just an update to the ROM, why exactly would I need to flash GAPPs again?

Mohd Lukfi commented on 2013-12-09 at 07:31:

omnir 4.4 how to root??

Birol Cin commented on 2013-12-09 at 09:28:

+Mohd Lukfi flash rom, flash gapps, flash supersu

Set Iron commented on 2013-12-09 at 12:56:

+Noonski Vicente you little people flaming ROMs are the saddest example of Internet losers.

Nuno Pedro Vicente commented on 2013-12-09 at 13:32:

+Florio Alagna I don't see no flames. Maybe you didn't like the joke as at wasn't directed at you, but more a compliment to +Chainfire

Birol Cin commented on 2013-12-10 at 06:12:

zero day pa gapps has the backup script implemented... but its better to flash it again to make it work perfectly... just to be sure... ;)

http://forum.xda-developers.com/showthread.php?t=2397942 "Automatic Backup: It is not necessary to re-flash GApps or modules when you flash a ROM update. Most ROM's support this function."

Pawel Konefal commented on 2013-12-10 at 10:32:

+Chainfire Let's assume I've removed apps like Calculator and Calendar. Will the update install back these apps?

Chainfire commented on 2013-12-10 at 10:49:

If flashing a full OmniROM ZIP will bring it back, then so will an OpenDelta update. The result of flashing one or the other is exactly the same.

Pawel Konefal commented on 2013-12-10 at 10:52:

Thanks a lot. :) So it seems it would be better for me to do a manual updates, I'm not using many APKs packed by default in the ROMs.

David Cahan commented on 2013-12-10 at 14:46:

+Mick Collingwood I'm still confused though and here's why.  When I do a normal update using a nightly I never have to wipe or reinstall gapps.  So are we saying that with Delta's that process changes?  I'm just trying to 100% make sure before I delve into that world.

David Cahan commented on 2013-12-10 at 14:51:

+Mick Collingwood  Beautiful...I suppose I'll just have to take it for a test run and see.  Thanks!

Hamada Elhag commented on 2013-12-10 at 20:14:

There is method Root GT-S7262?

Ben Gough commented on 2013-12-10 at 22:15:

hey boss big fan of your work . cant go anywere with out seeing youre name. i  just downloaded this omni rom for gt-i9505. tbh i cant find a rom that suits the phone better  than stock atm but this rom i think theirs  hope for, anyways im trying to use the multi window feature ,  downloaded e flash zip, bla bla good flash,but weres the multi window feature ?

warner batista commented on 2013-12-11 at 03:11:

Plis poner la opcion de traducir al español a la app en play store para asi poder saber para que sirve cada app directamente desde play store sin tener que aser una busqueda en foros.!!

Joey Fong commented on 2013-12-11 at 04:51:

Can provide feature for adding additional zip for installation?  Like install a custom kernel, thanks

Birol Cin commented on 2013-12-11 at 05:41:

+Joey Fong in the opendelta folder there is a sub folder called flashafterupdate. put everything you need in there and your happy ;)

Joey Fong commented on 2013-12-11 at 05:45:

+Birol Cin, thx so much

Martin Garcia commented on 2013-12-11 at 05:49:

Whenever I try to update it keeps telling me the script is wrong for recovery I'm using clockwork mod recovery

Birol Cin commented on 2013-12-11 at 05:52:

+Martin Garcia only twrp! cwm doesnt work

Martin Garcia commented on 2013-12-11 at 05:53:

Aw okie rookie

Birol Cin commented on 2013-12-11 at 05:55:

+Martin Garcia here you can get the latest version ;)

http://techerrata.com/browse/twrp2

Martin Garcia commented on 2013-12-11 at 05:56:

Any way to remove cwm recovery?

Joey Fong commented on 2013-12-11 at 05:57:

just flash twrp is fine

Martin Garcia commented on 2013-12-11 at 16:43:

Thanks everybody for the help,I highly appreciate it,the system update works now with the twrp.

Pawel Konefal commented on 2013-12-11 at 23:12:

+Chainfire would you consider adding feature to skip adding back the unused APKs? I'd really appreciate it.

Harsh Doshi Visuals commented on 2013-12-12 at 22:53:

Been using it, no problem at all!

Edit: just got a taste of 4.4.2!

Rahul Hussain commented on 2013-12-13 at 13:17:

Used the update feature on 4.4.2 nightly for flo and it ran very smoothly, only problem was that it broke root and superSU had to be reflashed.

Craig Price commented on 2013-12-13 at 14:09:

Is there a place for bug reports? EDIT: Nevermind, the github link is right in the damn title. (derp)

For some reason on my N5 running Omni, the TWRP script is looking for the zip file in /media/data/OpenDelta instead of /media/data/0/OpenDelta

Chainfire commented on 2013-12-13 at 14:17:

+Craig Price  Make sure you're running the latest version of TWRP, and inside TWRP go to Settings -> Reset to defaults. It's an issue with TWRP, but the TWRP's author has not been able to reproduce it. The above should fix the issue though (let me know if it does)

Craig Price commented on 2013-12-13 at 14:25:

+Chainfire thanks for the tip! I've already flashed the zip file manually since I posted that, so I'll have to wait until tomorrow (or whenever the next nightly is) to test the fix. I'll be sure to let you know how it turns out.

Do you think it would be helpful to the TWRP guys if I contacted them and provided logs or anything to help track it down, or did you get the feeling that they weren't going to spend any more time tracking down the bug? 

Puneet Singh Chauhan commented on 2013-12-14 at 09:15:

+Chainfire I don't have a FlashAfterUpdate folder inside (internalstorage)/OpenDelta. Should I create it manually and also after an OTA update is downloaded and when I push flash now, my Nexus 4 just reboots to recovery but no flashing is done. I have to do it manually. I'm using the the latest TWRP 2.6.3.3. Please help. 

Craig Price commented on 2013-12-14 at 14:05:

+Chainfire I restored the default settings in TWRP, and now it's crazier. It's now looking for the zip file in //OpenDelta. Also, file manager is empty, presumably because it is also trying to use // as root for some reason. I'm going to try to get into contact with TW, as this is quite obviously not a problem with your project. That said, if you have other ideas, I'm all ears. Thanks for your help so far, and thanks for all you've done for the android community.

Chainfire commented on 2013-12-14 at 16:09:

+Jani Párkányi There is basic support for non-official CWM. Official CWM builds will not be supported as long as extendedscript remains restricted. Community-built CWM versions may well work.

mohamed aidaros commented on 2013-12-14 at 22:35:

Why Unknon apps couldn't installed on omnirom i9300

Puneet Singh Chauhan commented on 2013-12-17 at 07:41:

+Chainfire  All resolved but ROM updates are still full size. Wondering why ?

Puneet Singh Chauhan commented on 2013-12-18 at 04:29:

+Mick Collingwood  After an update I keep deleting the downloaded file from the open delta folder. Is that the reason it downloads the whole file on the next system update ?

Puneet Singh Chauhan commented on 2013-12-24 at 04:52:

+Mick Collingwood  Thank you, updates are working fine now.

kevin chupe commented on 2014-01-01 at 06:32:

How would I go about using this tool for my own ROM? IT doesn't compile in my ROM. Sounds like a wonderful tool though

Thomas Daly commented on 2014-01-07 at 14:05:

i've been using omni's open delta.  very cool.  but i lost root, and am looking for the latest su zip file, and am a bit confused.  if some could provide a download link, i'd much appreciate it.

hao Qing commented on 2014-01-09 at 02:34:

+Chainfire hi, why don't you use the android official diff tool, the bsdiff and imgdiff which can produce smaller delta output most of the time? 

Clayton Nummer commented on 2014-01-30 at 16:48:

Hey +Chainfire , is there a script I could run to trigger checking for updates? Obviously I could run this in a shell with su. I looked in the AndroidManifest.xml but didn't see anything I could run using the am command. Thanks!

kevin chupe commented on 2014-02-07 at 16:30:

I figured it out... But thanks anyway Chainfire!

Matto Godoy commented on 2014-02-12 at 09:56:

+Chainfire , is there any intent we can call (i.e.: from Tasker) to check for updates at a certain moment? Like +Clayton Nummer, I haven't found anything in the manifest. Thanks a lot!

Jan Sokol commented on 2014-02-18 at 19:05:

Has anyone tried this with PhilZ recovery.  It is CWM based but has an open scripting system.

Jan Sokol commented on 2014-02-22 at 02:42:

Will do.

Thomas Gessendorfer commented on 2014-02-22 at 13:04:

How can I disable the update available in Omnirom? I installed on my mother's phone but she really isn't into steady updates....

Kenneth Low commented on 2014-03-18 at 07:26:

Hi a noob here, but after installing omnirom, I lost root and supersu does not work (ie to allow me to root again). Any suggestions, I've been reading the forums, but all sound a bit too techy for me (and I am a partial techy)

Antonio Ascencio commented on 2014-03-19 at 02:07:

you just have to installed manually, for su I got it from google store

Skanda Kumar commented on 2014-05-20 at 12:40:

Ok, i flashed ROM of 17th May, gapps and SU successfully, now my system updates shows that there are 3 update files using OpenDelta, the files are downloaded and now i am stuck, don't know how to update it? do i need boot into recovery and then use TWRP to update using the downloaded files? tried that not working though. will appreciate any help :)

Skanda Kumar commented on 2014-05-20 at 12:41:

the downloaded files are .update files and are not visible when i boot into TWRP recovery....

Bertin Christian Meleqi commented on 2014-06-18 at 22:07:

Like mokee

gopinadh koganti commented on 2014-07-29 at 09:46:

Any one provide the flash script path in OmniRom. Need to add one more zip file along with OTA zip. Thanks in advance..

This post is over a month old, commenting has been disabled.