Loading build/patches/00Cromite-Branding.patch +3 −3 Original line number Diff line number Diff line Loading @@ -9009,8 +9009,8 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/Br - private static final String UPDATE_VERSION_URL = "https://github.com/bromite/bromite/releases/latest/download/"; - private final String UPSTREAM_VERSION_URL = "https://www.bromite.org/upstream.txt"; - public static final String VULNERABLE_VERSION_DOC_URL = "https://www.bromite.org/vulnerable-version"; + private final String REDIRECT_URL_PREFIX = "https://github.com/uazo/bromite-buildtools/releases/download/"; + private static final String UPDATE_VERSION_URL = "https://github.com/uazo/bromite-buildtools/releases/latest/download/"; + private final String REDIRECT_URL_PREFIX = "https://github.com/uazo/cromite/releases/download/"; + private static final String UPDATE_VERSION_URL = "https://github.com/uazo/cromite/releases/latest/download/"; + private final String UPSTREAM_VERSION_URL = ""; + public static final String VULNERABLE_VERSION_DOC_URL = ""; Loading @@ -9021,7 +9021,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/Br if (redirectURL.indexOf(REDIRECT_URL_PREFIX) == 0) { redirectURL = redirectURL.substring(REDIRECT_URL_PREFIX.length()); + // adapt url + // example https://github.com/uazo/bromite-buildtools/releases/download/v114.0.5735.199-af55aa0ddfc47fbaffafd60c385d4c43c7c5ad0c + // example https://github.com/uazo/cromite/releases/download/v114.0.5735.199-af55aa0ddfc47fbaffafd60c385d4c43c7c5ad0c + String[] url_parts = redirectURL.split(Pattern.quote("-")); + if (url_parts.length > 0) { + redirectURL = url_parts[0].substring(1); Loading
build/patches/00Cromite-Branding.patch +3 −3 Original line number Diff line number Diff line Loading @@ -9009,8 +9009,8 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/Br - private static final String UPDATE_VERSION_URL = "https://github.com/bromite/bromite/releases/latest/download/"; - private final String UPSTREAM_VERSION_URL = "https://www.bromite.org/upstream.txt"; - public static final String VULNERABLE_VERSION_DOC_URL = "https://www.bromite.org/vulnerable-version"; + private final String REDIRECT_URL_PREFIX = "https://github.com/uazo/bromite-buildtools/releases/download/"; + private static final String UPDATE_VERSION_URL = "https://github.com/uazo/bromite-buildtools/releases/latest/download/"; + private final String REDIRECT_URL_PREFIX = "https://github.com/uazo/cromite/releases/download/"; + private static final String UPDATE_VERSION_URL = "https://github.com/uazo/cromite/releases/latest/download/"; + private final String UPSTREAM_VERSION_URL = ""; + public static final String VULNERABLE_VERSION_DOC_URL = ""; Loading @@ -9021,7 +9021,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/inline/Br if (redirectURL.indexOf(REDIRECT_URL_PREFIX) == 0) { redirectURL = redirectURL.substring(REDIRECT_URL_PREFIX.length()); + // adapt url + // example https://github.com/uazo/bromite-buildtools/releases/download/v114.0.5735.199-af55aa0ddfc47fbaffafd60c385d4c43c7c5ad0c + // example https://github.com/uazo/cromite/releases/download/v114.0.5735.199-af55aa0ddfc47fbaffafd60c385d4c43c7c5ad0c + String[] url_parts = redirectURL.split(Pattern.quote("-")); + if (url_parts.length > 0) { + redirectURL = url_parts[0].substring(1);