Hi Golfdriver97,
I have set up android studio on MAC OS and when I am using fastboot there it is working but after reboot phone is again getting stuck at warning page of unlocked bootloader and not getting on.
I dont see any error on mobile when I re-flashed it using fastboot from MAC. Following are the logs.
$ fastboot erase system -w
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
******** Did you mean to fastboot format this ext4 partition?
wiping userdata...
Erase successful, but not automatically formatting.
File system type raw not supported.
wiping cache...
Creating filesystem with parameters:
Size: 694288384
Block size: 4096
Blocks per group: 32768
Inodes per group: 7072
Inode size: 256
Journal blocks: 2648
Label:
Blocks: 169504
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/42432 inodes and 5511/169504 blocks
target reported max download size of 536870912 bytes
erasing 'system'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.090s]
erasing 'userdata'...
OKAY [ 0.019s]
erasing 'cache'...
OKAY [ 0.061s]
sending 'cache' (12640 KB)...
OKAY [ 0.492s]
writing 'cache'...
OKAY [ 0.289s]
finished. total time: 0.952s
$
$
$
$
$
$
$ fastboot erase boot
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:boot: not found
erasing 'boot'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.097s]
finished. total time: 0.097s
$
$
$
$ fastboot erase recovery
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
erasing 'recovery'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.073s]
finished. total time: 0.073s
$
$
$
$
$
$
$ fastboot flash partition gpt.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot
artition: not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.092s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.330s]
finished. total time: 0.422s
$
$
$
$ fastboot flash motoboot motoboot.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:motoboot: not found
target reported max download size of 536870912 bytes
sending 'motoboot' (1953 KB)...
OKAY [ 0.155s]
writing 'motoboot'...
(bootloader) flashing tz ...
(bootloader) flashing rpm ...
(bootloader) flashing sdi ...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
OKAY [ 0.957s]
finished. total time: 1.112s
$
$
$
$
$
$ fastboot flash logo logo.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:logo: not found
target reported max download size of 536870912 bytes
sending 'logo' (295 KB)...
OKAY [ 0.105s]
writing 'logo'...
OKAY [ 0.062s]
finished. total time: 0.167s
$
$
$
$
$
$ fastboot flash boot boot.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:boot: not found
target reported max download size of 536870912 bytes
sending 'boot' (10240 KB)...
OKAY [ 0.405s]
writing 'boot'...
OKAY [ 0.603s]
finished. total time: 1.009s
$
$
$
$
$ fastboot flash recovery recovery.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
target reported max download size of 536870912 bytes
sending 'recovery' (10240 KB)...
OKAY [ 0.403s]
writing 'recovery'...
OKAY [ 0.602s]
finished. total time: 1.005s
$
$
$
$
$ fastboot flash system system.img_sparsechunk.0
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
erasing 'system'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.045s]
sending 'system' (257755 KB)...
OKAY [ 8.116s]
writing 'system'...
OKAY [ 7.840s]
finished. total time: 16.002s
$
$
$
$
$ fastboot flash system system.img_sparsechunk.1
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
erasing 'system'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.031s]
sending 'system' (256953 KB)...
OKAY [ 8.102s]
writing 'system'...
OKAY [ 8.000s]
finished. total time: 16.133s
$
$
$
$
$ fastboot flash system system.img_sparsechunk.2
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
erasing 'system'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.014s]
sending 'system' (260396 KB)...
OKAY [ 8.227s]
writing 'system'...
OKAY [ 7.990s]
finished. total time: 16.231s
$
$
$
$ fastboot flash system system.img_sparsechunk.3
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
erasing 'system'...
(bootloader) Erase allowed in unlocked state
OKAY [ 0.013s]
sending 'system' (166572 KB)...
OKAY [ 5.294s]
writing 'system'...
OKAY [ 6.301s]
finished. total time: 11.608s
$
$
$
$
$ fastboot flash modem NON-HLOS.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:modem: not found
target reported max download size of 536870912 bytes
sending 'modem' (49376 KB)...
OKAY [ 1.591s]
writing 'modem'...
OKAY [ 0.780s]
finished. total time: 2.371s
$
$
$
$
$ fastboot erase modemst1
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:modemst1: not found
erasing 'modemst1'...
OKAY [ 0.056s]
finished. total time: 0.056s
$
$
$
$
$
$ fastboot erase modemst2
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:modemst2: not found
erasing 'modemst2'...
OKAY [ 0.056s]
finished. total time: 0.056s
$
$
$
$
$ fastboot flash fsg fsg.mbn
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:fsg: not found
target reported max download size of 536870912 bytes
sending 'fsg' (103 KB)...
OKAY [ 0.095s]
writing 'fsg'...
OKAY [ 3.181s]
finished. total time: 3.276s
$
$
$
$
$ fastboot erase cache
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:cache: not found
******** Did you mean to fastboot format this ext4 partition?
erasing 'cache'...
OKAY [ 0.059s]
finished. total time: 0.059s
$
$
$
$ fastboot erase userdata
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:userdata: not found
erasing 'userdata'...
OKAY [ 0.063s]
finished. total time: 0.063s
$
$
$
$
$ fastboot reboot
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
rebooting...
Please let me know if I am doing something wrong or its just phone has died and nothing can be done.
Thanks and regards
Shashank