Skip to content

Commit d4a24e8

Browse files
author
Jaiglissechef-i9100
committed
7upify
1 parent 5404959 commit d4a24e8

File tree

50 files changed

+150
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+150
-161
lines changed

.idea/modules.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ifneq ($(ANDROID_BUILD_TOP),)
66
endif
77

88
LOCAL_MODULE_TAGS := optional
9-
LOCAL_PACKAGE_NAME := ResurrectionOTA
9+
LOCAL_PACKAGE_NAME := 7upOTA
1010
LOCAL_CERTIFICATE := platform
1111
LOCAL_PRIVILEGED_MODULE := true
1212
LOCAL_DEX_PREOPT := false

AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.resurrection.ota"
3+
package="com.sevenup.ota"
44
android:versionCode="6"
55
android:versionName="6.0.0">
66

@@ -25,7 +25,7 @@
2525
android:label="@string/app_name"
2626
android:theme="@style/Theme.Main" >
2727
<activity
28-
android:name="com.resurrection.ota.MainActivity"
28+
android:name="com.sevenup.ota.MainActivity"
2929
android:label="@string/app_name" >
3030
<intent-filter>
3131
<action android:name="android.intent.action.MAIN" />

README.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ResurrectionOTA
1+
7upOTA
22
-------
33
A very simple OTA checker with Android Settings look and feel.
44

@@ -7,28 +7,17 @@ How it works
77
It parses the OTA xml file that you put in your file hosting and compares the version number with the local one.
88
If the version is newer, it notifies the user for a new ROM update.
99

