====== LineageOS Update ======
===== Prep =====
* Alarms
* Motorsport time - 5:30am.
* Walk the fucking dogs - 5:45am.
* Get up, motherfucker - 6:30am, weekdays.
* Get your shit together - 7:20am, weekdays.
* Sounds
* Phone ringtone: The Great Giana Sisters - Title.
* Default notification sound: Argon.
* Default alarm sound: CyanAlarm.
* Do not disturb preferences, Automatic rules
* Meeting, Priority only
* Weeknight, Days: Sun, Mon, Tue, Wed, Thu, Start time: 10:00pm, End time: 6:30am next day, Priority only, Alarm can override: true.
* Weekend, Days: Fri, Sat, Start time: 10:30pm, End time: 7:30am next day, Priority only, Alarm can override: true.
* Update stuff in ''Mega:Phone stuff/Internal shared storage'', if necessary.
* Export contacts to ''Mega:Phone stuff/Backups/Contacts.vcf''.
* Back up Race Chrono to ''Mega:Phone stuff/Backups''.
* Back up Locus (not export, Menu > More Functions > Backup Manager) to ''Mega:Phone stuff/Backups''.
* Back up Productivity Challenge to ''Mega:Phone stuff/Backups''.
* Check that the Authenticators can recover.
* Screen shot every thing (Volume Down & Power buttons) and upload to ''Mega:Phone stuff/Screen shots''.
* Sync AnkiDroid.
* Note Smart AudioBook play position.
* Temporarily change Google password to something short and type-able.
* Copy anything import from internal drive to ''E:\Phone Backup''.
* Decide what photos to keep.
===== Procedure =====
- Flash orange box
- Restart
- Then flash FW, not MIUI. flashing MIUI may remove custom recovery.
- Restart
- Flash LOS 16 & gapps
===== Procedure for 18.1 =====
- Update Android Debug Bridge.
- Download it from [[https://developer.android.com/studio/releases/platform-tools]]
- Extract it and copy it to ''C:\Program Files (x86)\Android\android-sdk\platform-tools''.
- Use a CMD terminal.
- ''cd 'C:\Program Files (x86)\Android\android-sdk\platform-tools'''
- Check device is connected.
- ''adb.exe devices''
- Install / update custom recovery
- Follow the instructions [[https://wiki.lineageos.org/devices/chiron/install#installing-a-custom-recovery-using-fastboot|here]].
-
===== Post =====
* Work email setup:
* Domain\Username: stephenh@provoke.co.nz
* Password:
* Client certificate: none
* Server: outlook.office365.com
* Port: 443
* Security type: SSL/TLS
===== Update to 22.1 =====
==== Notes ====
* Don't bother trying to update the recovery. Cross your fingers and hope the existing one works. Updating the recovery doesn't work because:
* Fastboot does not work. Fastboot does not work because:
* The standard Android USB drivers don't work. Installing the Xiaomi drivers doesn't work because:
* The Xiaomi drivers are fucked.
==== Procedure ====
- Prep.
- Download the latest [[https://developer.android.com/studio/releases/platform-tools|Android Platform Tools]] (which contains the Android Debug Bridge).
- Download the [[https://download.lineageos.org/devices/chiron|LineageOS zip file]].
- Download the correct [[https://wiki.lineageos.org/gapps/|MindTheGapps]] (ARM64).
- Update Android Debug Bridge.
- [Kea] Extract the Android Platform Tools to ''C:\Android SDK Platform-Tools''.
- [Rimu] Extract the Android Platform Tools to ''C:\Android Platform-tools''.
- Check ADB works.
- Start a CMD terminal.
- [Kea] ''cd "C:\Android SDK Platform-Tools"''
- [Rimu] ''cd "C:\Android Platform-tools"''
- ''adb.exe devices''
- Install LineageOS ([[https://wiki.lineageos.org/devices/chiron/install/#installing-lineageos-from-recovery|full instructions]])
- Reboot phone into recovery.
- ''adb -d sideload "temp\lineage-22.1-20241231-nightly-chiron-signed.zip"''
- Install MindTheGapps (mandatory, [[https://wiki.lineageos.org/devices/chiron/install/#installing-add-ons|full instructions]])
- ''adb -d sideload "temp\MindTheGapps-15.0.0-arm64-20240928_150548.zip"''
- Reboot phone.
==== Pass Play Integrity Test ====
[[https://www.youtube.com/watch?v=l6qlRnFFSYk|How to Pass Play Integrity Test on LineageOS 21 ROM [Android 14]]]
[[https://droidwin.com/pass-safetynet-on-rooted-lineageos-rom-any-version/|Pass Safetynet on Rooted LineageOS ROM]]
Root instructions: [[https://droidwin.com/root-lineageos-magisk-boot-img/#Method_1_Root_LineageOS_via_LineageOS_Recovery|How to Root LineageOS ROM via Magisk Boot]], use Method 1: Root LineageOS via LineageOS Recovery.
[[https://droidwin.com/how-to-pass-play-integrity-on-lineageos-rom-any-version/#Via_Module|How to Pass Play Integrity on LineageOS ROM]], use the 'Via Module' method.
===== Downgrade to 21.0 =====
==== Prep ====
* Screen shot apps.
* Screen shot alarms.
* Sounds
* Phone ringtone: The Great Giana Sisters - Title.
* Default notification sound: Argon.
* Default alarm sound: CyanAlarm.
* Anki sync.
* Update stuff in ''Mega:Phone stuff/Internal shared storage'', if necessary.
* Copy anything important from internal drive to ''E:\Phone Backup''.
* Export contacts to ''Mega:Phone stuff/Backups/Contacts.vcf''.
* Back up Locus (not export, Menu > Settings > Backup & filesystem > Backup Manager > Manual backup) to ''Mega:Phone stuff/Backups''.
* Back up Productivity Challenge to ''Mega:Phone stuff/Backups''.
* Note Smart AudioBook play position.
* Temporarily change Google password to something short and type-able.
==== Procedure ====
- Switch on Athena (Silicon desktop).
- Connect phone to Athena.
- RDP into Athena from Rimu.
- [Rimu, Terminal] ''cd 'C:\Android SDK Platform-Tools\'''
- [Rimu, Terminal] Check USB connection: ''cd 'C:\Android SDK Platform-Tools\'''