yashsingh1/xdaforums huggingface dataset:
[Moto X General] WhammyDroid:
For those with unlocked MotoX's running a non-stock recovery (CWM, TWRP) and root, here is the following procedure

1.) Download 4.4.2 SBF

2.) Extract recovery.img, system.img, NON-HLOS.bin, fsg.mbn, & boot.img

3.) Use mfastboot only; do NOT use fastboot.

4.) Run the following commands in command prompt in the folder where all the files are stored.:

mfastboot flash recovery recovery.img

mfastboot flash system system.img

mfastboot flash modem NON-HLOS.bin

mfastboot erase modemst1

mfastboot erase modemst2

mfastboot flash fsg fsg.mbn

mfastboot flash boot boot.img

5.) mfastboot reboot; Validate update took effect

6.) Re-push non-stock recovery back to your phone

7.) Boot into recovery, re-root, and enjoy.
[Moto X General] Mr. Orange 645:
This same exact question is asked and answered on at least every other page in this thread.
[Moto X General] a1exus:
Twitter / TeamAndIRC:

https://twitter.com/TeamAndIRC/status/443850349678321664
[Moto X General] jcase:
It doesn't address the existence of write protection, and I won't be putting time into that. Assuming someone else has a write protection bypass, I plan to disclose the root in August.
[Moto X General] ericizzy1:
2014?
[Moto X General] jcase:
no, 2026

*edit* yes this year
[Moto X General] lowvolt1:
Smart ass. I love it!
[Moto X General] ericizzy1:
:) was curious as to why you wait
[Moto X General] jcase:
Because I have business uses for it currently, and will no longer need it after August. I also want to allow Google time to make a patch for this vulnerability available.
[Moto X General] dbornack:
So you work for Google now is what you're saying? Sounds like you're protecting Google here.
[Moto X General] jcase:
Sounds like you feel that you are entitled to my work and time. The only people entitled to my work and time are my family, and those who I have made a professional commitment to.

I have worked to ensure the security and safety of Android users for years now, do people seriously not get that exploits use vulnerabilities to gain root? That malicious software can use the same vulnerabilities to do whatever the heck they want to? The majority of what I find is not published, and is fixed with few knowing.

I would honestly rather see a serious bug fixed, and never disclosed than see it being abused in the wild. I only publish because some people like seeing the end result of days/weeks/months of research. It isn't even about the people just wanting to ./exploit and get root, it's about the people who actually care to know how things work.

This exploit was not announced by me on XDA, nor developed with the intent to publish it on XDA.
[Moto X General] aaraya1516:
Do your thing, family first, I'm assuming most people being impatient don't have a wife and kids to take care of. Most people here don't understand the time and ethics it takes to analyze these exploits AND NOT do anything malicious. Thanks for your work.
[Moto X General] aviwdoowks:
Yes! On Bone stock! It was sleeping all this time!

ATT & others have it on 442 but vzw did not until now.

[Guide] [No Root] ON-THE-GO OTG/UsbDisk Support 4.4.2 & earlier via Qualcomm settings
[Moto X General] a1exus:
4.4.2 MotoX Root - YouTube
[Moto X General] hovax615@hotmail.com:
There's not going to be a root method anymore from jcase because of some individuals

MOTO X
[Moto X General] :
No offence to anyone, but if anyone can unlock it, which I doubt...until its proven....and they don't wanna share cause of a few people bothering them....and deny the 100's of others, let them keep it. Don't beg them. There's a bounty if they want it. ;)

Just my 2 cents.
[Moto X General] scoobaspeaz:
Rooting != unlocking
[Moto X General] :
Not even close. ;)
[Moto X General] hovax615@hotmail.com:
Your absolutely right. Well I believe its time to move onto a newer device but nothing really interests me at the moment. I went to play with the gs5 and the m8 though great devices I wasn't really interested in getting them. I'm waiting for what apple has in store with the i6 and the nexus 6.

MOTO X
[Moto X General] zebramonkey:
Same, but for me it's build.prop

Ya, I had same problem with /system/build.prop. I am rooted with a dev edition GSM phone, use Xposed and Xblast tool. I assume same basic way to fix that as you explain below? Also, just to ask dumb q, what is SBF?

zeebs...
[Moto X General] KidJoe:
SBF or XML is the "full rom file" ... leaked copies are posted/hosted at -> http://sbf.droid-developers.org/phone.php?device=0

