Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,150 Members 36,974 Now Online
XDA Developers Android and Mobile Development Forum

OpenDelta OTA for all phones

Tip us?
 
werty100
Old
(Last edited by werty100; 20th May 2014 at 06:34 PM.)
#1  
Senior Member - OP
Thanks Meter 358
Posts: 616
Join Date: Aug 2011

 
DONATE TO ME
Angry OpenDelta OTA for all phones

Hi i have tested a lot of OTA apps and configs and they are very annoying until i stop thinking for a moment and I find a solution for having true OTAS updates and not depending from other users just like Nexus Devices OTAS.
Ok we started:
First of all we need to download Android Bundle with contains SDK and Eclipse
Here it is:
http://developer.android.com/sdk/ind...hl=sk#download
After it is download and installed.
You are going to download my fixed source for supporting from Android 4.1.2 to 4.4.2.
https://github.com/werty100/OpenDelta
And Click on:

Them open Eclipse...
Go to file/Import:

Next and locate were is the download source

Then Finish...
Wait until it is import....
Go to res folder, values and open config.xml:

Here are the important values for making work your OTA in your phone.
Code:
 <!-- Property to read for ROM version -->
    <string name="property_version">ro.delta.version</string>

    <!-- Property to read for device identifier -->
    <string name="property_device">ro.delta.device</string>
This should be put in build.prop:
Ex:
ro.delta.version=1.0.2
ro.delta.device=i9000

You can modificated all values but you should modificate this ones:
Code:
 <!-- URL base to find .delta files, %s is expanded to property_device value. Path is suffixed by (expanded) filename_base -->
    <string name="url_base_delta">https://delta.omnirom.org/nightlies/%s/</string>

    <!-- URL base to find .update and .sign files, %s is expanded to property_device value. Path is suffixed by (expanded) filename_base -->
    <string name="url_base_update">http://delta.omnirom.org/nightlies/%s/</string>

    <!-- URL base to find the full zip files, %s is expanded to property_device value. Path is suffixed by (expanded) filename_base -->
    <string name="url_base_full">http://dl.omnirom.org/%s/</string>
Indicates where to find the ZIP for your phone...

Also you can modificate all UI and values....
After the essentials modifications you will need to compile APK:
Go here and click on selected item..

You will need to create your own KeyStores

Rellenate also this:
https://dl.dropboxusercontent.com/u/.../rellenate.png
Them just put destination and click finish:

After all of this you have to modificate the Settings.apk of your rom:
Decompile with the script/tool you like more and go to:
In res/values:
String.xml
Add this:
Code:
 <string name="system_update_settings_list_item_title">System updates</string>
<string name="system_update_settings_list_item_summary" />
Paste it near baseband_version string kernel_version string etc...
Then go to public and paste this near device_info_settings:
Code:
<public type="string" name="system_update_settings_list_item_title" id="0x7f0c06d7" />
<public type="string" name="system_update_settings_list_item_summary" id="0x7f0c06d8" />
Then go to xml/device_info_settings.xml:
And copy this in the firs lines after:
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
  xmlns:android="http://schemas.android.com/apk/res/android">
Paste this:
Code:
<PreferenceScreen android:title="@string/system_update_settings_list_item_title" android:key="system_update_settings" android:summary="@string/system_update_settings_list_item_summary">
        <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
    </PreferenceScreen>
    <PreferenceScreen android:title="@string/additional_system_update_settings_list_item_title" android:key="additional_system_update_settings">
        <intent android:targetPackage="@string/additional_system_update" android:action="android.intent.action.MAIN" android:targetClass="@string/additional_system_update_menu" />
    </PreferenceScreen>
After Compiling Settings.apk you will have full OTAS
With a old i9000 like a baby with first chrismas time
The Following 12 Users Say Thank You to werty100 For This Useful Post: [ Click to Expand ]
 
werty100
Old
#2  
Senior Member - OP
Thanks Meter 358
Posts: 616
Join Date: Aug 2011

 
DONATE TO ME
Tomorrow More
With a old i9000 like a baby with first chrismas time
The Following User Says Thank You to werty100 For This Useful Post: [ Click to Expand ]
 
David_Vaz
Old
#3  
David_Vaz's Avatar
Senior Member
Thanks Meter 1,426
Posts: 709
Join Date: Oct 2012
Location: Badalona

 
DONATE TO ME
Today more :P

Publish on HTCMania haha
The Following User Says Thank You to David_Vaz For This Useful Post: [ Click to Expand ]
 
werty100
Old
#4  
Senior Member - OP
Thanks Meter 358
Posts: 616
Join Date: Aug 2011

 
DONATE TO ME
Update New settings for OTA
With a old i9000 like a baby with first chrismas time
The Following User Says Thank You to werty100 For This Useful Post: [ Click to Expand ]
 
marcomarinho
Old
#5  
marcomarinho's Avatar
Recognized Contributor
Thanks Meter 3,156
Posts: 1,477
Join Date: Aug 2012
Location: Porto

 
DONATE TO ME
Just a quick question:
Code:
 <!-- URL base to find .delta files, %s is expanded to property_device value. Path is suffixed by (expanded) filename_base -->
    <string name="url_base_delta">https://delta.omnirom.org/nightlies/%s/</string>

    <!-- URL base to find .update and .sign files, %s is expanded to property_device value. Path is suffixed by (expanded) filename_base -->
    <string name="url_base_update"http://delta.omnirom.org/nightlies/%s/</string>

    <!-- URL base to find the full zip files, %s is expanded to property_device value. Path is suffixed by (expanded) filename_base -->
    <string name="url_base_full">http://dl.omnirom.org/%s/</string>
