[Moto X General] dbojan76:
here is what worked for me

here is what worked for me:

spc utility wont work.

-you have to unlock motorola bootloader

-downgrade android to 4.4.4

-downgrade modem to 4.4.2

-write nv-unlock.txt and nv-unlock2.txt

-change modem to "gsm-umts"

if you dont see the device it when connected to pc:

settings > storage and then the "vertical pipe"/settings icon in the top right hand corner. Then I tapped on "USB computer connection". Then toggling back and forth between "Media device (MTP)"

from: https://forums.androidcentral.com/m...sb-driver-cannot-connect-phone-pc-laptop.html

you can use this to see which version is your phone. it should say something lix xt1056 in windows explorer

also install motorola usb drivers from https://support.motorola.com/us/en/solution/MS88481

steps:

(to open command line in windows dir, open windows file explorer, press shift, and use mouse right click, select "open command line here". works in windows 10)

from: https://xdaforums.com/moto-x/moto-x-qa/guide-faq-how-to-downgrade-5-1-to-4-4-4-t3182118

--unlock bootloader using motorola site:

--install motorola usb drivers

--downgrade to 4.4.4

https://firmware.center/firmware/Motorola/Moto X (1st gen-2013)/Stock/XT1056 Sprint/

you need:

ghost_sprint-user-4.4.4-KXA21.12-L1.28-28-release-keys-cid9.xml.zip

ghost_sprint-user-4.4.2-KXA20.16-1.32-37-release-keys-cid9.xml.zip

--force install diagport

https://xdaforums.com/moto-x/general/guide-success-sim-unlock-sprint-xt1056-t2825155/

see post#3 at the beginning of the thread.

--enable diag:

Disable "USB Debugging"

dial ##3424#, enable diag

reboot

--downgrade modem to 4.4.2, post #996 :

(https://xdaforums.com/moto-x/general/guide-success-sim-unlock-sprint-xt1056-t2825155/page100)

use downloaded firmware 4.4.2 , unzip files, flash modem only.

Unlock XT1056 Repuplic Wireless 4.4.4(212.154.2) with locked bootloader for any GSM carriers:

1) Flash radio (NON-HLOS.bin and fsg.mbn ) from XT1056 4.4.2 firmware

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot reboot

2)Open "NV-Items Reader-Writer". You can find link in the first post.

Without SPC code write "nv-unlock.txt" file and "nv-unlock2.txt" (as in first page of the guide)

settings/more/mobile network set to "gsm-umts"

4) Via "Debloater v3.90" freeze 3 apps, whose names beginning "Republi...." (3c ota)

(https://xdaforums.com/android/software/debloater-remove-carrier-bloat-t2998294/page212

https://xdaforums.com/showpost.php?p=76147585&postcount=2108)

Thats all. Phone has calls, SMS, mobile internet

I am also install app "4G switcher" (for switch GSM-WCDMA)

After Full RESET phone via stock recovery steps 3 and 4 need redo

--remove warning boot logo: (optional)

https://androidcure.com/remove-bootloader-unlocked-warning-on-moto-e-g-x/

(if "fastboot devices" does not show your device, use mfastboot from the link on how to downgrade to 4.4.4. Copy logo.bin to that folder, but make backup of the existing logo.bin in that folder. )

NOTES:

make sure you use valid sim card

do not upgrade to android version to 5.1?

"i think we just need a modem of lollpop with unlocked sim .. flashing srpint xt1056 lollipop modem made my sim lock

i had to return on 4.4 modem then i unlocked sim via nv item reader software !"

errors when trying to downgrade everything to 4.4.2:

"You can downgrade the ROM to stock 4.4.4. But you cant downgrade the bootloader."

if you use google play store, make sure you disable google play apps update. "do not install automatic updates" or something in google play store.

thanks to the OP