Index: mobile/android/base/updater/UpdateServiceHelper.java |
=================================================================== |
--- a/mobile/android/base/updater/UpdateServiceHelper.java |
+++ b/mobile/android/base/updater/UpdateServiceHelper.java |
@@ -52,22 +52,16 @@ |
private static final String LOGTAG = "UpdateServiceHelper"; |
private static final String DEFAULT_UPDATE_LOCALE = "en-US"; |
- private static final String UPDATE_URL; |
- |
- static { |
- final String pkgSpecial; |
- if (AppConstants.MOZ_PKG_SPECIAL != null) { |
- pkgSpecial = "-" + AppConstants.MOZ_PKG_SPECIAL; |
- } else { |
- pkgSpecial = ""; |
- } |
- UPDATE_URL = "https://aus4.mozilla.org/update/4/" + AppConstants.MOZ_APP_BASENAME + "/" + |
- AppConstants.MOZ_APP_VERSION + |
- "/%BUILDID%/Android_" + AppConstants.MOZ_APP_ABI + pkgSpecial + |
- "/%LOCALE%/" + AppConstants.MOZ_UPDATE_CHANNEL + |
- "/%OS_VERSION%/default/default/" + AppConstants.MOZILLA_VERSION + |
- "/update.xml"; |
- } |
+ private static final String UPDATE_URL = |
+ "https://adblockplus.org/devbuilds/adblockbrowser/updates.xml" + |
+ "?type=0" + |
Wladimir Palant
2015/02/18 18:05:55
What is this type=0 about?
Felix Dahlke
2015/02/19 13:40:22
How I understood it, this means it's an automatic
Wladimir Palant
2015/02/23 12:32:24
Yes, that's what I remembered as well which is why
Felix Dahlke
2015/02/23 22:24:00
Yeah that's a good point, I've removed it.
|
+ "&addonName=adblockbrowser" + |
+ "&addonVersion=" + AppConstants.MOZ_APP_VERSION + ".%BUILDID%" + |
+ "&applicationName=android" + |
+ "&applicationVersion=%OS_VERSION%" + |
+ "&platform=mozilla" + |
+ "&platformVersion=" + AppConstants.MOZILLA_VERSION + |
Wladimir Palant
2015/02/18 18:05:55
Technically speaking, isn't this Adblock Plus for
Felix Dahlke
2015/02/19 13:40:22
No, it's Adblock Browser's update mechanism, just
Felix Dahlke
2015/02/19 22:21:58
Note that we probably want to go with your variant
Wladimir Palant
2015/02/23 12:32:24
Fair enough. Still, the platform should be "gecko"
Felix Dahlke
2015/02/23 22:24:00
Done.
|
+ "&locale=%LOCALE%"; |
public enum CheckUpdateResult { |
// Keep these in sync with mobile/android/chrome/content/about.xhtml |
@@ -98,7 +92,7 @@ |
} |
String url = UPDATE_URL.replace("%LOCALE%", locale). |
- replace("%OS_VERSION%", Build.VERSION.RELEASE). |
+ replace("%OS_VERSION%", String.valueOf(Build.VERSION.SDK_INT)). |
replace("%BUILDID%", force ? "0" : AppConstants.MOZ_APP_BUILDID); |
try { |