yashsingh1/xdaforums huggingface dataset:
[Moto Maxx General] ChazzMatt:
The problem is while you flashed back to stock on full firmware image, then later you took the December 2016 OTA. So, your bootloader is on that version now.

Then, your locked your bootloader, which limits your options. You not only need the full version image of that OTA, you specifically need India version. (An OTA is just a partial "update" file, not full firmware image.)

If your bootloader was unlocked, you could flash the Brazil version of that firmware (which is available). But you can't do that.

No one has posted the full firmware image of the India December 2016 security patch, that I can find.

Only Motorola has that...

I'm sorry.
[Moto Maxx General] ChazzMatt:
Right.
[Moto Maxx General] hitokage004:
There may be a way to fix this by exploiting CVE-2016-10277 as explained in Motorola Android Bootloader Unlocking a Re-locked Bootloader from Platform OS.
[Moto Maxx General] niralmunjariya:
I checked that but unable to understand what it actually does, if you've any experience in it, please let me know how to proceed.

Thanks a lot.
[Moto Maxx General] hitokage004:
I don't have any personal experience doing this, but the way I understand it is:

1 - you create or get from someone else a special "malicious" initramfs archive for your model phone

2 - you are able to flash it with fastboot and get a temporary root in an ADB shell

3 - because the phone previously had the bootloader unlocked, when you relocked it a special partition was activated to "softlock" the bootloader, so you use the root access gained through the exploit to basically clear that partition using the ADB shell

4 - the phone would have the bootloader unlocked again (regardless of the allow OEM unlocking setting) allowing you to flash any version of firmware you have for your phone
[Moto Maxx General] niralmunjariya:
The problem is that I'm able to access the phone in fastboot mode not able access it in adb.

Any idea regarding this?

Thanks again.
[Moto Maxx General] hitokage004:
I really have no idea . All I can say is if you haven't heard back from Motorola, can't find a copy of the firmware you have, no one else has been able to help, and have nothing to lose - give this a try. I disclaim any responsibility for you doing this - it will either work, not work at all, or somehow make things worse.

