Hey folks,
I need to go back to stock in order to get my screen replaced under warranty. I need to do this offline, as my online access is on a computer I don't own and can't control driver installation, etc.
I installed GOS offline by downloading the necessary files and following the CLI guide. All good. But the CLI guide is not specific on how to go back to stock, so I just wanted to confirm that the following is correct so I don't do anything that could brick my device. While I'm familiar with the CLI and capable of following instructions, I'm not well versed in commands or android development. A review of my plan would be very much appreciated.
I have a 6a, which along with the rest of the 6 series appears to require an additional step at the end for Android 13, according to Google (see https://developers.google.com/android/images). I am not 100% sure this step is necessary, but pretty confident that if it is not, doing it will not cause any harm. This step can be done via CLI, but it looks safer to do the sideload-the-OTA-update version (which is done via CLI also). I sideloaded an OTA update to be able to enable OEM unlocking before flashing GOS, so I'm familiar with this method.
- Enable USB debugging (according to Google, not in GOS guide)
- Follow steps of the GOS CLI install guide until the bootloader is unlocked
- Erase the GrapheneOS custom Android Verified Boot key (as noted at bottom of CLI guide)
- Extract the (pre-downloaded) stock os zip
- Flash stock os (in same way as GOS is flashed in CLI guide)
- Lock bootloader
- Disable OEM unlocking
- Sideload stock os OTA update (this is the extra step the 6 series seems to require)
A. from CLI: adb reboot recovery
B. from phone: enter recovery menu (Power + Vol Up), then choose "Apply update from ADB"
C. from CLI (to check before proceeding): adb devices
D. from CLI: adb sideload name-of-OTA-file.zip
E. from phone: select "Reboot system now"
- Disable USB debugging and developer options.
- Cry, because GOS is no longer on my phone (kidding, sort of).