10-
How to use
11-
----------
12-
* Prepare the OTA xml file. Use this [template](https://raw.githubusercontent.com/ResurrectionRemix/OTA/master/akhil.xml).
13-
* Upload it to your file hosting and create a hot link of it
14-
* Copy the [ota_conf template](https://raw.githubusercontent.com/ResurrectionRemix/OTA/master/example%20ota_conf) to the root of rr source, as a text file called "ota_conf" (without the quotes)
15-
* Template is also in https://raw.githubusercontent.com/ResurrectionRemix/packages_apps_ResurrectionOTA/oreo/examples/ota_conf
16-
* Replace the "ota_url" with your OTA xml hot link
17-
* Check the xml template, and make your own, on your github, and place the resultant link to the raw file in the ota_conf
18-
* If using the given samples, ota_conf is all setup! Else you will have to setup the version checking, etc.
19-
20-
2110
### Most guys can skip the below part
2211

23-
Define how ResurrectionOTA should know about the "version". The version must be parseable to a date.
12+
Define how 7upOTA should know about the "version". The version must be parseable to a date.
2413
Usually, the version is a part of a build name. For example, the 20150426 in the SlimSaber-bacon-5.0.2-20150426.
25-
Adjust the OTA configuration according to your build name on how should ResurrectionOTA parse the version
26-
Find a key in build.prop that represents the RR-O-v6.0.0-20180209-kenzo-Official.zip and set it in the "version_name"
14+
Adjust the OTA configuration according to your build name on how should 7upOTA parse the version
15+
Find a key in build.prop that represents the 7up-O-v1.0.0-20180611-a3y17lte-Official.zip and set it in the "version_name"
2716
Set the delimiter in "version_delimiter" to "-"
2817
Set the date format in "version_format" to "yyyyMMdd"
2918
Set the position in "version_position" to "3" (zero based)
3019
Find a key in build.prop that represents your device name and set it in the "device_name"
31-
ResurrectionOTA will search this device name in the OTA xml file
20+
7upOTA will search this device name in the OTA xml file
3221

3322

3423
Credits

app/src/main/java/com/resurrection/ota/MainActivity.java renamed to app/src/main/java/com/sevenup/ota/MainActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota;
17+
package com.sevenup.ota;
1818

1919
import android.app.Fragment;
2020
import android.os.Bundle;
2121
import android.preference.PreferenceActivity;
2222
import android.view.MenuItem;
2323

24-
import com.resurrection.ota.configs.LinkConfig;
25-
import com.resurrection.ota.dialogs.WaitDialogFragment;
26-
import com.resurrection.ota.fragments.SlimOTAFragment;
24+
import com.sevenup.ota.configs.LinkConfig;
25+
import com.sevenup.ota.dialogs.WaitDialogFragment;
26+
import com.sevenup.ota.fragments.SlimOTAFragment;
2727

2828
public class MainActivity extends PreferenceActivity implements
2929
WaitDialogFragment.OTADialogListener, LinkConfig.LinkConfigListener {

app/src/main/java/com/resurrection/ota/configs/AppConfig.java renamed to app/src/main/java/com/sevenup/ota/configs/AppConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.configs;
17+
package com.sevenup.ota.configs;
1818

1919
import android.app.AlarmManager;
2020
import android.app.job.JobInfo;
@@ -24,9 +24,9 @@
2424
import android.content.SharedPreferences;
2525
import android.preference.PreferenceManager;
2626

27-
import com.resurrection.ota.R;
28-
import com.resurrection.ota.tasks.OTAService;
29-
import com.resurrection.ota.utils.OTAUtils;
27+
import com.sevenup.ota.R;
28+
import com.sevenup.ota.tasks.OTAService;
29+
import com.sevenup.ota.utils.OTAUtils;
3030

3131
import java.text.DateFormat;
3232
import java.util.Date;

app/src/main/java/com/resurrection/ota/configs/LinkConfig.java renamed to app/src/main/java/com/sevenup/ota/configs/LinkConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.configs;
17+
package com.sevenup.ota.configs;
1818

1919
import android.content.Context;
2020

21-
import com.resurrection.ota.xml.OTALink;
22-
import com.resurrection.ota.xml.OTAParser;
23-
import com.resurrection.ota.utils.OTAUtils;
21+
import com.sevenup.ota.xml.OTALink;
22+
import com.sevenup.ota.xml.OTAParser;
23+
import com.sevenup.ota.utils.OTAUtils;
2424

2525
import org.json.JSONArray;
2626
import org.json.JSONException;

app/src/main/java/com/resurrection/ota/configs/OTAConfig.java renamed to app/src/main/java/com/sevenup/ota/configs/OTAConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.configs;
17+
package com.sevenup.ota.configs;
1818

1919
import android.content.Context;
2020

21-
import com.resurrection.ota.utils.OTAUtils;
21+
import com.sevenup.ota.utils.OTAUtils;
2222

2323
import java.io.IOException;
2424
import java.io.InputStream;

app/src/main/java/com/resurrection/ota/configs/OTAVersion.java renamed to app/src/main/java/com/sevenup/ota/configs/OTAVersion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.configs;
17+
package com.sevenup.ota.configs;
1818

1919
import android.content.Context;
2020

21-
import com.resurrection.ota.utils.OTAUtils;
21+
import com.sevenup.ota.utils.OTAUtils;
2222

2323
import java.text.ParseException;
2424
import java.text.SimpleDateFormat;

app/src/main/java/com/resurrection/ota/dialogs/WaitDialogFragment.java renamed to app/src/main/java/com/sevenup/ota/dialogs/WaitDialogFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.dialogs;
17+
package com.sevenup.ota.dialogs;
1818

1919
import android.app.Dialog;
2020
import android.app.DialogFragment;
2121
import android.app.ProgressDialog;
2222
import android.content.DialogInterface;
2323
import android.os.Bundle;
2424

25-
import com.resurrection.ota.R;
25+
import com.sevenup.ota.R;
2626

2727
public class WaitDialogFragment extends DialogFragment {
2828

app/src/main/java/com/resurrection/ota/dialogs/WaitDialogHandler.java renamed to app/src/main/java/com/sevenup/ota/dialogs/WaitDialogHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.dialogs;
17+
package com.sevenup.ota.dialogs;
1818

1919
import android.app.Activity;
2020
import android.app.Fragment;

app/src/main/java/com/resurrection/ota/fragments/SlimOTAFragment.java renamed to app/src/main/java/com/sevenup/ota/fragments/SlimOTAFragment.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.fragments;
17+
package com.sevenup.ota.fragments;
1818

1919
import android.content.SharedPreferences;
2020
import android.os.AsyncTask;
@@ -25,14 +25,14 @@
2525
import android.preference.PreferenceFragment;
2626
import android.preference.PreferenceScreen;
2727

28-
import com.resurrection.ota.R;
29-
import com.resurrection.ota.configs.AppConfig;
30-
import com.resurrection.ota.configs.LinkConfig;
31-
import com.resurrection.ota.configs.OTAVersion;
32-
import com.resurrection.ota.dialogs.WaitDialogFragment;
33-
import com.resurrection.ota.tasks.CheckUpdateTask;
34-
import com.resurrection.ota.utils.OTAUtils;
35-
import com.resurrection.ota.xml.OTALink;
28+
import com.sevenup.ota.R;
29+
import com.sevenup.ota.configs.AppConfig;
30+
import com.sevenup.ota.configs.LinkConfig;
31+
import com.sevenup.ota.configs.OTAVersion;
32+
import com.sevenup.ota.dialogs.WaitDialogFragment;
33+
import com.sevenup.ota.tasks.CheckUpdateTask;
34+
import com.sevenup.ota.utils.OTAUtils;
35+
import com.sevenup.ota.xml.OTALink;
3636

3737
import java.util.List;
3838

app/src/main/java/com/resurrection/ota/tasks/CheckUpdateTask.java renamed to app/src/main/java/com/sevenup/ota/tasks/CheckUpdateTask.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.tasks;
17+
package com.sevenup.ota.tasks;
1818

1919
import android.app.Notification;
2020
import android.app.NotificationChannel;
@@ -30,16 +30,16 @@
3030
import android.os.Message;
3131
import android.support.v4.app.NotificationCompat;
3232

33-
import com.resurrection.ota.MainActivity;
34-
import com.resurrection.ota.R;
35-
import com.resurrection.ota.configs.AppConfig;
36-
import com.resurrection.ota.configs.LinkConfig;
37-
import com.resurrection.ota.configs.OTAConfig;
38-
import com.resurrection.ota.configs.OTAVersion;
39-
import com.resurrection.ota.dialogs.WaitDialogHandler;
40-
import com.resurrection.ota.utils.OTAUtils;
41-
import com.resurrection.ota.xml.OTADevice;
42-
import com.resurrection.ota.xml.OTAParser;
33+
import com.sevenup.ota.MainActivity;
34+
import com.sevenup.ota.R;
35+
import com.sevenup.ota.configs.AppConfig;
36+
import com.sevenup.ota.configs.LinkConfig;
37+
import com.sevenup.ota.configs.OTAConfig;
38+
import com.sevenup.ota.configs.OTAVersion;
39+
import com.sevenup.ota.dialogs.WaitDialogHandler;
40+
import com.sevenup.ota.utils.OTAUtils;
41+
import com.sevenup.ota.xml.OTADevice;
42+
import com.sevenup.ota.xml.OTAParser;
4343

4444
import org.xmlpull.v1.XmlPullParserException;
4545

@@ -158,16 +158,16 @@ private void showNotification(Context context) {
158158
NotificationManager notificationManager =
159159
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
160160
int notifyID = 1;
161-
String id = "resurrectionota_channel";
162-
CharSequence name = context.getString(R.string.resurrection_channel);
163-
String description = context.getString(R.string.resurrection_channel_description);
161+
String id = "sevenupota_channel";
162+
CharSequence name = context.getString(R.string.sevenup_channel);
163+
String description = context.getString(R.string.sevenup_channel_description);
164164
int importance = NotificationManager.IMPORTANCE_LOW;
165165
NotificationChannel mChannel = new NotificationChannel(id, name, importance);
166166
mChannel.setDescription(description);
167167
notificationManager.createNotificationChannel(mChannel);
168168

169169
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context.getApplicationContext())
170-
.setSmallIcon(R.drawable.ic_notification_resurrection)
170+
.setSmallIcon(R.drawable.ic_notification_sevenup)
171171
.setContentTitle(context.getString(R.string.notification_title))
172172
.setContentText(context.getString(R.string.notification_message))
173173
.setOnlyAlertOnce(true)

app/src/main/java/com/resurrection/ota/utils/OTAUtils.java renamed to app/src/main/java/com/sevenup/ota/utils/OTAUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.utils;
17+
package com.sevenup.ota.utils;
1818

1919
import android.content.Context;
2020
import android.content.Intent;
@@ -23,8 +23,8 @@
2323
import android.util.Log;
2424
import android.widget.Toast;
2525

26-
import com.resurrection.ota.configs.OTAConfig;
27-
import com.resurrection.ota.R;
26+
import com.sevenup.ota.configs.OTAConfig;
27+
import com.sevenup.ota.R;
2828

2929
import java.io.BufferedReader;
3030
import java.io.File;

app/src/main/java/com/resurrection/ota/xml/OTADevice.java renamed to app/src/main/java/com/sevenup/ota/xml/OTADevice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.xml;
17+
package com.sevenup.ota.xml;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;

app/src/main/java/com/resurrection/ota/xml/OTALink.java renamed to app/src/main/java/com/sevenup/ota/xml/OTALink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.xml;
17+
package com.sevenup.ota.xml;
1818

1919
public class OTALink {
2020

app/src/main/java/com/resurrection/ota/xml/OTAParser.java renamed to app/src/main/java/com/sevenup/ota/xml/OTAParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.resurrection.ota.xml;
17+
package com.sevenup.ota.xml;
1818

1919
import android.util.Xml;
2020

app/src/main/res/values-ar/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
<!-- Notification -->
4545
<string name="notification_title">تحديث لنظام تشغيل ريزيريكشين ريميكس</string>
4646
<string name="notification_message">يتوفر إصدار جديد!</string>
47-
<string name="resurrection_channel">إشعارات التحديث عبر الهواء لنظام التشغيل ريزيريكشن</string>
48-
<string name="resurrection_channel_description">إشعارات حول تحديثات نظام التشغيل</string>
47+
<string name="sevenup_channel">إشعارات التحديث عبر الهواء لنظام التشغيل ريزيريكشن</string>
48+
<string name="sevenup_channel_description">إشعارات حول تحديثات نظام التشغيل</string>
4949
<!-- Dialog -->
5050
<string name="dialog_message">يتم البحث عن تحديثات للنظام, برجاء الانتظار&#8230;</string>
5151
<!-- Toast -->

app/src/main/res/values-ca/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<string name="autoupdate_enabled">L\'actualització automàtica està habilitada</string>
4343
<string name="autoupdate_disabled">L\'actualització automàtica està deshabilitada</string>
4444
<!-- Notification -->
45-
<string name="notification_title">Actualització de Resurrection Remix OS</string>
45+
<string name="notification_title">Actualització de 7up OS</string>
4646
<string name="notification_message">Nova versió disponible!</string>
47-
<string name="resurrection_channel">Notificacions de ResurrectionOTA</string>
48-
<string name="resurrection_channel_description">Notificacions sobre noves versions de ResurrectionRemix OS</string>
47+
<string name="sevenup_channel">Notificacions de 7upOTA</string>
48+
<string name="sevenup_channel_description">Notificacions sobre noves versions de 7up OS</string>
4949
<!-- Dialog -->
5050
<string name="dialog_message">S\'estan cercant actualitzacions de la ROM, si us plau esperi&#8230;</string>
5151
<!-- Toast -->

app/src/main/res/values-cs/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<string name="autoupdate_enabled">Automatická aktualizace je povolena</string>
4343
<string name="autoupdate_disabled">Automatická aktualizace je zakázána</string>
4444
<!-- Notification -->
45-
<string name="notification_title">Aktualizace ResurrectionRemix OS</string>
45+
<string name="notification_title">Aktualizace 7up OS</string>
4646
<string name="notification_message">Nová verze je k dispozici!</string>
47-
<string name="resurrection_channel">Oznámení ResurrectionOTA</string>
48-
<string name="resurrection_channel_description">Upozornění na nové aktualizace ResurrectionRemix OS</string>
47+
<string name="sevenup_channel">Oznámení sevenupOTA</string>
48+
<string name="sevenup_channel_description">Upozornění na nové aktualizace 7up OS</string>
4949
<!-- Dialog -->
5050
<string name="dialog_message">Kontrola aktualizací ROM, počkejte prosím&#8230;</string>
5151
<!-- Toast -->

app/src/main/res/values-de/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<string name="autoupdate_enabled">Automatische Updates sind aktiviert</string>
4343
<string name="autoupdate_disabled">Automatische Updates sind deaktiviert</string>
4444
<!-- Notification -->
45-
<string name="notification_title">ResurrectionRemix OS Update</string>
45+
<string name="notification_title">7up OS Update</string>
4646
<string name="notification_message">Eine neue Version ist verfügbar!</string>
47-
<string name="resurrection_channel">ResurrectionOTA-Benachrichtigungen</string>
48-
<string name="resurrection_channel_description">Benachrichtigungen über neue ResurrectionRemix OS Updates</string>
47+
<string name="sevenup_channel">7upOTA-Benachrichtigungen</string>
48+
<string name="sevenup_channel_description">Benachrichtigungen über neue 7up OS Updates</string>
4949
<!-- Dialog -->
5050
<string name="dialog_message">Suche nach Aktualisierungen, bitte warten&#8230;</string>
5151
<!-- Toast -->

app/src/main/res/values-el/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<string name="autoupdate_enabled">Οι αυτόματες ενημερώσεις είναι ενεργοποιημένες</string>
4343
<string name="autoupdate_disabled">Η αυτόματες ενημερώσεις είναι απενεργοποιημένες</string>
4444
<!-- Notification -->
45-
<string name="notification_title">Ενημέρωση ResurrectionRemix OS</string>
45+
<string name="notification_title">Ενημέρωση 7up OS</string>
4646
<string name="notification_message">Μια νέα έκδοση είναι διαθέσιμη!</string>
47-
<string name="resurrection_channel">Ειδοποιήσεις ResurrectionOTA</string>
48-
<string name="resurrection_channel_description">Ειδοποιήσεις σχετικά με τις νέες ενημερώσεις ResurrectionRemix OS</string>
47+
<string name="sevenup_channel">Ειδοποιήσεις s7upOTA</string>
48+
<string name="sevenup_channel_description">Ειδοποιήσεις σχετικά με τις νέες ενημερώσεις 7up OS</string>
4949
<!-- Dialog -->
5050
<string name="dialog_message">Ελέγχος για ενημερώσεις, παρακαλώ περιμένετε&#8230;</string>
5151
<!-- Toast -->

0 commit comments

Comments
 (0)