Download the file auto-initroot_xt1254_quark_vzw_mcg24.251-5-5.zip on this page (as taken from this thread here on XDA - credit to autoprime.

You won't be using most of what is included, but it has the necessary file for the exploit. The rest of the "kit" is for a Verizon Quark variant of the Moto Maxx known as the Motorola Droid Turbo - which you don't have. Extract that zip file and inside there is a folder/directory named "auto#initroot_xt1254_quark_vzw_mcg24.251-5-5", and inside that folder/directory is the file you need "xt1254_quark_vzw_mcg24.251-5-5.initroot". Copy that file to the folder/directory you have ADB and fastboot in.

Open a command prompt in that folder/directory. Hopefully the ADB parts will work once you get to them.

Type the following -

fastboot oem config fsg-id "a initrd=0x110BEE50,2483340"
fastboot flash initroot xt1254_quark_vzw_mcg24.251-5-5.initroot
fastboot continue
adb shell
echo 0 > /dev/block/platform/msm_sdcc.1/by-name/sp
reboot bootloader

Once it reboots type -

fastboot getvar all

If everything worked then it should say it's unlocked. If you got here you can see if it will now boot normally, or go straight to flashing again.
[Moto Maxx General] sourav92:
Really looking forward to this..
[Moto Maxx General] niralmunjariya:
Thanks for responding.

I'll update once I perform the mentioned operations. I visited Motorola service center, but they also won't be able to do anything, they just said that we cannot do anything about this, your device is rooted and we can't help you.

So I don't have any choice other than doing this.

Thanks again.
[Moto Maxx General] niralmunjariya:
I've performed the mentioned operations:

"fastboot flash initroot xt1254_quark_vzw_mcg24.251-5-5.initroot" showed me Permission denied.

Then I executed next command "fastboot continue", it rebooted my device and phone started normally, then I enabled USB debugging and OEM Unlocking.

I executed next commands

adb shell

echo 0 > /dev/block/platform/msm_sdcc.1/by-name/sp - it returned: can't create /dev/block/platform/msm_sdcc.1/by-name/sp: Permission denied

And after reboot bootloader it goes into restart loops and unable to boot. Any insights on it.

Now OEM Unlocking is enabled but I'm unable to run "fastboot oem get_unlock_data" command.

Thanks a lot.
[Moto Maxx General] ChazzMatt:
Well, THAT part is good news, right?

When you invoke the temp root command, it's inherently unstable. It's "temporary root" using an exploit. It will only hold for that one session. If you reboot, your phone will bootloop until you use the ADB commands to remove the temp root command. See

here.

You can then re-establish it for another session, if you need it.

If you do not need the temp root, then just run whatever other ADB commands you do need.
[Moto Maxx General] niralmunjariya:
Yeah, that part was good.

But it shows Permission denied while unlocking the bootloader.

Can it be done using adb commands?

Thanks a lot.
[Moto Maxx General] ChazzMatt:
I've never re-locked a Motorola bootloader, or any of my Android bootloaders (why would I willingly give up that power?) -- so I'm guessing here. But now that you've done the Developer Option unlocking, maybe you still need to go through the Motorola website again (like you did the first time) to unlock (receive unlock code, etc.)? If someone has better information, please chime in.
[Moto Maxx General] sourav92:
When you performed your first unlocking ,Motorola sent you that unlock key at your email. So try to find that in your email. If you are able to find that, then no need to reperform the get unlock method. You can directly unlock that using the previous key. Please let me know if my understanding is wrong and we are really looking forward to your bootloader re-unlocking... GOOD LUCK
[Moto Maxx General] niralmunjariya:
When I try to unlock the bootloader with "fastboot oem unlock <key>" it says (bootloader) Password incorrect! FAILED (remote failure).

Any help? I noticed that since I ran command fastboot oem config fsg-id "a initrd=0x110BEE50,2483340", it changed the getvar all data, it changed cid to 0x0000 earlier it was 0x0007.

Although I'm entering the right key it shows password incorrect.

Anything to say?

Thanks in advance.
[Moto Maxx General] sourav92:
Okay, so new problem is knocking the door. Lets see if any developer is here to help you on this.
[Moto Maxx General] hitokage004:
I can't think of much to say at the moment - I am definitely not a developer., but I have been trying to learn a bit about these things.

Getting the permission denied error sounds like the exploit didn't work, so it couldn't write to the partition to clear the "softlock" on the bootloader. However since you did get the phone to boot normally (something reset?) and were able to turn on allow OEM unlocking - I would run the command from the post ChazzMatt pointed to, reboot the bootloader, and the try unlocking again with the instructions from Motorola and code you originally used.
[Moto Maxx General] hitokage004:
Since you haven't posted again, is your phone fixed? I think I found out how to change the CID - if everything is working you probably shouldn't mess with it, but if you do

fastboot oem writecid 0x0007

It's the carrier ID, all I found was that phones with a CID of 0x0000 or 0x0007 are part of the list of CIDs that can be have the bootloader unlocked through the Motorola website.
[Moto Maxx General] niralmunjariya:
No my phone isn't fixed till now.

I'll try to run the command that you have given to change the CID.

When I try to run

"fastboot oem unlock <key>"

Even though key is correct is shows that password is incorrect.

Do you have any idea regarding this.

Thanks a lot for responding.
[Moto Maxx General] sourav92:
Maybe that is due to the changed CID.. Try to run the command after changing the CID
[Moto Maxx General] niralmunjariya:
I tried to run

fastboot oem writecid 0x0007

but is shows below error:

(bootloader) 'writecid' is not a supported oem command

(bootloader) See 'fastboot oem help'

Any help?

Thanks in advance.
[Moto Maxx General] hitokage004:
I can only guess Motorola removed/disabled writecid, or maybe it requires root to change.

I'm not sure if you checked this already but when you run fastboot oem get_unlock_data, do you get the exact same code as when you ran it originally? If not, try submitting the new code to the Motorola website.

Another question, the phone did boot all the way up before when we tried the temp root, does that still happen? If it does, maybe we can try to clear the partition from terminal emulator, instead of using the ADB shell.
[Moto Maxx General] niralmunjariya:
fastboot oem get_unlock_data returns error.

I'll try to run temp root and what needs be done if it boots in the temp root, I mean how can I clear the partition from the terminal emulator?

Thanks.
[Moto Maxx General] hitokage004:
I think it's really interesting that temp root allows the phone to boot all the way - apparently some permissions are messed-up.

EDIT - an additional thing to try before anything else - try "fastboot oem unlock" without a key at the end. If you get an error continue to below.

I have a new thought on the CID - with fastboot, without the root exploit, try -

oem config fsg-id "0x0007"

Then see if it changed the CID with "getvar all". If it did work, try unlocking again. If not run

oem config fsg-id ""

(no space between the quotation marks) to undo it and proceed to below. I only thought of this because apparently normally a carrier name goes there, so I thought it might change the CID value.

First, do whatever you did before with the exploit that allowed it to boot all the way. Then you'll need to install a terminal emulator from Google Play, any one I think should work, but the one I use is called Terminal Emulator for Android - by Jack Palevich.

Once that's installed, start it, and we're going to double check that it has root access - it should show a # before the cursor instead of the usual $. As an added check type "id" (without the quotes), and it should give you something that starts with "uid=0(root) gid=0(root) groups=0(root),".

Assuming that you do have root, try this command again that we tried before with the ADB shell, except this time in the terminal emulator -

echo 0 > /dev/block/platform/msm_sdcc.1/by-name/sp

If that gives an error again try this command -

dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/sp bs=1 seek=8

Hopefully one of those will work, and then end the exploit with fastboot -

oem config fsg-id ""

Then restart the bootloader and see if it says it's unlocked.

If none of this works, I'm kind of out of ideas - there is a way to run TWRP without flashing, and maybe it will be able to wipe that partition with the temp root exploit.
[Moto Maxx General] niralmunjariya:
I tried to unlock the phone with only "fastboot oem unlock" without key, but it requires key.

After that, I tried to boot into temp boot and it booted up, I've downloaded the emulator apk but there is no file manager available on the phone so I'm not able to access the apk and that's why unable to install it.

I think something is messed-up with the permission in the phone, i've tried to re-install the verizon version of marshmallow with December 2016 security patch but it also didn't work.

I think it's completely bricked and I don't think I can recover it unless motorola release the firmware with latest security update for moto maxx xt1225.

Anything you want to suggest?

Thanks a lot for support.
[Moto Maxx General] hitokage004:
I thought of trying "fastboot oem unlock" without a key might of worked since - it was unlocked before, the old key was no longer working, and there have been phones that didn't have a key set (Moto e4 - MediaTek variant).

The phone doesn't have Google Play on it? Does it have Chrome (or another web browser)? If so go to settings, security, and turn on/allow apps from unknown sources. Then in Chrome go to APK Mirror (apkmirror.com), search for terminal emulator, it will show it as the first one in the results, click it, and on the page that loads there will be a button that says "Download APK" (it's right under where it says verified safe to install). Chrome should give a warning saying this type of file can harm your device. . . , click OK, once it's downloaded either click open in the pop-up at the bottom or use the pull down at the top that says download complete and click the filename, this will trigger the built in package installer, and if you did make the change to allow unknown sources you'll get the prompt to install.

