Bypass pixel setup on PixelExperience

Requirements

  1. Device with Pixel Experience flashed
  2. Device unlocked, with custom recovery (Twrp or OrangeFox)

Steps

  1. Reboot device into recovery

  2. Connect device with adb
    Note

    • You may restart adb as root in case of permission deny
    • remeber to mount system partition
  3. Add a line at the end of /system/build.prop:

    ro.setupwizard.mode=DISABLED
    

    an example to archive this:

    adb pull /system/build.prop .
    echo 'ro.setupwizard.mode=DISABLED' >> build.prop
    adb push build.prop /system
    
  4. adb disconnect, reboot to system


Idea comes from

This method should work with custom rom with gapps flashed, not tested though