Forgive me for missing this, if it has been discussed..
The OP lists the adb flash commands to restore device to factory OS..
I found that flashing the command lines as listed to cause a fastboot.exe error in Windows 7Pro.. Rebooting the bootloader is not necessary after each ( .img ) flash..
The adb commands I used are listed below without any errors, this includes reverting from O5Q to 44S and so on..
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot flash oppostanvbk static_nvbk.bin (this partition seems to have appeared in the 44S build)
fastboot flash system system.img
fastboot flash userdata userdata_64G.img (or userdata.img if you have the 16GB version)
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
sent by my: SandStone Black (#1) 1+1
"The FlagShip Killer"
"Praise Jah" YOU people.!
---------- Post added at 04:40 PM ---------- Previous post was at 04:28 PM ----------
Originally Posted by apatal
After wiping device (except) internal storage, flash everything except the userdata.img and that should leave your data on your phone.
Sir..I run STOCK OS only..I have not tested a custom ROM..seems as thow if one flashes all adb commands except (userdata) one would possibly have errors, since the custom ROM image is somewhat different..BUT..as stated..I have NOT tested a custom ROM revert to STOCK..
BUT..I have tested reverting to O5Q from 44S and visa-versa..and did receive errors..BUT if one is to flash the same version, then NOT flashing the (userdata.img) will be successful of saving the personal files, such as music and pictures on the "Internal Storage" of the device..flash all other lines except (userdata) line and a fresh/clean OS will be installed/flashed..
The ONLY WAY..I have found to revert from one version to another, (stock OS).. is to do a userdata erase..
Someone, Please correct me, If I'm wrong..