If we want to configure it to our directory, what should we inclue on .delta files & .update and .sing files?
Someone told me that who has big dreams, the fall is great.. But they forgot to ask me If I was afraid of falling
The Following 3 Users Say Thank You to marcomarinho For This Useful Post: [ Click to Expand ]
 
shakim24
Old
#6  
shakim24's Avatar
Senior Member
Thanks Meter 77
Posts: 1,807
Join Date: Mar 2011
With this OTA guide will I have to boot into recovery to flash a OTA?
The Following User Says Thank You to shakim24 For This Useful Post: [ Click to Expand ]
 
marcomarinho
Old
#7  
marcomarinho's Avatar
Recognized Contributor
Thanks Meter 3,156
Posts: 1,477
Join Date: Aug 2012
Location: Porto

 
DONATE TO ME
You can't use this for any other ROM because we don't know what we should had on .delta & .update & .sign files
Someone told me that who has big dreams, the fall is great.. But they forgot to ask me If I was afraid of falling
 
Rebellos
Old
#8  
Senior Recognized Developer
Thanks Meter 3,423
Posts: 1,339
Join Date: May 2009
Location: Gdańsk

 
DONATE TO ME
Howdy! Some general stuff:
You should credit original developer of OpenDelta (that's Chainfire @ OmniROM)
Proper way to make own, patched version is Pulling the original repository (easiest way is using "Pull" button on GitHub there: https://github.com/omnirom/android_p...apps_OpenDelta) and then patching it - this way you preserve all the commits history (and credits to original authors)

Quote:
Originally Posted by _MarcoMarinho_ View Post
You can't use this for any other ROM because we don't know what we should had on .delta & .update & .sign files
There we got with an example:
https://delta.omnirom.org/nightlies/...0-NIGHTLY.sign
https://delta.omnirom.org/nightlies/...NIGHTLY.update
https://delta.omnirom.org/nightlies/...-NIGHTLY.delta

.delta file is JSON
.sign is binary signature
.delta is binary delta data

...and
GUESS WHAT! There's an opensource stuff to generate ALL of the above.
Completely! Automagically!
https://github.com/omnirom/android_p...id-4.4/server/
Feedback on my development is highly appreciated, but first you should read this GUIDE and watch this MOVIE.

If you like my work - you can help me getting various cool stuff by clicking donation link in my profile. It's not required while pressing is, just appreciated.

Pretty owsom Android/Kernel dev tips&tricks: http://omappedia.org/wiki/Android_How-tos

Git HOW-TO by eagleeyetom: http://forum.xda-developers.com/show...php?p=31304826
15-minutes GIT introduction: http://try.github.com
If you want to submit patches to my git projects - use the guides above and make a pull request.
The Following 6 Users Say Thank You to Rebellos For This Useful Post: [ Click to Expand ]
 
marcomarinho
Old
(Last edited by marcomarinho; 24th June 2014 at 01:59 AM.)
#9  
marcomarinho's Avatar
Recognized Contributor
Thanks Meter 3,156
Posts: 1,477
Join Date: Aug 2012
Location: Porto

 
DONATE TO ME
Quote:
Originally Posted by Rebellos View Post
Howdy! Some general stuff:
You should credit original developer of OpenDelta (that's Chainfire @ OmniROM)
Proper way to make own, patched version is Pulling the original repository (easiest way is using "Pull" button on GitHub there: https://github.com/omnirom/android_p...apps_OpenDelta) and then patching it - this way you preserve all the commits history (and credits to original authors)


There we got with an example:
https://delta.omnirom.org/nightlies/...0-NIGHTLY.sign
https://delta.omnirom.org/nightlies/...NIGHTLY.update
https://delta.omnirom.org/nightlies/...-NIGHTLY.delta

.delta file is JSON
.sign is binary signature
.delta is binary delta data

...and
GUESS WHAT! There's an opensource stuff to generate ALL of the above.
Completely! Automagically!
https://github.com/omnirom/android_p...id-4.4/server/
Thanks so much

So I just need to modify few things, generate ALL stuff and then upload it to my server right?
Someone told me that who has big dreams, the fall is great.. But they forgot to ask me If I was afraid of falling
 
Rebellos
Old
#10  
Senior Recognized Developer
Thanks Meter 3,423
Posts: 1,339
Join Date: May 2009
Location: Gdańsk

 
DONATE TO ME
Yup. Looks like. I'm not really experienced with OpenDelta but knowing Chainfire it's all easy to work with.
Feedback on my development is highly appreciated, but first you should read this GUIDE and watch this MOVIE.

If you like my work - you can help me getting various cool stuff by clicking donation link in my profile. It's not required while pressing is, just appreciated.

Pretty owsom Android/Kernel dev tips&tricks: http://omappedia.org/wiki/Android_How-tos

Git HOW-TO by eagleeyetom: http://forum.xda-developers.com/show...php?p=31304826
15-minutes GIT introduction: http://try.github.com
If you want to submit patches to my git projects - use the guides above and make a pull request.

The Following 2 Users Say Thank You to Rebellos For This Useful Post: [ Click to Expand ]
Tags
opendelta, ota, roms
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes