From 85ea3b5c1223bd786c7bfadc0bc4144ea3a90425 Mon Sep 17 00:00:00 2001
From: oxmc <67136658+oxmc@users.noreply.github.com>
Date: Fri, 12 Jun 2026 17:57:42 -0700
Subject: [PATCH] Updater: point to oxmc.me update API with device/type/serial
params
Update and changelog URLs now point to https://oxmc.me/aosp_apis/.
Add {sn} placeholder (ro.serialno) and {type} (ro.pawlet.releasetype,
lowercased) to both URLs so the server can filter by build type and
identify individual devices.
---
app/src/main/java/me/pawlet/updater/misc/Utils.java | 9 +++++++--
app/src/main/res/values/strings.xml | 4 ++--
2 files changed, 9 insertions(+), 4 deletions(-)
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.