Building Pie GSI for Pixel 2/3

167 views
Skip to first unread message

Jim Stys

unread,
Nov 26, 2018, 11:55:21 AM11/26/18
to Android Building
As per the subject, I'm trying to build the pie GSI source to generate a system.img for pixel 2 and, later, a pixel 3.  I am able to successfully build the image but flashing it is causing the bootup to hang on the Pixel 2 and any help would be appreciated.

To build/flash the image I went through this process:
// Building image
repo init
-u https://android.googlesource.com/platform/manifest -b pie-gsi
repo sync
-cq
source build
/envsetup.sh
lunch aosp_arm64_ab
-userdebug
make
-j8

// Installing image
cd
out/target/product/generic_arm64_ab/
fastboot erase system
fastboot
-u flash system system.img
fastboot flash vbmeta vbmeta
.img
fastboot reboot


I first flashed the latest factory image for the pixel 2 (
9.0.0 (PQ1A.181105.017.A1, Nov 2018)) which I found here (https://developers.google.com/android/images#walleye). After flashing the GSI and booting, the phone just displays an older style "android" logo (white text on black background) and fails to boot into the OS.

Jim Stys

unread,
Nov 27, 2018, 2:04:04 PM11/27/18
to Android Building
I got this working by flashing the previous factory image (9.0.0 (PPR2.181005.003, Oct 2018)) and installing the pie gsi built from source on top of that.  I'm guessing it is just a version mismatch as I noticed the build_fingerprint / build_thumbprint in the out directory
have the "PPRL.181005.003" build id referenced in them.
Reply all
Reply to author
Forward
0 new messages