Permalink
Browse files

VertexOTA bringup

1 Change pacakge name to com.vertex.ota
2 Change APP name to vertexOTA
3 Change Icon

This commit is done based on how AEX brought up OTA service
Link to that commit: AospExtended/platform_packages_apps_AEXOTA@0fba532
  • Loading branch information...
vibhoothiiaanand committed Jun 14, 2017
1 parent 7f949c0 commit 6c0436742bcb693b12754e330b4b3131c655cc75
Showing with 120 additions and 120 deletions.
  1. +1 −1 Android.mk
  2. +5 −5 AndroidManifest.xml
  3. +3 −3 README.md
  4. BIN res/mipmap-hdpi/ic_launcher_aexota.png
  5. BIN res/mipmap-hdpi/ic_launcher_vertexota.png
  6. BIN res/mipmap-mdpi/ic_launcher_aexota.png
  7. BIN res/mipmap-mdpi/ic_launcher_vertexota.png
  8. BIN res/mipmap-xhdpi/ic_launcher_aexota.png
  9. BIN res/mipmap-xhdpi/ic_launcher_vertexota.png
  10. BIN res/mipmap-xxhdpi/ic_launcher_aexota.png
  11. BIN res/mipmap-xxhdpi/ic_launcher_vertexota.png
  12. BIN res/mipmap-xxxhdpi/ic_launcher_aexota.png
  13. BIN res/mipmap-xxxhdpi/ic_launcher_vertexota.png
  14. +1 −1 res/values/strings.xml
  15. +1 −1 res/values/strings_about.xml
  16. +1 −1 res/values/strings_main.xml
  17. +1 −1 src/{org/aospextended → com/vertex}/ota/Addon.java
  18. +2 −2 src/{org/aospextended → com/vertex}/ota/RomUpdate.java
  19. +9 −9 src/{org/aospextended → com/vertex}/ota/activities/AddonActivity.java
  20. +10 −10 src/{org/aospextended → com/vertex}/ota/activities/AvailableActivity.java
  21. +8 −8 src/{org/aospextended → com/vertex}/ota/activities/MainActivity.java
  22. +6 −6 src/{org/aospextended → com/vertex}/ota/activities/SettingsActivity.java
  23. +6 −6 src/{org/aospextended → com/vertex}/ota/download/DownloadAddon.java
  24. +3 −3 src/{org/aospextended → com/vertex}/ota/download/DownloadAddonProgress.java
  25. +6 −6 src/{org/aospextended → com/vertex}/ota/download/DownloadRom.java
  26. +5 −5 src/{org/aospextended → com/vertex}/ota/download/DownloadRomProgress.java
  27. +14 −14 src/{org/aospextended → com/vertex}/ota/receivers/AppReceiver.java
  28. +3 −3 src/{org/aospextended → com/vertex}/ota/tasks/AddonXmlParser.java
  29. +3 −3 src/{org/aospextended → com/vertex}/ota/tasks/AddonsSaxHandler.java
  30. +2 −2 src/{org/aospextended → com/vertex}/ota/tasks/Changelog.java
  31. +6 −6 src/{org/aospextended → com/vertex}/ota/tasks/GenerateRecoveryScript.java
  32. +4 −4 src/{org/aospextended → com/vertex}/ota/tasks/LoadUpdateManifest.java
  33. +4 −4 src/{org/aospextended → com/vertex}/ota/tasks/RomXmlParser.java
  34. +2 −2 src/{org/aospextended → com/vertex}/ota/utils/Constants.java
  35. +3 −3 src/{org/aospextended → com/vertex}/ota/utils/Preferences.java
  36. +1 −1 src/{org/aospextended → com/vertex}/ota/utils/Tools.java
  37. +6 −6 src/{org/aospextended → com/vertex}/ota/utils/Utils.java
  38. +4 −4 src/{org/aospextended/ota/AEXOTA.java → com/vertex/ota/vertexOTA.java}
