[TOOL] Motorola OTA Link Generator Tool

disguisedview

Senior Member
Jan 13, 2013
51
37
0
Nürnberg
Hi,
I tried to get the OTA-Link for my European G4 Plus, but I didn't get a response.

Code:
ro.product.model=Moto G (4)
ro.build.version.full[0]: Blur_Version.25.11.16.athene.reta
ro.carrier: reteu
I took the carrier and version from bootloader and the model from build.prop.

Bootloader variables:
Code:
(bootloader) sku: XT1642
(bootloader) battid: SNN5966A
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Sat Jan 28  3:37:38 UTC 2017"
(bootloader) ro.build.fingerprint[0]: motorola/athene_f/athene_f:7.0/NPJ
(bootloader) ro.build.fingerprint[1]: 25.93-14/16:user/release-keys
(bootloader) ro.build.version.full[0]: Blur_Version.25.11.16.athene.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.BR.1.3.6-01710-8976.0
(bootloader) version-baseband[0]: M8952_70030.25.03.62R ATHENE_EMEA_DSDS
(bootloader) version-baseband[1]: _CUST
(bootloader) kernel.version[0]: Linux version 3.10.84-g478d03a (hudsoncm
(bootloader) kernel.version[1]: @ilclbld26) (gcc version 4.8 (GCC) ) #1
(bootloader) kernel.version[2]: SMP PREEMPT Fri Jan 6 05:12:56 CST 2017
(bootloader) sbl1.git: git=MBM-NG-VB1.03-0-ge433b40
(bootloader) rpm.git: git=a970ead
(bootloader) tz.git: git=119e5b2-dirty
(bootloader) hyp.git: git=119e5b2-dirty
(bootloader) keymaster.git: git=119e5b2-dirty
(bootloader) cmnlib.git: git=119e5b2-dirty
(bootloader) aboot.git: git=MBM-NG-VB1.03-0-gb44c0ee
(bootloader) qe: qe 0/0
(bootloader) frp-state: protected (75)
(bootloader) ro.carrier: reteu
build.prop
Code:
ro.build.id=NPJ25.93-14
ro.build.version.incremental=16
ro.build.version.sdk=24
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=7.0
ro.build.version.security_patch=2016-12-01
ro.build.date=Fri Jan  6 04:58:11 CST 2017
ro.build.date.utc=1483700291
ro.build.type=user
ro.build.user=hudsoncm
ro.build.host=ilclbld26
ro.build.tags=release-keys
ro.product.model=Moto G (4)
ro.product.brand=motorola
ro.product.name=athene_retail
ro.product.device=athene
I also tried for model the variable sku: XT1642 from bootloader. Same result....
Code:
ro.product.model=XT1642 
ro.build.version.full[0]: Blur_Version.25.11.16.athene.reta
ro.carrier: reteu
 
Last edited:

erfanoabdi

Recognized Developer
Jan 3, 2015
1,007
3,133
153
Tehran
erfanoabdi.github.io
Hi,
I tried to get the OTA-Link for my European G4 Plus, but I didn't get a response.
here :
Code:
(bootloader) ro.build.version.full[0]: Blur_Version.25.11.16.athene.reta
(bootloader) ro.build.version.full[1]: il.en.US
your ro.build.version.full continues with "il.en.US" : Blur_Version.25.11.16.athene.retail.en.US
but your model is so weird why it has space ?!!
older moto g "ro.product.model" same as sku !!
anyway, sorry, it's not working are you sure new update is available ? :(
 
  • Like
Reactions: disguisedview

disguisedview

Senior Member
Jan 13, 2013
51
37
0
Nürnberg
I'm pretty sure the update is already available - I made this OTA update yesterday on my phone.
...but I forgot to do a logcat to grap the OTA-URL this way...

Yes, the ro.product.model is weird. I think it has to be the sku variable for this model.

Thanks for the hint with the second line of the version. Didn' see that :eek:
...but as you already said: Still doesn't work...
 
  • Like
Reactions: erfanoabdi

disguisedview

