[Nexus 7 (2013) Android Development] ipdev:
Some GApps might be needed to be updated before you can configure you Google account.

I just did a clean flash on my deb.

I go a little overboard when clean flashing. 🙃

I wipe and format using fastboot then install and boot into TWRP.

If needed (some devices) I format data again in TWRP.

Reboot into recovery (TWRP) wipe all and reboot into recovery (TWRP) again.​

I use adb sideload to install.

[ip@lost flo_deb]$ adb sideload lineage-19.1-20221012-UNOFFICIAL-deb.zip
Total xfer: 0.98x
[ip@lost flo_deb]$ adb sideload /ip/opengapps/20220705/open_gapps-arm-12L-pico-20220705-UNOFFICIAL_MOD.zip
Total xfer: 1.33x

Then boot into system.

Skip though the initial setup (offline).

Correct Time Zone.

Turn off all but but basic location.

I prefer to do as much as I can before going online.

Using adb, I install Magisk and push the stock boot image to the device.

[ip@lost flo_deb]$ adb install ~/github/Magisk-build/magisk-snapshot/app-debug.apk
Performing Streamed Install
Success
[ip@lost flo_deb]$ adb push boot-lineage-19.1-20221012-deb.img /sdcard/Download/
boot-lineage-19.1-20221012-deb.img: 1 file pushed, 0 skipped. 21.7 MB/s (7208960 bytes in 0.317s)

Patch the stock boot image and pull the patched boot image.

Then rename it (so I know what it is) and test boot it.

[ip@lost flo_deb]$ adb pull /sdcard/Download/magisk_patched-25205_ZpvJZ.img
/sdcard/Download/magisk_patched-25205_ZpvJZ.img: 1 file pulled, 0 skipped. 14.0 MB/s (7462912 bytes in 0.510s)
[ip@lost flo_deb]$ mv magisk_patched-25205_ZpvJZ.img magisk_25205_boot-lineage-19.1-20221012-deb.img
[ip@lost flo_deb]$ adb reboot bootloader
[ip@lost flo_deb]$ fastboot boot magisk_25205_boot-lineage-19.1-20221012-deb.img
Sending 'boot.img' (7288 KB) OKAY [ 0.280s]
Booting OKAY [ 0.024s]
Finished. Total time: 0.324s

If it worked, I then use the Direct install option in Magisk and reboot.

Configure Magisk (enable Zygisk) and reboot.

Then push the main modules I use to the device.

[ip@lost modules]$ adb push ZipBin-v3.zip /sdcard/Download/
ZipBin-v3.zip: 1 file pushed, 0 skipped. 1.4 MB/s (94435 bytes in 0.063s)
[ip@lost modules]$ adb push dt2w-v2.zip /sdcard/Download/
dt2w-v2.zip: 1 file pushed, 0 skipped. 0.0 MB/s (1906 bytes in 0.060s)
[ip@lost modules]$ adb push osm0sis/*.zip /sdcard/Download/
Busybox_for_Android_NDK-1.34.1(13412).zip: 1 file pushed, 0 skipped. 17.3 MB/s (9908054 bytes in 0.547s)
Nano_for_Android_NDK-6.2(6200).zip: 1 file pushed, 0 skipped. 78.1 MB/s (379579 bytes in 0.005s)
2 files pushed, 0 skipped. 12.3 MB/s (10287633 bytes in 0.798s)
[ip@lost modules]$ adb push ~/github/usnf/mk_zip/usnf-231c.zip /sdcard/Download/
/home/ip/github/usnf/mk_zip/usnf-231c.zip: 1 file pushed, 0 skipped. 2.3 MB/s (96631 bytes in 0.040s)

Install them and reboot.

Connect to WiFi and let Google update.

You might have to start "Finish Setting up your Device" for PlayStore to update.

When you get to adding you account (You might not be able to skip adding an account), close out.

Then long press PlayStore and select "My Apps" it will check for updates, select all.

Once updated (PlayServices, AA and Speech), you should be able to sign into your account.

Normally I sign in before restarting "Finish Setting up your Device" since the skip option is not always available.

I skipped loging in and instead continued "Finishing Setting up you Device" and see the skip option is available.

So I spiked it and continued though, then added my account under Setting -> Google.

Normally I just add it under Passwords & accounts (so I can kill the sync right away).​

Not sure what else to say. :unsure:

---

This was the over complicated way I do clean flash a rom.

Actually not the complicated, it takes more to explain it than it does to do it.

Maybe you can see something that helps.

Cheers. :cowboy:

PS.

I need to check the installed (update) versions from Google before signing in.

Maybe we need to include them in OpenGApps instead of the default version(s) used.