if you need to flash the system.img, see the requirements section, then option 2 on -> http://mark.cdmaforums.com/MotoX-ReturnToStock.html

But if you have Xposed, try disabling that (or uninstall if you have to) FIRST!! because Xposed will get in the way of taking the upgrade.
[Moto X General] zebramonkey:
Uninstalling Xposed

Thanks for this! When you say uninstall Xposed do you mean within the application (which seems to just disengage the app from the system) or literally erase the app from my phone? (I "uninstalled" it, as an option in the app, and now it says it's not "installed" but the app is still on the phone).

z
[Moto X General] KidJoe:
From inside the app is usually enough. (if this is the same as "disabling from inside the app").. But I don't use it, so...
[Moto X General] Crsdr37:
http://www.mediafire.com/download/d...sion.140.45.5.ghost_verizon.Verizon.en.US.zip
[Moto X General] whatnow275:
Flash through stick recovery? This is my first time without a custom recovery since my first phone (fascinate)
[Moto X General] trrubicon06:
Can the stock recovery be flashed through flashify? And does anybody have the stock recovery.img, instead of downloading the whole 4.4 sbf?
[Moto X General] Restola:
This is the recovery *I* restored to yesterday when my VZW DE was on 4.4 with TWRP

Note/Disclaimer: You can break your phone flashing stuff. I would recommend not being lazy and downloading the full file you can confirm you need.

http://goo.gl/DxPcSF
[Moto X General] etc...:
Got the file...

I'm on stock recovery and I've pushed the file to my cache partition... how do I force the update?
[Moto X General] csking33:
So if I have a stock rooted DE with twrp installed, flashing the stock recovery through fastboot then flashing the update through the stock recovery will work?
[Moto X General] StormFreak:
I am stock unrooted with a locked bootloader. I flashed the file quoted above with from stock recovery, and it appears to have worked fine! I'm showing the new build numbers. Thanks for providing the link, and I'm anxious to see if 4.4.2 helps battery life at all.
[Moto X General] xd1936:
Just to clarify... none of you are in the Soak Test?
[Moto X General] balleron24z:
I have a completely stock MM Moto X 32GB, I downloaded the ZIP, moved it to the root of my "sdcard" (regular storage where everything you have is) and rebooted into recovery (google how to do it). Once I was in recovery, you pick the option to install zip from sdcard, and it lets you browse your contents of the sdcard, you pick the zip, and flash, and wait about 20 minutes (how long mine took w- ART enabled) and after that, you're on 4.4.2! No soak test enrollment required!
[Moto X General] StormFreak:
From what I understand, most the people getting it are in the soak test, but even if you aren't you can flash the file as long as you are unrooted and on stock recovery.
[Moto X General] balleron24z:
Even those with root have mentioned *keeping* root through the OTA, which is quite strange but awesome at the same time. However, you *do* need to be on stock recovery to flash the OTA zip, as it's signed by Moto. But you don't have to be unrooted. Just make sure if you have xposed modules, you flash the xposed disabler before flashing this OTA, since xposed messes with system files and it can corrupt the system partition, leaving your phone pretty close to a brick :)
[Moto X General] Cozume:
You hold Volume Down + Power for about 3 seconds and then release. Then you use Volume Down to highlight Recovery and Volume Up to select Recovery and you will boot into recovery.

---------- Post added at 11:02 PM ---------- Previous post was at 10:57 PM ----------

Rather than taking the OTA, which updates you to the 4.4.2 bootloader, I would selectively flash 4.4.2 and keep the 4.4 bootloader because you never know what might happen in the future and the 4.4.2 bootloader is not downgradable.
[Moto X General] specularius:
You verified with a "0"?
[Moto X General] ghostt021:
Do I have to rename the zip or anything like that. I'm stock unlocked unrooted dev edition. Thanks in advance

Dev Ed Moto X
[Moto X General] KidJoe:
And another question would be.. how many have received OTA and how many have just pulled from one of the links in this thread?
[Moto X General] whatnow275:
I uninstalled some system apps and switched some over to user apps. How do I restore to stock without losing root so I can take the OTA? Right now it says there is an issue with...system/hangouts.apk that prevents the install
[Moto X General] kbluhm:
Are you on a DE device? Do you have a system.img you are able to flash to the /system partition? To be extremely fool-proof, you'd flash both recovery and system

# fastboot flash system system.img
# fastboot flash recovery recovery.img

