[Nexus 6P General] Rashad83:
Hi,

So currently i am staying in a country where Google services aren't possible to access without a VPN which makes it impossible to setup the device for the first time or after flashing a new Rom where you are required to connect to a network to enter your account. Especially after Nougat 7.1.2 and Android O beta the option to setup the device without network has disappeared for me. I have searched online to no avail of how to bypass the setup screen but luckily i found some hints and eventually it worked out. Here is what you need:

Requirements:

* ADB and Fastboot installed on PC or Mac.

* Unlocked Bootloader

* The Latest device TWRP.

* Notepad++

The Process:

* Whether you'r booting your device for the first time or you have flashed a new rom you need to boot to the bootloader by typing "Fastboot reboot bootloader" in Cmd or using the physical keys " Power button + Vol down" or by holding the Vol down and connecting the usb from your device to the PC.

* Launch CMD from Fastboot.exe location folder by clicking Shift + right click and choosing "Open Command window here"

* Enter the Bootloader screen on your device to flash TWRP. Put the TWRP.img you downloaded in the location of fastboot.exe then in CMD Type the following code without quotations: "fastboot flash recovery <filename>.img"

* After flashing TWRP use the hardware keys on your device and select to reboot to the bootloader again, then after booting back select to reboot to recovery. You will enter TWRP after that.

* Mount System in the "mount" section, you will see your device connected to you PC now. Put the SuperSu zip file you downloaded into your device. After that navigate to the install section in TWRP and install SuperSu.

* Now you need to navigate to System/build.prop by using the File browser in TWRP, copy the file to the Sdcard then on your PC using Notepad++ open the build.prop and edit it by adding the following Line without quotations: "ro.setupwizard.mode=DISABLED".

* The next step is to copy back the build.prop edited and replace it with the original one(leave a copy just in case if you want to) in your device, after you do that click the build.prop file make sure to select the left button to set the permissions to default "755".

* That's it reboot your device, you should be able to bypass the wizard and go to the homescreen.

Credits to [MENTION=4189418]organophosphate[/MENTION]

https://xdaforums.com/showthread.php?t=1909602

P.S:

* Sorry for making the guide not noob friendly. Noobs you can find tutorials on how to do all the things required here if you google a bit!.

* Regarding the build.prop you can restore the default one you saved(if you did as suggested) using any file browser with root and don't forget to change the permissions to default before you restart the device. Another way is to do it in TWRP as we did earlier.

* I have tested this on Nougat 7.1.2 and Android O DP3 and it worked in both.

* Finally the reason you can't pass the Wifi setup page is because of "Factory Reset Protection", the reason it is enabled is because the device was factory reset before the Google account linked with it was signed out from. Next time you perform a factory reset do yourself a favour and sign out your Google account then do a factory reset, what happens is that next time you start up your device you can set it up without a Google account or wifi like you remember it.

Good Luck ;):good: