FORUMS
Remove All Ads from XDA
Post Reply Email Thread
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
The Following 16 Users Say Thank You to werty100 For This Useful Post: [ View ] Gift werty100 Ad-Free
20th May 2014, 07:35 PM |#4  
OP Senior Member
Thanks Meter: 672
 
Donate to Me
More
Update New settings for OTA
The Following User Says Thank You to werty100 For This Useful Post: [ View ] Gift werty100 Ad-Free
21st May 2014, 12:00 AM |#5  
marcomarinho's Avatar
Senior Member
Flag Porto
Thanks Meter: 4,403
 
Donate to Me
More
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?
The Following 3 Users Say Thank You to marcomarinho For This Useful Post: [ View ] Gift marcomarinho Ad-Free
22nd June 2014, 09:36 AM |#6  
Senior Member
Thanks Meter: 93
 
More
With this OTA guide will I have to boot into recovery to flash a OTA?
The Following 2 Users Say Thank You to Slimegod For This Useful Post: [ View ] Gift Slimegod Ad-Free
6th June 2015, 01:47 PM |#7  
Senior Member
Flag Simferopol
Thanks Meter: 168
 
More
Hey guys. I want add support OTA in my builds. I'm fully understand what need to be changed on client side and how generate *.delta and *.update files, but what i need for server side?
Just place files at some path, and somehow mystical way the application will find it.. or need some json script, which protocol need to use, how app retrieve list of files/information from server...
Thanks in advance.
6th June 2015, 08:17 PM |#8  
sub77's Avatar
Senior Member
Thanks Meter: 2,250
 
More
Quote:
Originally Posted by ElArchibald

Hey guys. I want add support OTA in my builds. I'm fully understand what need to be changed on client side and how generate *.delta and *.update files, but what i need for server side?
Just place files at some path, and somehow mystical way the application will find it.. or need some json script, which protocol need to use, how app retrieve list of files/information from server...
Thanks in advance.

just add them to web server.
The Following User Says Thank You to sub77 For This Useful Post: [ View ] Gift sub77 Ad-Free
20th May 2016, 05:53 PM |#9  
Member
Flag Thiruvananthapuram
Thanks Meter: 29
 
More
How can I build libopendelta.so?

I have never built anything in Eclipse before. Please bare with me.

Ok I built so file and apk and moved to system/lib and system/priv-app
But when I check for update I get update disabled. I have set the server here
http://theapu.in/opendelta/
21st May 2016, 04:32 AM |#10  
sub77's Avatar
Senior Member
Thanks Meter: 2,250
 
More
Quote:
Originally Posted by theapuv

How can I build libopendelta.so?

I have never built anything in Eclipse before. Please bare with me.

Ok I built so file and apk and moved to system/lib and system/priv-app
But when I check for update I get update disabled. I have set the server here
http://theapu.in/opendelta/

get a logcat while checking for update.

iam using a modified opendelta by team exodus:

https://github.com/sub77-du/packages_apps_OpenDelta.git
The Following User Says Thank You to sub77 For This Useful Post: [ View ] Gift sub77 Ad-Free
Post Reply Subscribe to Thread

Tags
opendelta, ota, roms
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes