[Moto G Q&A, Help & Troubleshooting] tuxboson:
Lost unlock on XT1039

I have a "nice" problem ... Please help!

The short story before ...

I have had allready a Moto G4G - XT1039, running with CM11. Then I buyed a second XT1039 for my child.

The second one I successfully unlocked and installed RecoveryTWRP2-8-3.img

With this I made a complete backup of the original system with twrp. No problem.

To setup faster the second XT1039 I made the following (now I know) stupid thing:

I recovered a backup from the first Moto G (with allready working CM11) on the second one (with STOK) with following "results":

- Boot only into Fastboot Flash Mode

- Device is LOCKED

- Recovery is not working

What ist mystery:

The first (successfull) try to get the unlock was made with this unlock data:

sudo fastboot oem get_unlock_data
(bootloader) 3A95920035525630#54413030333030
(bootloader) 4B4B3600585431303339000000#872B
(bootloader) BE9F0822F7424BC2FB0F8817B64A16D
(bootloader) 45942#89BD660515000000000000000
(bootloader) 0000000

The unlock Code was GCVLXD3BZAVLH43PIICF

After things above happend the unlock data changend....

sudo fastboot oem get_unlock_data
(bootloader) 3A95920005906117#54413938363031
(bootloader) 57425A00585431303339000000#2845
(bootloader) C2BD5F9B1EFCE6D6F678E1466C521AC
(bootloader) 42B17#96784A0115000000000000000
(bootloader) 0000000

and with this a new unlock code was generated: HTRJXN5SAAEYQBAUMLOH

But: The new unlock Code still not working, it fails:

sudo fastboot oem unlock HTRJXN5SAAEYQBAUMLOH
(bootloader) fastboot oem unlock disabled!
FAILED (remote failure)

So i don't have the device unlocked and so I can't install twrp at all.

SECOND creazy thing is the cid: 0xDEAD (hope DEAD means not dead ...)

sudo fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 4113(*)
(bootloader) product: peregrine
(bootloader) secure: yes
(bootloader) hwrev: 0x82D0
(bootloader) radio: 0x3
(bootloader) emmc: 8GB Toshiba REV=06 PRV=51 TYPE=17
(bootloader) ram: 1024MB Elpida S4 SDRAM DIE=4Gb
(bootloader) cpu: MSM8926
(bootloader) serialno: TA98601WBZ
(bootloader) cid: 0xDEAD
(bootloader) channelid: 0xDEAD
(bootloader) uid: 89BD660515000000000000000000
(bootloader) unlocked: Not supported
(bootloader) iswarrantyvoid: Not supported
(bootloader) mot_sst: 8
(bootloader) max-download-size: 536870912
(bootloader) reason: Fall-through from normal boot mode
(bootloader) imei:
(bootloader) meid:
(bootloader) date:
(bootloader) sku:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 14: 1:39 UTC 1970"
(bootloader) ro.build.fingerprint[0]: motorola/peregrine_retde/peregrine
(bootloader) ro.build.fingerprint[1]: :4.4.4/KXB21.14-L1.46/41:user/rele
(bootloader) ro.build.fingerprint[2]: ase-keys
(bootloader) ro.build.version.full[0]: Blur_Version.21.1.46.peregrine_re
(bootloader) ro.build.version.full[1]: tde.retdeall.en.DE
(bootloader) ro.build.version.qcom[0]: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1
(bootloader) ro.build.version.qcom[1]: .04.04.02.048.020
(bootloader) version-baseband:
(bootloader) kernel.version[0]: Linux version 3.4.42-g4522add (hudsoncm@
(bootloader) kernel.version[1]: ilclbld27) (gcc version 4.7 (GCC) ) #1 S
(bootloader) kernel.version[2]: MP PREEMPT Mon Jul 7 21:51:48 CDT 2014
(bootloader) sdi.git: git=MBM-NG-V41.13-0-gdc5aeaf
(bootloader) sbl1.git: git=MBM-NG-V41.11-0-gcff5797
(bootloader) rpm.git: git=MBM-NG-V41.13-0-g71b1aae
(bootloader) tz.git: git=MBM-NG-V41.13-0-ga27c415
(bootloader) aboot.git: git=MBM-NG-V41.13-0-g7dc8e78
(bootloader) qe: qe 1/1
(bootloader) ro.carrier: retgb
all: listed above

What do i have now:

a TWRP Backup with original Motorla Android (but no working Recovery)

and a device wich is locked.

What i tried:

Returning to STOK (found here: http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619 ) - with XT1039_RET-DE-SS_4.4.4_KXB21.14-L1.56_cid7_CFC_1FF.xml.zip - Not working

Unlocking with Motorola Unlock Code - Not working

different things - nothing working

Any idea to rescue the phone and my nerves ???

Thanks a lot

tuxboson