From 30411068f9f69083f238237216d745423f74ef8a Mon Sep 17 00:00:00 2001
From: Daniel Micay
Date: Mon, 22 Aug 2022 20:01:27 -0400
Subject: [PATCH] temporarily use Beta for 6th generation installs
---
static/install/cli.html | 11 +++++++----
static/install/web.html | 5 -----
static/js/web-install.js | 3 ++-
3 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/static/install/cli.html b/static/install/cli.html
index ea42df6d..6f985175 100644
--- a/static/install/cli.html
+++ b/static/install/cli.html
@@ -163,10 +163,13 @@
carrier device, it isn't a problem as GrapheneOS can just ignore the carrier id
and the hardware is the same.
- Do not update to Android 13 on 6th generation Pixels before installing
- GrapheneOS yet. It will be a couple weeks before GrapheneOS is ported to Android
- 13 and you cannot install Android 12 firmware once you've updated to Android 13
- and therefore cannot install an OS still based on Android 12.
+ If you have a Pixel 6, Pixel 6 Pro or Pixel 6a updated to Android 13,
+ you need to install Android 13 GrapheneOS from our Beta channel instead of Android
+ 12.1 GrapheneOS from the Stable channel. It's not possible to downgrade from
+ Android 13 firmware to Android 12.1 firmware and the installation script will
+ report an error. Beta releases are the same kind of production releases as the
+ Stable channel and installing a Beta release still defaults to receiving updates
+ via the Stable channel.
diff --git a/static/install/web.html b/static/install/web.html
index dcb8b439..e10b5319 100644
--- a/static/install/web.html
+++ b/static/install/web.html
@@ -155,11 +155,6 @@
device to avoid the risk and potential hassle. If you CAN figure out a way to unlock a
carrier device, it isn't a problem as GrapheneOS can just ignore the carrier id
and the hardware is the same.
-
- Do not update to Android 13 on 6th generation Pixels before installing
- GrapheneOS yet. It will be a couple weeks before GrapheneOS is ported to Android
- 13 and you cannot install Android 12 firmware once you've updated to Android 13
- and therefore cannot install an OS still based on Android 12.
diff --git a/static/js/web-install.js b/static/js/web-install.js
index 3fbec2d4..21bf1915 100644
--- a/static/js/web-install.js
+++ b/static/js/web-install.js
@@ -154,7 +154,8 @@ async function getLatestRelease() {
throw new Error(`device model (${product}) is not supported by the GrapheneOS web installer`);
}
- let metadataResp = await fetch(`${RELEASES_URL}/${product}-stable`);
+ let channel = gs101Devices.includes(product) ? "beta" : "stable";
+ let metadataResp = await fetch(`${RELEASES_URL}/${product}-${channel}`);
let metadata = await metadataResp.text();
let releaseId = metadata.split(" ")[0];