If you are looking for a way to install stock marshmallow rom follow these steps:
Unlocking USB Debugging:-
1.Goto settings then about phone then device information then click build number 7 times until you get the message that ‘You are now a developer!’.
2.Now go back to the main settings, and you will find a new option ‘Developer Option.’ open it and check USB Debugging box.
1.Goto settings then about phone and make a note of your Serial number.
And on the bottom of this page click blue carryon button then select your model number, then enter your Serial number and then enter your email address and accept all things by checking boxes and click submit button.
On your email you will get a link from Zuk containing your bootloader_unlocking file, you have to download that file.
2. Download QPST from here.
3.Download adb/fastboot from here.
5.Stock Marshmallow Download: https://zukfans.eu/community/threads/indian-z2-plus-qpst-official-firmware-zui_2-0-093_st.587/
1.Install Qualcomm and Zuk drivers and restart PC.
2.Install adb by installing adb-setup downloaded above and when you install it will ask your permission in commands just type ‘y’ always and click I trust Google for drivers when it asks.
On completing these two steps:
Unlock Zuk bootloader:-
1.Open folder containing the unlock_bootloader.img that you have downloaded above.
2. Open cmd by pressing shift and right mouse button in the empty area of the folder and select ‘open command window here.’
Now cmd will open like this.
3. Connect Your device to pc with the cable.
4.Type this command:-
adb reboot bootloader
“if phones give you any message of allowing USB debugging access then check always allow .”
If everything happens successfully, your phone will restart in fastboot mode.
5. Now type:-
fastboot -i 0x2b4c flash unlock unlock_bootloader.img
You will see:
target reported max download size of 1610612736 bytes
sending ‘unlock’ (0 KB)…
OKAY [ 0.037s]
OKAY [ 0.053s]
finished. total time: 0.090s
on cmd screen.
astboot -i 0x2b4c oem unlock-go
You will see:
OKAY [ 0.041s]
finished. total time: 0.041s
7.The last command is :
Now your Phones bootloader is unlocked.
1.Extract QPST folder and install QPST
2.After installing extract downloaded rom in a folder.
3.Goto Start then All programs you will see a new folder of QPST from there open QFIL.
4.In QFIL Click “Flat Build” and then click “Browse.” Now navigate to the extracted ROM/Firmware, and select prog_emmc_firehose_8996_ddr.elf
if you are not able to find ddr.elf file click all files instead of Filehores Programmer in Browse Menu.
5. Now click the “load xml” button. This will appear a new explorer. One of them will be needed to navigate to the file rawprogram-flash0.xml the second one will ask for patch0.xml .
Now you are not able to click download button because your phone is not connected.
To solve this, you have to switch your phone into the flashing mode the QPST/QFIL can reach Port 9008.
Restart your Phone and setup it because it’s formatted.
After Setting your phone Turn on USB Debugging and connect Phone to PC and run CMD in PC then type: adb devices allow the accept message on your phone.
And Now The Main Step:
This part is little tricky; you have to become fast to get it working.
In cmd type:
adb reboot edl
and hit enter.
And click the Download button in QFIL as fast as you can after running this command.
IF EVERYTHING GONE IN RIGHT DIRECTION, THEN IT WILL AUTOMATICALLY INSTALL 6.0 MARSHMALLOW IN YOUR ZUK Z2 PLUS.