[Android Software/Hacking General [Developers Only]] DoR3M3:
When done flashing a Stock ROM for the Mi A1, the 3rd to last command that Xiaomi has in their .bat scripts is;

fastboot %* set_active a

The cmd isn't accepted, and then the cmd prompt spits out instead all the available cmds it can run, then goes back to the prompt.

I installed the 15 Sec Installed in Win8.1, with the newer/latest usb drivers, and qualcomm drivers for the phone, which have to be installed and run with Signature Verification Disabled, when I want to put the phone in EDL mode.

The Android Platform Tools works, with the cmd set_active a, so I don't understand why Snoop05's package doesn't... :(

This is the entire contents of the 'flash_all_lock.bat' I run;

fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *tissot" || [MENTION=279333]ECHO[/MENTION] "error : Missmatching image and device" & exit /B 1

fastboot %* erase boot_a || [MENTION=279333]ECHO[/MENTION] "error : Erasing boot failed, maybe the device is locked" & exit /B 1

fastboot %* flash modem_a %~dp0images\modem.img || [MENTION=279333]ECHO[/MENTION] "Flash modem_a error" && exit /B 1

fastboot %* flash modem_b %~dp0images\modem.img || [MENTION=279333]ECHO[/MENTION] "Flash modem_b error" && exit /B 1

fastboot %* flash sbl1 %~dp0images\sbl1.img || [MENTION=279333]ECHO[/MENTION] "Flash sbl1 error" && exit /B 1

fastboot %* flash sbl1bak %~dp0images\sbl1.img || [MENTION=279333]ECHO[/MENTION] "Flash sbl1bak error" && exit /B 1

fastboot %* flash rpm %~dp0images\rpm.img || [MENTION=279333]ECHO[/MENTION] "Flash rpm error" && exit /B 1

fastboot %* flash rpmbak %~dp0images\rpm.img || [MENTION=279333]ECHO[/MENTION] "Flash rpmbak error" && exit /B 1

fastboot %* flash tz %~dp0images\tz.img || [MENTION=279333]ECHO[/MENTION] "Flash tz error" && exit /B 1

fastboot %* flash tzbak %~dp0images\tz.img || [MENTION=279333]ECHO[/MENTION] "Flash tzbak error" && exit /B 1

fastboot %* flash devcfg %~dp0images\devcfg.img || [MENTION=279333]ECHO[/MENTION] "Flash devcfg error" && exit /B 1

fastboot %* flash devcfgbak %~dp0images\devcfg.img || [MENTION=279333]ECHO[/MENTION] "Flash devcfgbak error" && exit /B 1

fastboot %* flash dsp %~dp0images\adspso.bin || [MENTION=279333]ECHO[/MENTION] "Flash dsp error" && exit /B 1

fastboot %* flash sec %~dp0images\sec.dat || [MENTION=279333]ECHO[/MENTION] "Flash sec error" && exit /B 1

fastboot %* flash splash %~dp0images\splash.img || [MENTION=279333]ECHO[/MENTION] "Flash splash error" && exit /B 1

fastboot %* flash misc %~dp0images\misc.img || [MENTION=279333]ECHO[/MENTION] "Flash misc error" & exit /B 1

fastboot %* flash aboot %~dp0images\emmc_appsboot.mbn || [MENTION=279333]ECHO[/MENTION] "Flash aboot error" && exit /B 1

fastboot %* flash abootbak %~dp0images\emmc_appsboot.mbn || [MENTION=279333]ECHO[/MENTION] "Flash abootbak error" && exit /B 1

fastboot %* flash boot_a %~dp0images\boot.img || [MENTION=279333]ECHO[/MENTION] "Flash boot_a error" && exit /B 1

fastboot %* flash boot_b %~dp0images\boot.img || [MENTION=279333]ECHO[/MENTION] "Flash boot_b error" && exit /B 1

fastboot %* flash system_a %~dp0images\system.img || [MENTION=279333]ECHO[/MENTION] "Flash system_a error" && exit /B 1

fastboot %* flash system_b %~dp0images\system.img || [MENTION=279333]ECHO[/MENTION] "Flash system_a error" && exit /B 1

fastboot %* flash lksecapp %~dp0images\lksecapp.img || [MENTION=279333]ECHO[/MENTION] "Flash lksecapp error" && exit /B 1

fastboot %* flash lksecappbak %~dp0images\lksecapp.img || [MENTION=279333]ECHO[/MENTION] "Flash lksecappbak error" && exit /B 1

fastboot %* flash cmnlib %~dp0images\cmnlib.img || [MENTION=279333]ECHO[/MENTION] "Flash cmnlib error" && exit /B 1

fastboot %* flash cmnlibbak %~dp0images\cmnlib.img || [MENTION=279333]ECHO[/MENTION] "Flash cmnlibbak error" && exit /B 1

fastboot %* flash cmnlib64 %~dp0images\cmnlib64.img || [MENTION=279333]ECHO[/MENTION] "Flash cmnlib64 error" && exit /B 1

fastboot %* flash cmnlib64bak %~dp0images\cmnlib64.img || [MENTION=279333]ECHO[/MENTION] "Flash cmnlib64bak error" && exit /B 1

fastboot %* flash keymaster %~dp0images\keymaster.img || [MENTION=279333]ECHO[/MENTION] "Flash keymaster error" && exit /B 1

fastboot %* flash keymasterbak %~dp0images\keymaster.img || [MENTION=279333]ECHO[/MENTION] "Flash keymasterbak error" && exit /B 1

fastboot %* flash userdata %~dp0images\userdata.img || [MENTION=279333]ECHO[/MENTION] "Flash userdata error" && exit /B 1

fastboot %* reboot bootloader

ping 127.0.0.1 -n 5 -w 1000 > nul

fastboot %* set_active a

fastboot %* oem lock || [MENTION=279333]ECHO[/MENTION] "lock error" & exit /B 1

fastboot %* reboot

Why isn't fastboot %* set_active a working, anyone might have some ideas?