Posted on



First of all you should turn on OEM unlocking under the device settings- developer options

Download the appropriate system image for your device

Android SDK Tool

Minimal ADB and Fastboot Tool

Google nexus/pixel USB Driver ZIP file

Nguồn:https://hdwallpaperslovely.com/

26 Replies to “How to flash nexus 6p with factory image and How to unlock bootloader”

  1. Fix for anyone getting an error of:

    "wiping userdata…

    CreateProcess failed: The system cannot find the file specified. (2)

    error: Cannot generate image for userdata

    Press any key to exit…"

    after extracting 'image-angler-nbd91k' at 2:03, right click the "flash-all" batch file and click edit.
    Look for the line 4th from the bottom "fastboot -w update image….." and remove the '-w', then save the file.

    Then continue as normal.

    *Note: this step must be done BEFORE you copy all the files over to the 'Minimal ADB and Fastboot' Folder at 2:32

  2. If someone does not work, he must edit the file "flash-all.bat" as an administrator and remove the 2 characters "-w" Amen.

  3. my phone shows this error message while flashing. I followed your steps carefully. but this message keeps coming

    wiping userdata…

    CreateProcess failed: The system cannot find the file specified. (2)

    error: Cannot generate image for userdata

    Press any key to exit…

  4. After extracting the zip file inside the factory image, I noticed two files, cache and userdata, are missing. Please advise.

  5. hi i found this error message can u please help me solve it ?
    The system cannot find the file specified. (2) error: Cannot generate image for userdata

  6. When I type "fastboot devices" it shows:

    PS C:Usersrpcar> fastboot devices
    CVH7N15A14007144 fastboot
    PS C:Usersrpcar>

    but as soon as I type-in fastboot flashing unlock

    commands:
    update <filename> reflash device from update.zip
    flashall flash boot + recovery + system
    flash <partition> [ <filename> ] write a file to a flash partition
    erase <partition> erase a flash partition
    format <partition> format a flash partition
    getvar <variable> display a bootloader variable
    boot <kernel> [ <ramdisk> ] download and boot kernel
    flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
    devices list all connected devices
    continue continue with autoboot
    reboot reboot device normally
    reboot-bootloader reboot device into bootloader
    help show this help message

    options:
    -w erase userdata and cache (and format
    if supported by partition type)
    -u do not first erase partition before
    formatting
    -s <specific device> specify device serial number
    or path to device port
    -l with "devices", lists device paths
    -p <product> specify product name
    -c <cmdline> override kernel commandline
    -i <vendor id> specify a custom USB vendor id
    -b <base_addr> specify a custom kernel base address. default: 0x10000000
    -n <page size> specify the nand page size. default: 2048
    -S <size>[K|M|G] automatically sparse files greater than
    size. 0 to disable
    PS C:Usersrpcar>

    I tried fastboot oem unlock:

    FAILED (remote: unknown command)
    finished. total time: 0.010s
    PS C:Usersrpcar>

    I am pretty sure USB Debugging is ON and OEM unlocked before I encoutered bootloop.

  7. I have 2 huawei 6p that are in a loop and when i try to unlock the bootloader it says that oem is not allowed, then i tryed to flash it without the bootloeader unlocking and it says "device is locked. cannot flash images. What should i do?

  8. It's working! Thank you for helping me out! I used the same process in flashing my Nexus 6p from Android Nougat 7.1.2 to latest Android Oreo 8.0! Big thanks for this video and to the author 😀 <3

  9. Thank you bro, u saved my ass. My Phone was stuck in a strange kind of Bootloop and with this, I was able to flash a new factory image. THANK YOU!!! <3

Leave a Reply

Your email address will not be published. Required fields are marked *