• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[how to][pixel devices] flash custom roms using Factory image flash-all script [pixel devices][how to]

Search This thread

Duhjoker

Senior Member
Flash a custom rom directly to your pixel 3a or 3a xl using google factory image zip.

I didnt expect this to work but it did. i flash my pixel 3a alot doing development experiments and found it a hassle to first flash the whole device using the google factory images then using adb sideload to flash the custom rom.

so i had an idea. what if i could flash all the partitions with fresh images and flash the custom rom at the same time. i could then control which slot gets flashed and avoid the process of flashing stock first then rebooting into the bootloader flashing the custom boot then rebooting to the recovery and adb sideloading the custom rom.

AFAIK this will only work for google devices with factory images downloaded from the google factory image site.

so lets get started. Btw i am in no way responsible for any damage this may cause to your device by following this how to. your warranty is now void.

so as you know you should have an unlocked bootloader. I will not go into that process here so you will need to look that up on your own and come back.

so go here and download the latest factory image according to the android version you would like to flash.


while thats downloading go ahead and grab the payload.bin dumper and set it up. you can find that here.....


next find the custom rom you would like to flash according to the android version of the factory image you just downloaded

extract the custom rom zip and cd into the folder created from extracting it. now copy the payload.bin from there and paste it into the payload dumper folder you downloaded and set up in the previous steps and extract the payload.bin

now extract the factory image zip you downloaded according the android version of the custom rom zip and cd into those folders and create a new folder calling it what ever you like but for the intent of this guide call it stockimage.

now extract the contents of the stock image zip into the folder you just created.

now open another window and go to the output of the payload dumper and move the contents of that folder into the stockimage folder you created in the previous step and replace the stock partition images with the custom partition images from the payload dumpers output

when that completes zip up everything in the stockimage folder and name it the same name as the zip in the factory images folder we unzipped earlier. then replace the stock image zip in that folder with the new one we just created.

now rebbot your pixel 3a or 3a xl into the bootloader and run sh flash-all.sh and when it completes you will now boot into the custom rom instead of the factory stock rom.

so now you know how to flash a custom rom all in one shot using fastboot and avoiding the adb sideloading of the custom rom zip.

tested and working on Google Pixel 3A

enjoy
 
Last edited:
  • Like
Reactions: beeewell

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Flash a custom rom directly to your pixel 3a or 3a xl using google factory image zip.

    I didnt expect this to work but it did. i flash my pixel 3a alot doing development experiments and found it a hassle to first flash the whole device using the google factory images then using adb sideload to flash the custom rom.

    so i had an idea. what if i could flash all the partitions with fresh images and flash the custom rom at the same time. i could then control which slot gets flashed and avoid the process of flashing stock first then rebooting into the bootloader flashing the custom boot then rebooting to the recovery and adb sideloading the custom rom.

    AFAIK this will only work for google devices with factory images downloaded from the google factory image site.

    so lets get started. Btw i am in no way responsible for any damage this may cause to your device by following this how to. your warranty is now void.

    so as you know you should have an unlocked bootloader. I will not go into that process here so you will need to look that up on your own and come back.

    so go here and download the latest factory image according to the android version you would like to flash.


    while thats downloading go ahead and grab the payload.bin dumper and set it up. you can find that here.....


    next find the custom rom you would like to flash according to the android version of the factory image you just downloaded

    extract the custom rom zip and cd into the folder created from extracting it. now copy the payload.bin from there and paste it into the payload dumper folder you downloaded and set up in the previous steps and extract the payload.bin

    now extract the factory image zip you downloaded according the android version of the custom rom zip and cd into those folders and create a new folder calling it what ever you like but for the intent of this guide call it stockimage.

    now extract the contents of the stock image zip into the folder you just created.

    now open another window and go to the output of the payload dumper and move the contents of that folder into the stockimage folder you created in the previous step and replace the stock partition images with the custom partition images from the payload dumpers output

    when that completes zip up everything in the stockimage folder and name it the same name as the zip in the factory images folder we unzipped earlier. then replace the stock image zip in that folder with the new one we just created.

    now rebbot your pixel 3a or 3a xl into the bootloader and run sh flash-all.sh and when it completes you will now boot into the custom rom instead of the factory stock rom.

    so now you know how to flash a custom rom all in one shot using fastboot and avoiding the adb sideloading of the custom rom zip.

    tested and working on Google Pixel 3A

    enjoy