How to install Android 12 on Google Pixel 3

How to flash Google official package?

To flash official ROM, download factory ROM above, enter bootloader on the phone, and directly execute flash_all.sh.

How to flash LineageOS

Download recovery and ROM for LineageOS: https://download.lineageos.org/blueline

Download the ‘recovery’ and flash to ‘boot’

1
fastboot flash boot xxx.img

Then reboot to recovery, do a factory reset first, and then select ‘sideload adb’, then on the computer, flash with ‘adb sideload’ command:

1
2
adb sideload xxx.zip   # LineageOS ROM
adb sideload xxx.zip # (optional) GApps

Note that, you must flash GApps instantly after flash LineageOS. You should not flash LineageOS first, boot, then enter recovery to flash GApps.

lineageos instructions: https://wiki.lineageos.org/devices/blueline/install

lineageos gapps instructions: https://wiki.lineageos.org/gapps

Flash magisk

Get boot.img, patch with magisk, and flash the patched image with fastboot flash boot xxx.img.

Flash GSI

Reboot to bootloader first.

1
adb reboot bootloader

In bootloader, flash vbmeta.

1
2
fastboot devices    # make sure you have connected
fastboot --disable-verification flash vbmeta vbmeta.img

Note that some devices (e.g. Pixel 5) requires fastboot --disable-verity --disable-verification flash vbmeta xxx.img to disable vbmeta verification.

Then reboot to fastbootd. (Note that, despite bootloader and fastbootd share the same fastboot command, they are different modes)

1
fastboot reboot fastboot

Erase the system, and flash it.

1
2
fastboot erase system
fastboot flash system system.img

If an error Not enough space to resize partition occurs, remove some unnecessary partitions…

1
2
fastboot delete-logical-partition product_a
fastboot delete-logical-partition product_b

and try fastboot flash system system.img again.

Finally, erase and boot!

1
2
fastboot -w    # optional
fastboot reboot

Reference:

不使用 TWRP,为你的 Pixel 设备刷入 Android 12 和 Magisk: https://daily.elepover.com/2021/05/19/android-s/index.html

pixel刷机lineage教程 - 掘金: https://juejin.cn/post/7039276486120964126


How to install Android 12 on Google Pixel 3
https://www.billhu.us/2022/31_pixel3/
Author
Bill Hu
Posted on
June 27, 2022
Licensed under