Senior Member
Jan 13, 2013
51
37
0
Nürnberg
Maybe this would be helpful:
When I'm looking for new updates on my phone logcat says
Code:
7407 D Checkin : publish the event [tag = MOT_OTA event name = LOG]
03-02 07:04:27.181  7321  7407 D CdsService: d - Country code using Network Info is: de
03-02 07:04:27.186  7321  7407 D CdsService: d - Check Request getUrl(): url is https://moto-cds.appspot.com/cds/upgrade/1/check/ctx/ota/key/Moto%20G%20(4)
03-02 07:04:27.298  7321  7321 D CdsService: d - Starting webservice android service
03-02 07:04:27.306  7321  7321 I CdsService: i - Received web service call for request :https://moto-cds.appspot.com/cds/upgrade/1/check/ctx/ota/key/Moto%20G%20(4)
03-02 07:04:27.307  1524  2765 I LaunchCheckinHandler: Displayed com.motorola.ccc.ota/.ui.CheckUpdate,wp,ca,459
03-02 07:04:27.307  1524  2765 I ActivityManager: Displayed com.motorola.ccc.ota/.ui.CheckUpdate: +459ms
03-02 07:04:27.307  7321  7321 D Checkin : publish the event [tag = MOT_OTA event name = LOG]
03-02 07:04:27.310  7321  7321 D CdsService: d - appending web service request to serviceHandler
So I would say the model has to be formatted in a way like this: Moto%20G%20(4) ??
 
  • Like
Reactions: tute123456

t0n0n

Senior Member
Dec 26, 2010
115
12
0
Valinhos
So, I get no update from the tool for model XT1650, Blur_version.24.21.46.griffin.retail.en.US, amxbr. But I got the OTA on my phone... Actually, for a brief moment earlier today, I got a link that failed to download.

I'm getting these from shell getprop, there's any difference between shell and bootloader/fastboot results??
 

erfanoabdi

Recognized Developer
Jan 3, 2015
1,007
3,133
153
Tehran
erfanoabdi.github.io
So, I get no update from the tool for model XT1650, Blur_version.24.21.46.griffin.retail.en.US, amxbr. But I got the OTA on my phone... Actually, for a brief moment earlier today, I got a link that failed to download.

I'm getting these from shell getprop, there's any difference between shell and bootloader/fastboot results??
Your update link : http://motorola.erfanabdi.ir/?model...n.24.21.46.griffin.retail.en.US&carrier=amxbr

I think I should say inputs are case sensitive for example
You said "Blur_version" it's not valid for Motorola you should enter "Blur_Version"
 

t0n0n

Senior Member
Dec 26, 2010
115
12
0
Valinhos
  • Like
Reactions: erfanoabdi

erfanoabdi

Recognized Developer
Jan 3, 2015
1,007
3,133
153
Tehran
erfanoabdi.github.io
Many thanks.

I'm getting Error 7 when flashing with TWRP, am I doing something wrong? After all this, I'll write a guide, so people don't get lost like me. Hahaha.
Thanks for guide

Yes, you need to flash this kind of OTAs by stock Motorola recovery with sideload

İf you want to Use TWRP, i didn't test it myself but you may need to mount system read only
 

t0n0n

Senior Member
Dec 26, 2010
115
12
0
Valinhos
Thanks for guide

Yes, you need to flash this kind of OTAs by stock Motorola recovery with sideload

İf you want to Use TWRP, i didn't test it myself but you may need to mount system read only
Got it, I'll do some tests. There's any way to get the stock recovery? I do not have a backup (from other Moto experiences, I thought it would be useless =/).
 

MichaelDrakeMS

Senior Member
Jan 15, 2011
56
9
28
Could you guys help me try to get the update for my US Unlocked Reatil Moto z (Retus)? I tried to go back to stock so I flashed
XT1650-03_GRIFFIN_RETUS_6.0.1_MPL24.246-20 firmware and tried to side load the OTA to nougat, but I can't find it and all others fail. Could anyone help me? Do you guys know the blur version number for these firmware is?
 

t0n0n

Senior Member
Dec 26, 2010
115
12
0
Valinhos
My device have inside build.prop a ro.build.thumbprint, but it returns null when using getprop, so the script can't verify it. And I can't modify and sign the zip. Trying to find a solution.