If you don't have a web browser installed, I think there is a way to install an app with ADB, but I've never done that myself.

Try the above to get the terminal emulator installed, and if you need to use ADB to do it there should be a guide around. Otherwise we can try running TWRP without flashing it, and try to use that to wipe the SP partition.
[Moto Maxx General] Janu1:
I was in same boat as yours, succeeded to unlock bootloder..

Boot via temp boot only.. Enable OEM unlock and USB debugging , and switch off ur phone , go to fastboot mode and type

fastboot oem config fsg-id

And just unlock boot loader as usual

But

I only put those command for temp boot

fastboot oem config fsg-id "ainitrd=0x110BEE50,2483340"

fastboot flash initroot xt1254_quark_vzw_mcg24.251-5-5.initroot

fastboot continue

But not

adb shell

echo 0 > /dev/block/platform/msm_sdcc.1/by-name/sp

reboot bootloader

I successful got unlock my boot loader doing this

---------- Post added at 06:30 PM ---------- Previous post was at 05:55 PM ----------

If uu have latest bootloader ver 70.93 locked, so far until today u can't run any custom recovery without install or with install,

This is what his cid value messed up by this

adb shell

echo 0 > /dev/block/platform/msm_sdcc.1/by-name/sp

reboot bootloader

I was facing same issue and got unlocked my bootloader without those command above mentioned
[Moto Maxx General] Netossauro:
Hello Guys, how are you doing? Which would be the best version of android 7 for my XT1250? I am thinking about change from android 6 to 7. The phone still great!
[Moto Maxx General] mrkhigh:
Debatable, I've found I like resurrection remix.

I'm on a build from August 15th.
[Moto Maxx General] r_wayne:
Hi all,

I messed up and am now in need of the factory image for the tim firmware for my moto maxx. Does anyone have it? I could not find it anywhere.
[Moto Maxx General] blaze909:
Hello

I got this (bootloader) Preflash validation failed error while trying to flash back to LL

Is there any tutorial with command lines or any help

Tnx in advance anyone
[Moto Maxx General] junior_ilha:
Is your bootloader unlocked? If yes, try a stock ROM and an updated version of fastboot.exe
[Moto Maxx General] vijay_joon:
can not flash with rsd lite

i can not flash indian stock rom 6.0 ,rsd lite gives error "please check input file,either xml format is wrong or image files associated with it are missing", i have downloaded the rom 3 times thinking it might got corrupted but no use . help

