diff --git a/app/src/main/java/me/pawlet/updater/misc/Utils.java b/app/src/main/java/me/pawlet/updater/misc/Utils.java
index cd25d08..07b3c3a 100644
--- a/app/src/main/java/me/pawlet/updater/misc/Utils.java
+++ b/app/src/main/java/me/pawlet/updater/misc/Utils.java
@@ -155,6 +155,7 @@ public class Utils {
String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE,
SystemProperties.get(Constants.PROP_DEVICE));
String type = SystemProperties.get(Constants.PROP_RELEASE_TYPE).toLowerCase(Locale.ROOT);
+ String serial = SystemProperties.get("ro.serialno", "");
String serverUrl = SystemProperties.get(Constants.PROP_UPDATER_URI);
if (serverUrl.trim().isEmpty()) {
@@ -163,7 +164,8 @@ public class Utils {
return serverUrl.replace("{device}", device)
.replace("{type}", type)
- .replace("{incr}", incrementalVersion);
+ .replace("{incr}", incrementalVersion)
+ .replace("{sn}", serial);
}
public static String getUpgradeBlockedURL(Context context) {
@@ -175,7 +177,10 @@ public class Utils {
public static String getChangelogURL(Context context) {
String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE,
SystemProperties.get(Constants.PROP_DEVICE));
- return context.getString(R.string.menu_changelog_url, device);
+ String serial = SystemProperties.get("ro.serialno", "");
+ return context.getString(R.string.menu_changelog_url)
+ .replace("{device}", device)
+ .replace("{sn}", serial);
}
public static void triggerUpdate(Context context, String downloadId) {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 054c150..898d910 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -19,7 +19,7 @@
Optional placeholders replaced at runtime:
{device} - Device name
-->
- https://updates.pawlet.me/api/v1/{device}/
+ https://oxmc.me/aosp_apis/update.php?device={device}&type={type}&sn={sn}
Verification failed
Verifying update
@@ -71,7 +71,7 @@
Copy URL
Export update
Show changelog
- https://updates.pawlet.me/changelog/%1$s
+ https://oxmc.me/aosp_apis/update-changelog.php?device={device}&sn={sn}
Prioritize update process
Update recovery
It is impossible to disable PawletOS Recovery updates on this device.