In this post, we will go through a full cycle of building a custom AOSP image, flashing it on a Pixel phone, and then restoring it to an original stock image. We will use Pixel 6a (codenamed “bluejay”) as the device example. We will walk…