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