View
@@ -38,7 +38,7 @@ LOCAL_AAPT_FLAGS := \
--auto-add-overlay \
--extra-packages android.support.v7.cardview
LOCAL_PACKAGE_NAME := AEXOTA
LOCAL_PACKAGE_NAME := vertexOTA
LOCAL_MODULE_TAGS := optional
View
@@ -16,7 +16,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.aospextended.ota"
package="com.vertex.ota"
android:versionCode="19"
android:versionName="@string/app_version"
android:sharedUserId="android.uid.system" >
@@ -30,7 +30,7 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
<uses-permission android:nam1e="android.permission.ACCESS_SUPERUSER" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -45,9 +45,9 @@
<uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
<application
android:name="org.aospextended.ota.AEXOTA"
android:name="com.vertex.ota.vertexOTA"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher_aexota"
android:icon="@mipmap/ic_launcher_vertexota"
android:label="@string/app_name"
android:theme="@style/Theme.RagnarLight"
android:uiOptions="splitActionBarWhenNarrow" >
@@ -76,7 +76,7 @@
android:label="@string/preferences_name" />
<receiver
android:name="org.aospextended.ota.receivers.AppReceiver"
android:name="org.vertex.ota.receivers.AppReceiver"
android:enabled="true" >
<intent-filter>
<action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
View
@@ -7,7 +7,7 @@ If you want to, you can host the ROM zip and ota.xml manifest yourself! You can
- Build this app (include to device.mk)
``` MAKEFILE
PRODUCT_PACKAGES += \
AEXOTA \
vertexOTA \
libbypass
```
#### Create an ota.xml
@@ -122,9 +122,9 @@ At the bottom of your build.prop, add the following values editing them to suit
``` MAKEFILE
PRODUCT_PROPERTY_OVERRIDES += \
ro.ota.romname=AospExtended-ROM \
ro.ota.romname=VertexOS-Devicename \
ro.ota.version=$(shell date +"%Y%m%d") \
ro.ota.manifest=http://xyyx-dev.ru/nitrogen-os/nougat/geehrc/ota.xml
ro.ota.manifest=Manifest URL here
```
Please pay CLOSE attention to the ro.ota.version entry. This is not your particular ROM version (v6.5 or v1.2.5, for example) this is a value for the OTA app to determine if an update is available. Your NEXT version should be numerically higher than this. You may use value you like, so long as it is an integer and successive updates are larger.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -20,7 +20,7 @@
<!-- DO NOT TRANSLATE THE ITEMS MARKED "translatable="false" -->
<!-- App Strings -->
<string name="app_name" translatable="false">AEXOTA</string>
<string name="app_name" translatable="false">vertexOTA</string>
<string name="prop_name" translatable="false">ro.ota.romname</string>
<string name="app_version" translatable="false">2.5.3</string>
@@ -17,7 +17,7 @@
<resources>
<string name="about_about_title">About</string>
<string name="about_preferences_summary">AEXOTA information, donation and credits</string>
<string name="about_preferences_summary">vertexOTA information, donation and credits</string>
<string name="about_about_summary">This app was born out of my frustration of using other apps that didn\'t work how I wanted them to. I developed it for my ROM, but quickly realised other developers might find this useful as well. As a result, I generalised it and wrote up some implementation guides for other developers to use.</string>
<string name="about_credits_title">Credits</string>
<string name="about_credits_summary">Credits Summary</string>
@@ -43,7 +43,7 @@
<!-- Dialogs -->
<string name="main_not_compatible_title">Not compatible</string>
<string name="main_not_compatible_message">This ROM is not compatible with AEXOTA. Please contact your ROM developer. This app requires a custom ROM where the developer has specifically enabled support. Do not rate 1 star because of this. This is not a fault.</string>
<string name="main_not_compatible_message">This ROM is not compatible with vertexOTA. Please contact your ROM developer. This app requires a custom ROM where the developer has specifically enabled support. Do not rate 1 star because of this. This is not a fault.</string>
<string name="main_not_connected_title">Not connected</string>
<string name="main_not_connected_message">You are not connected to any network. Please enable your network or WiFi and try again.</string>
<string name="main_playstore_title">BitCoin</string>
@@ -1,4 +1,4 @@
package org.aospextended.ota;
package com.vertex.ota;
public class Addon {
@@ -14,15 +14,15 @@
* limitations under the License.
*/
package org.aospextended.ota;
package com.vertex.ota;
import java.io.File;
import android.content.Context;
import android.content.SharedPreferences;
import org.aospextended.ota.utils.Constants;
import com.vertex.ota.utils.Constants;
public class RomUpdate implements Constants {
@@ -1,4 +1,4 @@
package org.aospextended.ota.activities;
package com.vertex.ota.activities;
import in.uncod.android.bypass.Bypass;
@@ -36,14 +36,14 @@
import android.widget.TextView;
import android.widget.Toolbar;
import org.aospextended.ota.Addon;
import org.aospextended.ota.R;
import org.aospextended.ota.RomUpdate;
import org.aospextended.ota.download.DownloadAddon;
import org.aospextended.ota.tasks.AddonXmlParser;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import org.aospextended.ota.utils.Utils;
import com.vertex.ota.Addon;
import com.vertex.ota.R;
import com.vertex.ota.RomUpdate;
import com.vertex.ota.download.DownloadAddon;
import com.vertex.ota.tasks.AddonXmlParser;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
import com.vertex.ota.utils.Utils;
public class AddonActivity extends Activity implements Constants {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.aospextended.ota.activities;
package com.vertex.ota.activities;
import in.uncod.android.bypass.Bypass;
import android.annotation.SuppressLint;
@@ -42,15 +42,15 @@
import android.widget.Toast;
import android.widget.Toolbar;
import org.aospextended.ota.R;
import org.aospextended.ota.RomUpdate;
import org.aospextended.ota.download.DownloadRom;
import org.aospextended.ota.download.DownloadRomProgress;
import org.aospextended.ota.tasks.GenerateRecoveryScript;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import org.aospextended.ota.utils.Tools;
import org.aospextended.ota.utils.Utils;
import com.vertex.ota.R;
import com.vertex.ota.RomUpdate;
import com.vertex.ota.download.DownloadRom;
import com.vertex.ota.download.DownloadRomProgress;
import com.vertex.ota.tasks.GenerateRecoveryScript;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
import com.vertex.ota.utils.Tools;
import com.vertex.ota.utils.Utils;
public class AvailableActivity extends Activity implements Constants, android.view.View.OnClickListener {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.aospextended.ota.activities;
package com.vertex.ota.activities;
import java.io.File;
import java.text.SimpleDateFormat;
@@ -50,13 +50,13 @@
import android.widget.TextView;
import android.widget.Toolbar;
import org.aospextended.ota.R;
import org.aospextended.ota.RomUpdate;
import org.aospextended.ota.tasks.Changelog;
import org.aospextended.ota.tasks.LoadUpdateManifest;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import org.aospextended.ota.utils.Utils;
import com.vertex.ota.R;
import com.vertex.ota.RomUpdate;
import com.vertex.ota.tasks.Changelog;
import com.vertex.ota.tasks.LoadUpdateManifest;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
import com.vertex.ota.utils.Utils;
public class MainActivity extends Activity implements Constants{
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.aospextended.ota.activities;
package com.vertex.ota.activities;
import java.io.File;
@@ -42,11 +42,11 @@
import android.util.Log;
import android.util.SparseBooleanArray;
import org.aospextended.ota.R;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import org.aospextended.ota.utils.Tools;
import org.aospextended.ota.utils.Utils;
import com.vertex.ota.R;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
import com.vertex.ota.utils.Tools;
import com.vertex.ota.utils.Utils;
@SuppressLint("SdCardPath")
@SuppressWarnings("deprecation")
@@ -1,13 +1,13 @@
package org.aospextended.ota.download;
package com.vertex.ota.download;
import android.app.DownloadManager;
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import org.aospextended.ota.AEXOTA;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import com.vertex.ota.vertexota;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
public class DownloadAddon implements Constants {
@@ -35,15 +35,15 @@ public void startDownload(Context context, String url, String fileName, int id,
DownloadManager downloadManager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
long mDownloadID = downloadManager.enqueue(request);
AEXOTA.putAddonDownload(index, mDownloadID);
vertexota.putAddonDownload(index, mDownloadID);
new DownloadAddonProgress(context, downloadManager, index).execute(mDownloadID);
if (DEBUGGING) {
Log.d(TAG, "Starting download with manager ID " + mDownloadID + " and item id of " + id);
}
}
public void cancelDownload(Context context, int index) {
long mDownloadID = AEXOTA.getAddonDownload(index);
long mDownloadID = vertexota.getAddonDownload(index);
if (DEBUGGING) {
Log.d(TAG, "Stopping download with manager ID " + mDownloadID + " and item index of " + index);
}
@@ -1,7 +1,7 @@
package org.aospextended.ota.download;
package com.vertex.ota.download;
import org.aospextended.ota.activities.AddonActivity;
import org.aospextended.ota.utils.Constants;
import com.vertex.ota.activities.AddonActivity;
import com.vertex.ota.utils.Constants;
import android.app.DownloadManager;
import android.content.Context;
import android.database.Cursor;
@@ -14,19 +14,19 @@
* limitations under the License.
*/
package org.aospextended.ota.download;
package com.vertex.ota.download;
import java.io.File;
import android.app.DownloadManager;
import android.content.Context;
import android.net.Uri;
import org.aospextended.ota.R;
import org.aospextended.ota.RomUpdate;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import org.aospextended.ota.utils.Utils;
import com.vertex.ota.R;
import com.vertex.ota.RomUpdate;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
import com.vertex.ota.utils.Utils;
public class DownloadRom implements Constants {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.aospextended.ota.download;
package com.vertex.ota.download;
import android.app.Activity;
import android.app.DownloadManager;
@@ -24,10 +24,10 @@
import android.os.AsyncTask;
import android.util.Log;
import org.aospextended.ota.activities.AvailableActivity;
import org.aospextended.ota.activities.MainActivity;
import org.aospextended.ota.utils.Constants;
import org.aospextended.ota.utils.Preferences;
import com.vertex.ota.activities.AvailableActivity;
import com.vertex.ota.activities.MainActivity;
import com.vertex.ota.utils.Constants;
import com.vertex.ota.utils.Preferences;
public class DownloadRomProgress extends AsyncTask<Long, Integer, Void> implements Constants {
Oops, something went wrong.

0 comments on commit 6c04367

Please sign in to comment.