edit: i was trying to flash the ota update via rsd lite of size 965 mb by mistake,now downloading full firmware
[Moto Maxx General] ChazzMatt:
Is your bootloader unlocked? If so, then you can flash older firmware if you leave off gpt.bin.

If your bootloader not unlocked, flashing older firmware than you currently have will brick your phone.

It doesn't matter if it's "indian stock rom 6.0" -- no full image has been publicly released for the last 6.0 version. If you flash an older full version with locked bootloader you will brick your phone.
[Moto Maxx General] vijay_joon:
Sorry if m asking like noob,but how to "leave off gpt.bin " i am flashing via rsd lite and getting stuck at failed flash partition gpt.bin .. pls help , (im.flashing xt1250 kitkat rom on xt1225)

Figured it out by editing xml file,flashed 4.4.4 of american moto maxx,i just loved the look n feel of it but sadly my indian xt1225 cant find network in this rom
[Moto Maxx General] vijay_joon:
I purchased droid turbo xt1225 indian version which came with android 5 lollipop ,without command center,i unlocked it amd flashed with kitkat rom of mexican,purtorico,brazil but no command center present there, i also tried xt1250 rom bit still no control center ,what am.i doing rom,i need commamd center .... Plz help
[Moto Maxx General] ChazzMatt:
https://xdaforums.com/moto-maxx/themes-apps/moto-z-command-center-widget-t3417171

https://xdaforums.com/droid-turbo/themes-apps/moto-z-command-center-widget-t3415488
[Moto Maxx General] clusten:
Latest firmware for moto maxx mirror:

XT1225_QUARK_RETBR_6.0.1_MPGS24.107-70.2-7_cid12_subsidy-DEFAULT_CFC

https://drive.google.com/file/d/1slulWTBMw833L30PMbVEFKf6XRoJuLQK/view?usp=sharing
[Moto Maxx General] lovelydilip:
Link of google drive is not working can someone share the new link?
[Moto Maxx General] lovelydilip:
Link of google drive for Indian version is not working bro.. can someone share the link please..
[Moto Maxx General] Bernard84:
Sorry man, I can't help you but I'd like to ask you one thing.

Did you received the updated to 5.0.2 directly from Motorola or you manually flashed it?
[Moto Maxx General] fillonov:
I flash 5.0.2 as normal update, just have it on sd (memory)

---------- Post added at 01:53 PM ---------- Previous post was at 01:51 PM ----------

Does anybody know can i flash Indian 5.0.2 with RDS over 5.0.2 Brazilian (Bootloader unlocked)?
[Moto Maxx General] xploitnt:
I was able to flash the India firmware over the Puerto Rican 4.4.4 so I don't think you'd have any issues. Although, someone did mention that some had problems but it worked fine for me. I have a Puerto Rican XT1225 and flashed the India Turbo 5.0.1 without issues, everything worked great.
[Moto Maxx General] maximuscesar:
Man, where did you found the Brazilian 5.0.2?
[Moto Maxx General] fillonov:
In the closed threat =( on xda
[Moto Maxx General] maximuscesar:
Do you still have the file? Could you share with us?
[Moto Maxx General] jparasita:
Hey guys i downloaded both verizon firmwares and they do not seem to work can someone please help keep getting a zip fail error/
[Moto Maxx General] Jaocagomez:
i created a thread to help you with your flashing questions:

http://xdaforums.com/droid-turbo/help/tutorial-how-to-flash-official-firmware-t3074724
[Moto Maxx General] ChazzMatt:
You are welcome. I'm about to actually flash the India Lollipop to my Puerto Rico Moto Maxx. For some reason users say the India Turbo 5.02 is less laggy than 5.02 available to Latin America Moto Maxx.

Also, for the India Turbo Motorola finally acknowledges all the HSPA/LTE bands we KNEW were on the XT1225. :rolleyes: Has the AT&T LTE band 5 and the other T-mobile HSPA band 4. They are already there on ALL the XT1225 phones, but for some reason Motorola did not list them in the "official" specs for Latin America.

So, while I won't actually have any additional bands, whenever I eventually sell the phone I can point to the India Turbo Motorola page and not have to argue. (All the XT1225 -- Latin America and India -- have the same FCC ID.) I'll have a Moto Turbo, not a Moto Maxx. But it's still an Quark XT1225!

If everything goes OK, then I will do that to my Mexico Moto Maxx, and can easily sell it on eBay with the OFFICIAL additional band listings, and Lollipop!
[Moto Maxx General] ChazzMatt:
UPDATE: I actually installed to the Mexico Moto Maxx first. It's now a Mexico Moto Turbo. Everything is fine, except I can't see TWRP recovery files/folders in USB debugging mode. So, I can't save them off. When I try to "fix permissions" in TWRP it messes everything up. Phone won't reboot right. When I go back in to restore a backup, at bootup it gets stuck in "starting apps".

That is all an outdated TWRP problem. Has nothing to do with the Lollipop update which went fine! So, currently on that "spare" phone I'm rooted, stock India Lollipop 5.0.2.

Now going to install to my Puerto Rico Moto Maxx.

If we had the newest TWRP, would be great.

Just curious if there's another recovery we can use with stock, rooted Lollipop? CWM?

________

Both my Moto Maxx phones now are Moto Turbo with India Lollipop 5.0.2. The daily one I use has Gravity Box (Lollipop) installed for now.
[Moto Maxx General] Semseddin:
Just flashed Moto Turbo india firmware to my Puerto rico XT1225. Everything works fine as it should including the mobile data connection. Those who have issues, don't forget to wipe data / wipe cache from recovery to avoid issues.
[Moto Maxx General] fillonov:
For now, we cant root Indian 5.0.2?
[Moto Maxx General] ChazzMatt:
I'm rooted on India 5.0.2 and have Xposed/Gravity for Lollipop installed and running. You can flash TWRP and use that to flash SuperSU and any zip files in recovery. TWRP has it's own file manager, so you can move around and see all files you need to flash. You can even make backups. However, I cannot see those backups on my PC using USB debugging. I can only see them in TWRP.

When I try to "fix permissions" in TWRP, to see if that's why the folders weren't showing up on the PC, then phone fails to reboot. When I go back into fastboot/then TWRP recover, and try to restore one of the backups, it restores but then gets stuck on "starting apps" at bootup. DO NOT TOUCH FIX PERMISSIONS! It doesn't do any good in this version of TWRP. I have not tried to restore a backup by itself just to test if that will work. It was always after "fix permissions" messed up the phone.

So, in conclusion.

1) yes you can root India

