[Moto E5 Questions & Answers] meyerjohn0@gmail.com:
this is when i attemp the unlock again

PS C:\Users\Jack\Desktop\New folder> fastboot.exe oem unlock X46SMX5XO4VBGBTL6XO4

...

(bootloader) invalid boot state

OKAY [ 0.004s]

finished. total time: 0.006s

PS C:\Users\Jack\Desktop\New folder>

this is what happens when attempting flashingfactory image

PS C:\Users\Jack\Desktop\New folder> fastboot.exe oem unlock X46SMX5XO4VBGBTL6XO4

...

(bootloader) invalid boot state

OKAY [ 0.004s]

finished. total time: 0.006s

PS C:\Users\Jack\Desktop\New folder>

PS C:\Users\Jack\Desktop\New folder> fastboot flash partition gpt.bin

>> fastboot flash bootloader bootloader.img

>> fastboot flash modem NON-HLOS.bin

>> fastboot flash fsg fsg.mbn

>> fastboot erase modemst1

>> fastboot erase modemst2

>> fastboot flash bluetooth BTFM.bin

>> fastboot flash dsp dspso.bin

>> fastboot flash boot boot.img

>> fastboot flash system system.img_sparsechunk.# (do this for each numbered variant normally starting with 0)

>> fastboot flash system_b system_b.img_sparsechunk.# (do this for each numbered variant normally starting with 0)

>> fastboot flash oem oem.img

>> fastboot flash oem_b oem_other.img

>> fastboot flash vendor vendor.img_sparsechunk.# (do this for each numbered variant normally starting with 0)

>> fastboot erase carrier

>> fastboot erase userdata

>> fastboot erase DDR

>> fastboot flash logo logo.bin

>> fastboot reboot

< waiting for device >

target reported max download size of 535822336 bytes

sending 'partition' (45 KB)...

OKAY [ 0.006s]

writing 'partition'...

(bootloader) Validating 'gpt.default.xml'

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'gpt.default.xml'

FAILED (remote failure)

finished. total time: 0.073s

target reported max download size of 535822336 bytes

sending 'bootloader' (7483 KB)...

OKAY [ 0.244s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Committing 'bootloader.default.xml'

(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'

(bootloader) - flashing 'rpm.mbn' to 'rpm'

(bootloader) - flashing 'tz.mbn' to 'tz'

(bootloader) - flashing 'devcfg.mbn' to 'devcfg'

(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'

(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'

(bootloader) - flashing 'keymaster.mbn' to 'keymaster'

(bootloader) - flashing 'prov.mbn' to 'prov'

(bootloader) - flashing 'sbl1.mbn' to 'sbl1'

OKAY [ 0.522s]

finished. total time: 0.780s

target reported max download size of 535822336 bytes

sending 'modem' (76610 KB)...

OKAY [ 2.414s]

writing 'modem'...

(bootloader) flash permission denied

FAILED (remote failure)

finished. total time: 2.440s

target reported max download size of 535822336 bytes

sending 'fsg' (1984 KB)...

OKAY [ 0.065s]

writing 'fsg'...

(bootloader) flash permission denied

FAILED (remote failure)

finished. total time: 0.071s

erasing 'modemst1'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.018s

erasing 'modemst2'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.017s

error: cannot load 'BTFM.bin'

error: cannot load 'dspso.bin'

target reported max download size of 535822336 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.521s]

writing 'boot'...

(bootloader) flash permission denied

FAILED (remote failure)

finished. total time: 0.545s

do : The term 'do' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:10 char:49

+ fastboot flash system system.img_sparsechunk.# (do this for each numb ...

+ ~~

+ CategoryInfo : ObjectNotFound: (do:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

do : The term 'do' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:11 char:53

+ fastboot flash system_b system_b.img_sparsechunk.# (do this for each ...

+ ~~

+ CategoryInfo : ObjectNotFound: (do:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

target reported max download size of 535822336 bytes

sending 'oem' (150840 KB)...

OKAY [ 4.749s]

writing 'oem'...

(bootloader) flash permission denied

FAILED (remote failure)

finished. total time: 4.774s

error: cannot load 'oem_other.img'

do : The term 'do' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:14 char:49

+ fastboot flash vendor vendor.img_sparsechunk.# (do this for each numb ...

+ ~~

+ CategoryInfo : ObjectNotFound: (do:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

erasing 'carrier'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.006s

erasing 'userdata'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.022s

erasing 'DDR'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.006s

target reported max download size of 535822336 bytes

sending 'logo' (1423 KB)...

OKAY [ 0.055s]

writing 'logo'...

(bootloader) flash permission denied

FAILED (remote failure)

finished. total time: 0.087s

rebooting...

finished. total time: 0.111s

PS C:\Users\Jack\Desktop\New folder> fastboot oem config

...

(bootloader) <UTAG name="battery" protected="false">

(bootloader) <value>

(bootloader) </value>

(bootloader) <description>

(bootloader) Battery detection control

(bootloader) ("test" or "no_eprom")

(bootloader) </description>

(bootloader) </UTAG>

(bootloader) <UTAG name="bootmode" protected="false">

(bootloader) <value>

(bootloader) </value>

(bootloader) <description>

(bootloader) To force certain bootmode

(bootloader) (valid values are "fastboot", "factory", "bp-tools", "q

(bootloader) com", and "on-device-diag")

(bootloader) </description>

(bootloader) </UTAG>

(bootloader) <UTAG name="carrier" protected="false">

(bootloader) <value>

(bootloader) </value>

(bootloader) <description>

(bootloader) Carrier IDs, see http://goo.gl/lojLh3

(bootloader) </description>

(bootloader) </UTAG>

(bootloader) <UTAG name="factory_kill_timeout" protected="false">

(bootloader) <value>

(bootloader) </value>

(bootloader) <description>

(bootloader) Timeout to shutdown in factory if usb is disconnected.

(bootloader) By default, this feature is disabled.

(bootloader) 0 - shutdown immediately

(bootloader) n - shutdown phone in n seconds: 1 ~ 100

(bootloader)

(bootloader) </description>

(bootloader) </UTAG>

(bootloader) <UTAG name="fsg-id" protected="false">

(bootloader) <value>

(bootloader) </value>

(bootloader) <description>

(bootloader) FSG IDs, see http://goo.gl/gPmhU

(bootloader) </description>

(bootloader) </UTAG>

(bootloader) <UTAG name="enable_dump_gpt" protected="false">

(bootloader) <value>

(bootloader) </value>

(bootloader) <description>

(bootloader) Indicate if the oem command to dump gpt is enabled (tru

(bootloader) e|false)

(bootloader) </description>

(bootloader) </UTAG>

OKAY [ 0.141s]

finished. total time: 0.144s