LineageOS on Motorola Z2 Force
Whenever there is a major LineageOS Update, chances are that I forgot the flashing process. So here are the notes.
Disclaimer: Due to the missing tools to flash from OpenBSD, I use my work computer, which runs windows.
Required Downloads:
- Android Platform Tools (contains adb and fastboot)
- Motorola Smart Assistant (contains USB drivers for fastboot)
Prepare:
- Install motorola smart assistant
- Extract platform-tools make sure you’re in the platform tools directory or that they are in your $PATH
Update steps:
- p[hone]: Boot into bootloader (power+down)
- c[omputer]: fastboot flash boot_a <lineageos_recovery>.img
- c: fastboot flash boot_b <lineageos_recovery>.img
- p: Boot into bootloader (power+down) > Boot Recovery
- p: Factory Reset > Wipe data / factory reset + Wipe System
- p: Apply update > adb sideload
- c: adb sideload <lineageos>.zip
- c: adb sideload <addons>.zip
- p: Reboot
Notes:
adb devicesworks without USB driversfastboot devicesshows nothing if USB drivers are not installed- This phone has two boot areas and therefore
fastboot flash bootwill fail. The areasboot_aandboot_bmust be used instead. Ifboot_aandboot_bare flashed differently, booting will fail.