2) yes, you can flash TWRP and use that to flash zip files

3) you can use TWRP file manager to copy/paste/move files around

4) do NOT "fix permissions" in TWRP

5) don't assume a backup you made in TWRP will restore properly (I've not tried that by itself, only after I tried "fix permissions")
[Moto Maxx General] fillonov:
Thanks and one more thing... How to flash TWRP?

I try droid program^ but it fail. Can you step what to do?
[Moto Maxx General] ChazzMatt:
use files and commands found here:

http://xdaforums.com/droid-turbo/development/twrp-moto-maxx-xt1225-test-builds-t2956937

If your TWRP is called "recovery.img", then it would be:

fastboot flash recovery recovery.img
[Moto Maxx General] ChazzMatt:
Yeah, especially you don't wipe you will get a false "running out of storage space" Android system message on your notification bar. :) I have 43GB free, what do you mean I'm running out of space? :confused: Wiping cache and dalvik cache solved that on next reboot.

CLARIFICATION: actually all I wiped to fix the issue was cache and dalvik cache, in Wipe/Advanced. Took a long time, like 5 - 10 minutes. Then, when I rebooted the false low memory message was gone.
[Moto Maxx General] fillonov:
Need your help!

I have PR maxx, flashed with RDS Indian 5.0.2, everything fine but it lose network every 5-10 minits =( Only reboot helps to find network again.
[Moto Maxx General] RSDamasceno:
[MENTION=2920544]Jaocagomez[/MENTION] I have the OTA for LP of Brazil Moto Maxx XT 1225. Can I post here?

----

Moto Maxx - XT1225

Xposed Stock Android 5.0.2
[Moto Maxx General] fillonov:
Yes! Did you recive it today? Its soak or official OTA?

Can you upload to dropbox or google drive?
[Moto Maxx General] RSDamasceno:
It's official version of Lollipop 5.0.2.

Mega it's better for me, sorry.

----

Moto Maxx - XT1225

Xposed Stock Android 5.0.2
[Moto Maxx General] Jaocagomez:
Yes please, post it, I'll give you the credit
[Moto Maxx General] RSDamasceno:
https://mega.co.nz/#!gV1D2K6L!NBtrTtJ9sWIeeQyavBdZmWeaKaaDxEDXZL8DBA-r4EA

----

Moto Maxx - XT1225

Xposed Stock Android 5.0.2
[Moto Maxx General] Jaocagomez:
Thank you very much I'll update the post, just to check this is the official ota to lollipop brasil right?
[Moto Maxx General] RSDamasceno:
Yes, it's right.

----

Moto Maxx - XT1225

Xposed Stock Android 5.0.2