That should get you back to 100% stock (disregarding the bootloader).

You can then restore root by flashing TWRP and using it to push SuperSU.

BUT...

If you are on a non-DE device, good luck.
[Moto X General] whatnow275:
I'm not on a DE device. I'm flashing 4.4 using moto x toolkit 1.3.4. Will I retain root or do I have to go through the entire root process again?
[Moto X General] krazie1:
Does anyone notice that the Camera is more fast at focusing and opening in 4.4.2?
[Moto X General] jonnythan:
I got it OTA a couple hours ago. Haven't really noticed anything at all different.
[Moto X General] Cozume:
nevermind, sorry posted in the wrong place.
[Moto X General] Ryno77:
I don't know what the heck I'm doing wrong this seems like pretty basic stuff. Downloaded on the computer, transferred to the root of storage, booted into recovery, "update from zip" and all the folders are visible but no zips show up at all...or any other files. This seems so idiotically simple compared to other stuff I've done but I can't find the zip file once in the update from zip part of recovery.

Anyone try doing this via adb sideload?
[Moto X General] AnMotass:
Finnaly got my update :')

I know it came out today because i checked for it in the morning and there wasn't anything. (MX - Telcel)
[Moto X General] ghostt021:
Guess I'm not the only one. In recovery I get a no command prompt. Green Andy with a red triangle???

Dev Ed Moto X
[Moto X General] hartv427:
Hold Volume Up and press Power to show the recovery menu
[Moto X General] imnuts:
If you know WTF you're doing, you can flash it in TWRP too, but you need to edit updater-script and take out one line. Make sure system is stock and it flashes fine.
[Moto X General] Ryno77:
Push up and power for a second or two and release.....menu will then show up.

---------- Post added at 06:47 PM ---------- Previous post was at 06:45 PM ----------

Adb sideload works fine. It hangs on patching system files, freaked me out but eventually it finished updating.
[Moto X General] krazie1:
Hold all 3 buttons; Vol Down, Vol Up & Power
[Moto X General] slappydj1:
How can i install this in fastboot mode? I accidentally only updated the gpt.img and its booting back into the booitloader now.
[Moto X General] Cozume:
You hold Volume Down + Power for about 3 seconds and then release to get into bootloader mode. Then you use Volume Down to highlight Recovery and Volume Up to select Recovery and you will boot into recovery.
[Moto X General] hartv427:
Anyone have an "About Phone" screenshot that has installed the update
[Moto X General] ghostt021:
Here ya go

Dev Ed Moto X
[Moto X General] syntrix:
If you have entitlement hack (free wifi tethering with unlimited), recovery method detects this and aborts.
[Moto X General] ericizzy1:
im dumb, in english?
[Moto X General] syntrix:
This is a .com and in English. Not so sure what you are asking.
[Moto X General] Ryno77:
The update will not install if you have the native tether hack installed apparently.
[Moto X General] :
Oh the horrors of the locked bootloader hacks/root.

Sent from my Moto X cellular telephone...
[Moto X General] ericizzy1:
what process did you start that aborts?, are you on locked or unlocked BL?
[Moto X General] kbluhm:
I'm currently using dymmeh's Moto Tether xposed module and am not certain whether it's compatible with 4.4.2 or will only work with 4.4. I've grabbed the OTA but I'm waiting to update till I can confirm that... as well as make sure there are no weird bugs... I semi-borked my wife's Razr Maxx with the update last Christmas that was pulled almost immediately (just haaad to tinker, didn't I). In fact I have a bunch of modules but the two that I'd most like to keep functioning beyond the upgrade are Moto Tether and GravityBox. In the module's topic he says ...it may work with the 4.2.2 entitlement check depending on how much they modified the entitlement apps.
[Moto X General] Cozume:
Start a new thread about this. Your post is likely to get buried in this thread.
[Moto X General] manny805:
what are the steps for keeping root on non-dev edition and upgrading to 4.4.2 .im already rooted all i have ever use was adaway
[Moto X General] syntrix:
LOCKED

regular 4.4 mods here in original area.

I reverted the apk and odex (nice of that mod to do it, delete apk and odex and rename the apk.bak and odex.bak).... and it appears to be doing something now....

More info in a bit... rebooting :)

---------- Post added at 06:53 PM ---------- Previous post was at 06:44 PM ----------

Root, Xposed, and VZW hack....

