maxwen | 7f1e0f4 | 2023-02-14 19:43:26 +0100 | [diff] [blame^] | 1 | OTA updates: |
| 2 | |
| 3 | The builds are in OTA format so they dont include bootloader |
| 4 | and radio images so make sure you have flashed latest bootloader |
| 5 | and radio image from google stock images |
| 6 | |
| 7 | bootloader-oriole-slider<version>.img |
| 8 | radio-oriole<version>.img |
| 9 | |
| 10 | First time install: |
| 11 | |
| 12 | Bear with me that I simply dont care about Windooze users here |
| 13 | just google for any specific instructions there. |
| 14 | |
| 15 | Also I will skip anything regarding bootloader unlock here |
| 16 | and assume you did this before. |
| 17 | |
| 18 | Extract file payload.bin from <ota-file>.zip |
| 19 | |
| 20 | Use payload dumper to extract boot.img and vendor_boot.img from that |
| 21 | payload.bin file |
| 22 | |
| 23 | There are different impls of payload dumper eg |
| 24 | https://pypi.org/project/payload-dumper/ |
| 25 | https://github.com/ssut/payload-dumper-go |
| 26 | |
| 27 | Make sure you use the latest version of Android SDK platform tools |
| 28 | https://developer.android.com/studio/releases/platform-tools |
| 29 | |
| 30 | Make sure you are familiar with basic usage of fastboot and adb |
| 31 | commands |
| 32 | |
| 33 | If you care about anything on the device - NOW its the time to create |
| 34 | a backup somewhere save |
| 35 | |
| 36 | Test adb working: |
| 37 | |
| 38 | > adb devices |
| 39 | List of devices attached |
| 40 | <serialnumber> device |
| 41 | |
| 42 | Reboot into bootloader: |
| 43 | |
| 44 | > adb reboot bootloader |
| 45 | |
| 46 | Check fastboot showing device in fastboot mode: |
| 47 | |
| 48 | > fastboot devices |
| 49 | <serialnumber> fastboot |
| 50 | |
| 51 | Flash minimal recovery: |
| 52 | |
| 53 | > fastboot flash boot boot.img |
| 54 | > fastboot flash vendor_boot vendor_boot.img |
| 55 | |
| 56 | Start recovery: |
| 57 | |
| 58 | > fastboot reboot recovery |
| 59 | |
| 60 | Wait until you see Android mascot on his back with the words 'No command' underneath. |
| 61 | Press and hold the Power key and then press the Volume up key once while still holding |
| 62 | down the Power key. |
| 63 | |
| 64 | Device will enter recovery |
| 65 | Check adb showing device in recovery mode |
| 66 | |
| 67 | > adb devices |
| 68 | List of devices attached |
| 69 | <serialnumber> recovery |
| 70 | |
| 71 | Select 'Apply update from adb' |
| 72 | |
| 73 | Follow instructions and run adb command |
| 74 | |
| 75 | > adb sideload <ota-file>.zip |
| 76 | |
| 77 | Select 'Wipe data/factory reset' |
| 78 | |
| 79 | Select 'Reboot system now' |
| 80 | |
| 81 | You should also flash the second slot once your setup is complete |
| 82 | Either repeat the steps from above |
| 83 | |
| 84 | adb reboot recovery |
| 85 | Apply update from adb |
| 86 | adb sideload <ota-file>.zip |
| 87 | Reboot system now |
| 88 | |
| 89 | Ofc you dont need to wipe data again then |
| 90 | |
| 91 | You can also just wait for the next OTA update to be available |
| 92 | and use the app which will install the update on the other slot |
| 93 | |
| 94 | OTA updates of running system: |
| 95 | |
| 96 | Simply use OTA app in Control Center -> System updates |