I get "Package expected build thumbprint of blabla this device has ."
 
Last edited:

t0n0n

Senior Member
Dec 26, 2010
115
12
0
Valinhos
Could you guys help me try to get the update for my US Unlocked Reatil Moto z (Retus)? I tried to go back to stock so I flashed
XT1650-03_GRIFFIN_RETUS_6.0.1_MPL24.246-20 firmware and tried to side load the OTA to nougat, but I can't find it and all others fail. Could anyone help me? Do you guys know the blur version number for these firmware is?
Post the output of
Code:
adb shell getprop ro.build.fingerprint
. Or getvar for the same value.
 

MichaelDrakeMS

Senior Member
Jan 15, 2011
56
9
28


Post the output of
Code:
adb shell getprop ro.build.fingerprint
. Or getvar for the same value.
Because I already updated to 7.0 when I first got the phone, when ever I flash the GRIFFIN_MPL24.246-20 it boot loops because of the whole bootloader not being able to downgrade. The information you asked shows as not found. Here is the full getvar all command:

(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8996-91.05
(bootloader) product: sheridan
(bootloader) board: sheridan
(bootloader) secure: yes
(bootloader) hwrev: P3B
(bootloader) radio: 2
(bootloader) storage-type: ufs
(bootloader) ufs: 64GB TOSHIBA THGBF7G9L4LBATRB FV=0300
(bootloader) ram: 4GB SKHYNIX LP4 DIE=8Gb M5=06 M6=03 M7=00 M8=08
(bootloader) cpu: MSM8996
(bootloader) serialno: ZY223XCLV8
(bootloader) cid: 0x0032
(bootloader) channelid: 0x8d
(bootloader) uid: 077142D900000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) imei: 358180071488868
(bootloader) meid:
(bootloader) date: 02-14-2017
(bootloader) sku: XT1650-03
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Wed Jan 21 4: 0:50 UTC 1970"
(bootloader) ro.build.fingerprint: <not found>
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full: <not found>
(bootloader) ro.build.version.qcom: LA.HB.1.3.2-15400-8x96.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 3.18.24-perf-gd2ef31f (hud
(bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x-goog
(bootloader) kernel.version[2]: le 20140827 (prerelease) (GCC) ) #1 SMP
(bootloader) kernel.version[3]: PREEMPT Tue Jul 26 11:12:19 CDT 2016
(bootloader) xbl.git: git=MBM-NG-V91.05-0-gd081b7e
(bootloader) rpm.git: git=36ca449
(bootloader) tz.git: git=6979dcb-dirty
(bootloader) hyp.git: git=6979dcb-dirty
(bootloader) devcfg.git: git=6979dcb-dirty
(bootloader) keymaster.git: git=6979dcb-dirty
(bootloader) cmnlib.git: git=6979dcb-dirty
(bootloader) cmnlib64.git: git=6979dcb-dirty
(bootloader) prov.git: git=6979dcb-dirty
(bootloader) pmic.git: git=MBM-NG-V91.05-0-gd081b7e
(bootloader) aboot.git: git=MBM-NG-V91.05-0-g3531ad8
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (75)
(bootloader) ro.carrier: retus
all: listed above
finished. total time: 0.141s
 

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
Hey erfanoabdi Is your site down currently? I tried both your site and the wget script yet I am unable to download any of the files...

Do you think you could upload the source code to your Github?

Edit: Figured out what was wrong with my wget command... turns out that for windows you need to have an escape character for the double quotes for the post-data option, who woulda thunk it...
 
Last edited:

erfanoabdi

Recognized Developer
Jan 3, 2015
1,007
3,133
153
Tehran
erfanoabdi.github.io
Hey erfanoabdi Is your site down currently? I tried both your site and the wget script yet I am unable to download any of the files...

Do you think you could upload the source code to your Github?
Really sorry
Unfortunately my host provider site is down too
No idea what's happened, i trying to reach them

Sure I'll upload my source in github soon

Sorry again

Edit:
Source code added in OP
 
Last edited:
  • Like
Reactions: mastarifla