This is probably the thread. I uninstalled xposed, and did the survive root option.

Recovery method failed with the downloaded file with the VZW Entitlement Hack APK. Use something like rootbrowser, go into /system/priv-app/

You should see something like

VzwEntitlementService.apk

VzwEntitlementService.odex

If you used the hack you will have those names *.bak.

Delete the files above, rename the .bak without the .bak, of course, verify and back up the originals.

You should get past the Recovery checks by doing this. Haven't tried re-installing the hack but good news....

Root is retained :) :)
[Moto X General] dkoon1987:
Where can I find the stock recovery img? I am on VZW DE, unlocked, rooted and Xposed installed. From my understanding I need to flash stock recovery, disable Xposed, unroot (maybe?) in order to take the OTA. However, I can't find the stock recovery img anywhere. Help?
[Moto X General] edthesped:
isn't it in the sbf zip file you can get from moto?
[Moto X General] SovietKommando:
Can this be flashed with TWRP or do I have to flash back to stock recovery? VZW Dev Edition, everything else stock.
[Moto X General] edthesped:
what is the boot loader revision after the update?
[Moto X General] dkoon1987:
Well I thought there might be an easier way than downloading the 600MB file.. but I'm heading that route now I guess.
[Moto X General] Mr. Orange 645:
30.B4
[Moto X General] jwthompson:
Flashable vzwde4.4factory recovery https://mega.co.nz/#!tM8QjKoT!r14DC1kzKDAfVb2o1W6QoNuLd7czRSXPAreKPlU7BeM

Sent from my xt1060vzwDE
[Moto X General] syntrix:
This thread is about the Verizon only update.

It's like 134M, are you sure you are going in a direction that won't brick your phone?
[Moto X General] dlumberg:
Xposed tether still works after update. I'm watching netflix on my TV tethered to my ghost right now. And Gravity Box seems to be fine as well.
[Moto X General] Mr. Orange 645:
Actually the update is 155.74 mb, so make sure your download is complete and not corrupted. Besides he was referring to downloading the factory image for 4.4 to get the factory recovery.img file out of it.
[Moto X General] jwthompson:
Look a few post back for a flashable stock recovery...can be flashed in twrp or cwm then reboot recovery

Sent from my xt1060vzwDE
[Moto X General] syntrix:
Thanks for the note! I'm already there on 4.4.2

'

Some folk were reporting that their downloads were much bigger, but I think they were posting in the wrong thread... That was the point.
[Moto X General] Mr. Orange 645:
Not sure if you meant to quote me or not, but I'm not looking for the stock recovery. I've already updated to 4.4.2. There was another poster looking for it.

Just wanted to make sure. Don't need another "Help, I've bricked my Moto X!" threads. ;) I've updated too and anxious to see if battery life improves with this update. I have noted that if you have the Google Now Launcher (previously known as the Google Experience Launcher), then "OK Google" now works from the home screen, and the mic in the search bar is solid instead of an outline.
[Moto X General] manny805:
deleted
[Moto X General] Squintz:
Successful on a locked unrooted stock Moto X. Downloaded update from the link on the first page and installed through recovery.
[Moto X General] manny805:
what are the steps for keeping root on non-dev edition and upgrading to 4.4.2 .im already rooted
[Moto X General] Tel9000:
Same here. Exact scenario. Phone is now snappier and exchange email freakin' works! What a concept.....
[Moto X General] Cozume:
It's 155.74 MB.
[Moto X General] dkoon1987:
Thank you Mr. Orange!
[Moto X General] somerandomname1:
Looking for some information if possible.

I have a non-dev MotoX, rooted using SlapMyMoto 0.5c. I also used MotoWpNoMo. Because SlapMyMoto was slightly different with 0.5c method I have the bootloader from 4.2.2 post-camera update, which is version 30.71. I also have no recovery because of SlapMyMoto as well, but I do have SafeStrap installed. I've also used Titanium Backup to remove some system apps, so even if I were able to get the stock recovery and correct bootloader on here, I'm pretty sure the OTA would fail when it detects changes to the system(like missing apps?). Everyone has said that root is kept after the OTA, but I obviously can't take the OTA the correct way. I'm wondering what my best option would be to get to 4.4.2 and keep root? Any help would be appreciated.

Thanks.
[Moto X General] Cozume:
I would post this in the slap my moto thread.
[Moto X General] ConstantHero:
Another confirmation for locked vzw non Dev flashed through recovery. Kept root with xposed and gravity box still working.
[Moto X General] Mayze23:
So all you did was uninstall xposed, have ota root survival checked and took ota? Have you reinstalled xposed successfully after the update?

I hope this works since I'm on non DE. I don't think I could live without gravity box :p
[Moto X General] ConstantHero:
Yes indeed gravity box still up and running, this went way better than I thought it ever would.
[Moto X General] Cozume:
Can you elaborate? You downloaded the VZW OTA to your sdcard, then booted into recovery and then applied the update from your sdcard, yes? Did you do anything else?
[Moto X General] ConstantHero:
I did go into xposed installer and uninstall framework before I flashed the update, that is if you have xposed installed.
[Moto X General] somerandomname1:
Is it at all possible that I could flash this through safestrap?
[Moto X General] whatnow275:
I lost root (supersu says I need the superuser binary). Is there any way to get it back?
[Moto X General] Cozume:
Getting Into Stock Recovery

To get into stock recovery, you power down, then hold Volume Down + Power for about 3 seconds to get into fastboot/bootloader mode. Then you hit Volume Down to highlight recovery and then Volume Up to select recovery. Then if you have a stock recovery, you get the dead android with a red triangle coming out of its abdomen. Then you press Volume Down + Volume Up together and hold for about 5 seconds and then hit Power once to get into stock recovery.
[Moto X General] syde1020:
Not working for me :( when it tries to install it fails and blames it on

plusone.apk not being correct.
[Moto X General] ericizzy1:
on non DE 4.4 , rooted with slapmymoto, and than did the verizon entitlement thing to gain free tethering. can anyone that upgraded tp 4.4.2 in this scenario, please write a quick 1..2..3. step guide to how you updated and kept root? thanks so much
[Moto X General] Cozume:
I am pretty sure that earlier in the thread someone said it won't update, it aborts if you have the verizon entitlement hack. You have to undo that to get the OTA to work.
[Moto X General] Mayze23:
Another confirmation that installing from recovery kept root! System R/W is still intact as well.
[Moto X General] easyxtarget:
Can someone try inserting a non Verizon sim into their updated phone and try adding a new APN? You couldn't add an apn in 4.4 for some reason.
[Moto X General] Cozume:
So reverse the entitlement hack and uninstall xposed if you have those, download the OTA to your sdcard, boot into recovery and apply the update from your sdcard. You keep root and write protection continues to be disabled.
[Moto X General] Teksu:
Booting up on my DE now, Thanks guys!
[Moto X General] somerandomname1:
Why is the software version number in the file name different than what's on Verizon's webpage?
[Moto X General] Cozume:
Can you post a link to what you are talking about on Verizon's webpage?
[Moto X General] somerandomname1:
http://support.verizonwireless.com/dam/support/pdf/system_update/moto-x.pdf

Software Version 164.55.2.ghost_verizon.Verizon.en.US.

Obviously the file name is different. Odd?
[Moto X General] Cozume:
Well, the 140.45.5 is the soak test. So maybe the 164.55.2 will be the final?
[Moto X General] somerandomname1:
Just finished installing. It shows up as 164.55.2 in system info. Root stayed intact, but write protection is back on, so that pretty much sucks...
[Moto X General] Cozume:
I wonder why some people have been able to keep write protection disabled and others not? There must be some difference.
[Moto X General] Q9Nap:
moto always names their update packages as the system version they're meant to be applied to, not what the update package actually updates to.
[Moto X General] Cozume:
LOL! yeah, now it makes sense that you say that.
[Moto X General] gsk3rd:
Has OTA started yet?
[Moto X General] bgarlock:
Verizon Dev Ed, unlocked, rooted:

Prep:

* Flashed stock recovery

* Flashed stock system (I had too many mods to undo).

Update:

* Copied the update to the root of my "SDCARD"

* Booted into stock recovery

* Applied the Zip

Note: if you use ART instead of Dalvik, all your apps will be relinked to libart.so when you boot up after applying the patch, be sure you have some free time to let it do it's thing. Mine took almost 40 min! I have a lot of apps, so you can always uninstall ones you know you won't need or use to speed up the initial boot.

Pro Tip: Get a Dev edition phone! Makes *everything* so much easier! Don't have to worry about keeping or losing root during OTA's. For the additional $$ needed to move to a dev edition, you will make it up in saved time and frustration!