yashsingh1/xdaforums huggingface dataset:
[Moto X Original Android Development] blipp:
Yea, i had that problem. From what I could tell fastboot could only push like 305mb and the VZW system img is like 307mb. Someone said to do the flash command twice in a row and it would push the rest of the file but i couldnt get it to work. I was able to get the recovery to flash and then did a factory reset. I'm assuming you want to keep your data. I did too, but i just bit the bullet and did it. Could find a solution to the getvar stuff besides some RUU stuff with the One X last year.
[Moto X Original Android Development] thepolishguy:
Initially I was hoping to preserve data. But then I sold my consumer edition for the Developer Edition and wanted to make sure everything was all good for the new buyer. So a complete restore with RSDLite was good in that scenario.
[Moto X Original Android Development] jayboyyyy:
Well I'm hoping someone smarter than us can chime in with a work around or some solution. I would still like to keep data because I have rsdlite twice already and its surprisingly a huge pita. Fastboot has to be able to flash a bigger size or something. It just doesn't make much sense that the problem has not been encountered and solved already.
[Moto X Original Android Development] thepolishguy:
Well the guys I talked to didn't believe me and thought I was an idiot. So yeah - it would be nice if someone with some real knowledge and a little more patience would chime in lol.
[Moto X Original Android Development] southsideweezy:
removed the ota from cache

I was able to download es file explorer in between reboot loops, next reboot I enable root explorer and then finally on the last reboot I experienced I went into cache and deleted the ota file.... I then got an error message instead of a reboot that the update file couldn't be found and been working fine since..... Problem is, I'm on the road and I'd like to apply the ota that's sitting in wait (it downloaded again just fine) but I need to restore the backup of my stock recovery on my SD... can anybody direct me how to do so via terminal since I don't have access to anything but the phone.
[Moto X Original Android Development] runandhide05:
Wel you can do it with dd img of sdcard img but a I dont have an x so dont know the block off hand and b) it would fail if you modified anything in the /system because the hash of the files would not match, causing a failure before it even flashes
[Moto X Original Android Development] wera750:
Looks like jcase has root on the latest update

Sent from my pwned Moto X
[Moto X Original Android Development] dr3wster:
https://www.youtube.com/watch?v=TBYbWZNtCjA

What a legend.. love his work! And here I was weighing up whether to risk potentially lose root just to get the camera improvements from upcoming ATT OTA.. now I can have my cake and eat it too!!! Donation definitely coming when I get paid next fortnight! Thanks for your continued hard work :cowboy:
[Moto X Original Android Development] housry23:
I think the Verizon system.img is too big to flash using fastboot. It worked fine on my att x. On the HTC One, when it failed to flash with the getvar file size error, you just enter the fastboot flash command again and it would send the rest of the file and flash. But, that was HTC. And the bootloader was unlocked.

If you fastboot flash recovery, technically, you should still be able to take the OTA. It will break root, and you'll have to uninstall all root apps. There's really no need to flash system. Also, any stock system apps you have frozen, it would be a good idea to defrost them before trying to update.
[Moto X Original Android Development] oracleminder:
FYI Sprint error while pushing the apk

FYI on the OTA 139.14.1 I get this while pushing the apk to my phone.

4605 KB/s (316580 bytes in 0.067s)

pkg: /data/local/tmp/PwnMyMoto-1.4.3-Sprint.a

Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

I am reverting to the original OS to try it again.
[Moto X Original Android Development] murso74:
I'm going to have to send that guy more money Friday
[Moto X Original Android Development] bugsy:
Agreed, does anyone know when we will see the release?
[Moto X Original Android Development] capathy21:
+1

He is a true genius!

Sent from my White Moto X
[Moto X Original Android Development] j2sun:
Same here for AT&T after the OTA. I held off of root until the OTA and now I can't root!
[Moto X Original Android Development] oracleminder:
Let me know if you are able to downgrade. I was not able to. The errors are typical ones that they have prevented you to go back. ------ Note I have not tried other methods..... I will fix later...

jcase Have you tested with any version of the OTA? Any information from my phone that would help you trouble shoot this? Let me know I will try to revert back in the next day or so.
[Moto X Original Android Development] wera750:
So have any AT&T guys got the ota yet?

Sent from my pwned Moto X
[Moto X Original Android Development] bugsy:
The soak test just started yesterday afternoon so it will probably be another few days before it's released.
[Moto X Original Android Development] mmad81:
Hi, my Verizon moto x will be arriving tomorrow...will this still work on it? Not sure if there was an update yet that won't allow this app to root it yet
[Moto X Original Android Development] csamolot:
Yes I got mine yesterday afternoon
[Moto X Original Android Development] geekabilly:
Yeah I got it and it blocks the hole that root exploit was based on - that phone in the video was a one-off, don't be thinking there's anything coming that we mortals can use to root the OTA.
[Moto X Original Android Development] jackashe:
if it has the update then it won't work. But doesn't hurt to try! If you turn it on and it says there is an update then you probably want to decline and root instead.
[Moto X Original Android Development] mmad81:
OK thanks....can't wait...I've had a gnex since day one..lol
[Moto X Original Android Development] jayboyyyy:
verizon update isn't out yet so you won't have a problem. this root method will work for a while longer because verizon's soak test hasn't even began.
[Moto X Original Android Development] jcase:
Yes, I got root post OTA on mine, but its an edge case scenario, not something that is realistically usable on most devices, and won't be released.

I wouldn't expect another easy root on this device.

It is possible to "keep" root over the OTA as well but requires restoring system to stock (and rerooting), using some root keeper app in recoveryboot mode to backup and hide su, restoring recovery, taking OTA, executing hidden su, overwrite new recovery with new boot, booting into recovery bootmode, deleting /system/etc/install-recovery.sh, copy boot over recovery again, and unhiding/restoring root properly.
[Moto X Original Android Development] murso74:
eh... will be nice if we get it but i really wanted this camera update. phone is still young
[Moto X Original Android Development] jcase:
Downgrading should not be possible.

I flashed the OTA, thats the limit of my experience.
[Moto X Original Android Development] jayboyyyy:
Any chance you can give a more detailed description of how to accomplish this. I understand most of it but have a few questions.

1. what does "keep" root mean?

2. will any root keeper app work or will I need to determine which ones perform what you have described?

3. "executing the hidden su" will the app do this or can we just execute the su apk?

4. how do we overwrite new recovery with new boot?

5. what does copy boot over recovery again mean?

6. what does unhiding/restoring root properly mean? I assume the app would be doing this portion.

That's a lot of questions and I'm not to sure if this was a description of how I could do this or what the app will need to do but any more advice/explanation would be greatly appreciated.
[Moto X Original Android Development] Dark9781:
I figured this out last night and informed jcase about it. I'll be home in about an hour. I'll write a tutorial for it then.
[Moto X Original Android Development] Abstract_Logic:
I'm very interested in keeping root post OTA. I will definitely be looking forward to that tutorial!
[Moto X Original Android Development] Dark9781:
Tutorial has been posted for those interested in keeping root.

http://xdaforums.com/showthread.php?p=46093725#post46093725
[Moto X Original Android Development] murso74:
Gah... Guess i updated to early.
[Moto X Original Android Development] kalimerobleu:
Question , how to find a stock firmware ?

Hugo :confused:
[Moto X Original Android Development] msburr87:
Quick question how would we unroot if needed? Don't think I'll ever need to, but just in case.. Fastboot flash the stock recovery?
[Moto X Original Android Development] dr3wster:
Thanks so much Dark9781 for compiling these detailed instructions for us less experienced! Question to everyone though, do you think I would be better off waiting for Hashcode's safestrap or going the above method?

Pardon my ignorance, but does safestrap typically rely on any vulnerabilities patched in the ATT OTA, for installation / operation?
[Moto X Original Android Development] geekabilly:
Safestrap relies on being rooted, so root first, then install SS if/when it is available for your device
[Moto X Original Android Development] thepolishguy:
All the info you need is in the OP of this thread...

http://xdaforums.com/showthread.php?t=2446515
[Moto X Original Android Development] n82k:
MotoRoot survived the soak test ota on us cellular. THIS IS THE ORIGINAL APP VERSION Without system write but I still have root after ota. No precautions taken just installed ota and still had root.
[Moto X Original Android Development] jayboyyyy:
[MENTION=2376614]jcase[/MENTION] can you explain why this is the case and/if this means anything for the future? I'm assuming the vuln that got patched was the one giving us write permissions and this is why the motoroot app still works?
[Moto X Original Android Development] Dodolom:
Can I use the at&t file for my developer version phone to root it?

Thanks guys
[Moto X Original Android Development] rmead01:
why wouldn't you just unlock the bootloader, flash a recovery, and flash a zip to root? Isn't that why you would get a dev edition?
[Moto X Original Android Development] Dodolom:
Yeah that's what I meant pretty much but I am not the brightest when it comes to all this. I've unlocked the bootloader this morning, I assume I go with one of these here after that.

Recoveries

[26 Sep 2013]Unofficial CWM Recovery with f2fs support - for unlocked Bootloader

[26 Sep 2013]TWRP 2.6.3 with f2fs support - For unlocked bootloader

[03 Sep 2013] [DEV][RECOVERY] TWRP 2.6.1.0 for Moto X - UNLOCKED BOOTLOADERS ONLY ! -

[18 Aug 2013] [RECOVERY] Unofficial CWM Recovery for Moto X -- WORK IN PROGRESS!

[15 Aug 2013] [RECOVERY] OUDhs Recovery for Moto X

Where can I get the zip file to root after that.

Thanks again
[Moto X Original Android Development] freak4dell:
Could just be me, but I wouldn't do that unless I had to. If I hadn't gotten a decent deal on a regular X, I would have bought the Dev Edition and rooted it this way until I was either desperate for an update or a custom ROM. I'd want to keep my warranty as long as possible.
[Moto X Original Android Development] geekabilly:
Chainfire has flashable SuperSU zips, search for them
[Moto X Original Android Development] Dodolom:
Thanks
[Moto X Original Android Development] rmead01:
Well to each there own. I know what you mean. Everybody is different and what not, etc...

I went with the assumption that most people that spend $600+ on a dev edition is because they want to do those things, not just an incase I want to run a different ROM maybe one day. But hey, if I could I know I would :highfive:
[Moto X Original Android Development] Dodolom:
I always go for the DEV Edition (if there is one) because you never know if someone will be able to achieve root or s-off,etc... for that device, so I play it safe but trust me I am no developer, I am not a NOOB either but I am somewhere in between :)

Anyways - I am flashing the custom recovery via fastboot and getting this screen and then if I try to go to recovery via power + volume down, I just get a black screen. What am I missing here guys?
[Moto X Original Android Development] thepolishguy:
A couple of things just to help trouble shoot...

1. I see from your screen that you are using...

fastboot flash recovery recovery.img

Did you rename your recovery to "recovery.img"? Because (and I am sorry to point out the obvious) if your recovery is named "twrp263.img you would have to enter...

fastboot flash recovery twrp263.img

OF course if you were trying to flash a recovery and werent using the correct name you would have got an error so that is not it.

2. Power+volume down takes me to bootloader/fastboot. Here the buttons are configured different then I was used to. The power button does NOT select. Volume down toggles you through the choices. Volume up selects your choice. So - volume down to "recovery". And when you are on recovery - volume up to select it.
[Moto X Original Android Development] Dodolom:
You are the man sir. Issue was me hitting the power button instead of volume up. All good now.

And yes of course I renamed the file recovery.IMG myself :)

Thanks again
[Moto X Original Android Development] thepolishguy:
Yeah - I just happened to notice in tiny little text in bootloader it actually says, "volume down blah bla-bity blah blah"
[Moto X Original Android Development] johnny grep:
You sure about the downgrading part? I thought there was a documented process (in the main MotoX forum) describing how to flash stock firmware (4.2.2)
[Moto X Original Android Development] jcase:
I have been aware of this, why it happens and how but I'm not going to elaborate at this time
[Moto X Original Android Development] geekabilly:
Timing is everything
[Moto X Original Android Development] mpetruzz:
Delete - found my answer
[Moto X Original Android Development] Jade Eyed Wolf:
I've got a DEV Edition coming my way too, and don't really plan to do that much with it either. Is it rooted out of hte box?

All I really want is root, and either CWM or TWRP for recovery/backup purposes. Do I need to bootloader unlocked for this?

What are the exact steps I need to do for these things on the DE version? I'm unfamiliar with hardware other than Samsung's stuff (yeah, this is my first non-Samsung android device!)
[Moto X Original Android Development] Dodolom:
It is not rooted, it is not even bootloader unlocked out of the box. You have to do those yourself. If you go couple of messages above, someone gave the link for the motorola site to get the device bootloader unlocked. It is pretty straight forward. Then, if you want to root it, that is pretty straight forward also. Just PM me if you need more help or just read the other messages on this thread.
[Moto X Original Android Development] Jade Eyed Wolf:
OK, I kinda figured that might be the case. I'll be in contact once it arrives LOL! Thanks :)
[Moto X Original Android Development] jayboyyyy:
in regards to the blank screen you are seeing when trying to get to recovery. pres volume up and power together and see if it will move into recovery after that. I believe some others had this problem and this is how they got it to work.
[Moto X Original Android Development] biglydogg:
cant root my moto x

downloaded the pwnmoto apk for my att moto x.

when i try to install it just keeps saying app not installed.

much help is appreciated!
[Moto X Original Android Development] shane1:
Do you have unknown sources checked of for app installs?
[Moto X Original Android Development] d14gvn:
Little OT: what is needed at this time to get a cyanogenmod ROM in moto x?? I'm thinking to buy this phone, but I want to know if this will get its portion of CM.
[Moto X Original Android Development] shane1:
Totally wrong thread , but needs work on the f25 something or other and I'm sure it will get some cm love.
[Moto X Original Android Development] mhsbrian:
There are a handful of developers working on cyanogenmod right now for this phone but I think its safe to say it might be some time before anything is released. I think just 2 days ago they got internal storage and data working within cyanogen .
[Moto X Original Android Development] SeemuRimu:
nothing but great thanks

Your exploits work well and donations to you later:D:D
[Moto X Original Android Development] johnny grep:
Thanks!!!

btw why the name change?

Sent from my Moto X
[Moto X Original Android Development] j2cool2012:
Cause it's more than root now.
[Moto X Original Android Development] mj0528:
I have installed and executed and then booted into recovery to install exposed and the framework but I can't get the settings to stick in recovery or normal boot mode. What am I missing?
[Moto X Original Android Development] ruskiyab:
Are the system changes performed while booted in recovery supposed to stick when the phone is rebooted normally?
[Moto X Original Android Development] terabyte128:
I did, it's working great. With Xposed and GravityBox installed I can also customize the quick settings toggles to include it in them :D

Thanks for the awesome work, jcase!
[Moto X Original Android Development] rprescott11:
Is it okay to update the su binary if we open SuperSU?
[Moto X Original Android Development] mj0528:
What is the process for at&t?
[Moto X Original Android Development] soccerplaya2090:
Yes
[Moto X Original Android Development] jcase:
Major changes
[Moto X Original Android Development] terabyte128:
Idk. I don't think anyone's released an apk for that yet. See if there's something in the /system/app folder related to "tether" or "entitlement"

Sent from my Moto X
[Moto X Original Android Development] ruskiyab:
Any apps I move to /system/app while booted in recovery with WP off disappear when I reboot normally.
[Moto X Original Android Development] jcase:
Check the status

adb shell getprop ro.boot.write_protect

if it is 0, then uyou are good,

so remount it

mount -o remount,rw /system
[Moto X Original Android Development] distortedloop:
Nvm... found droid thread.
[Moto X Original Android Development] ruskiyab:
It shows 0 when booted in recovery and 1 when booted normally but when I try to move an app into /system/app while in recovery, its not there when I reboot normally. Also, secure settings for tasker doesn't detect busybox. Xposed stuck through reboots however... Interesting.
[Moto X Original Android Development] jcase:
mount -o remount,rw /system

cat /sdcard/filename.apk > /system/app/filename.apk

sync

mount -o remount,ro /system.

busybox has nothing to do with this root, and was not included. Install it yourself.

If xposed is sticking, then it is working.
[Moto X Original Android Development] agentofchaos:
damn that was so long ago.. that phone was a trooper
[Moto X Original Android Development] krypticos:
idk if this is stupid question or not. i want to remove system apps that are available on the market so i can install the blacked out versions. when i navigate to system/app folder on my phone with es file explorer and it has root access. when i select books then press delete it says file system is read only. i have connected via adb and made sure that it is giving a 0.

My question is what am i doing wrong? i guess is my question.
[Moto X Original Android Development] pulser_g2:
You normally need to remount the /system filesystem as read-write.

You can do this via a root shell with

mount -o remount,rw /system
[Moto X Original Android Development] bbrannack:
How is everyone that has rooted planning on getting the 4.3 or 4.4 update when it comes? With the new root method comes a recovery so we won't be able to get it ota. Just curious.

Sent from my XT1060 using Xparent BlueTapatalk 2
[Moto X Original Android Development] Devilicus:
Having the same problem installing it on the T-Mobile version (although I have the newest OTA with the camera fixes, so maybe that's why, I'm not sure). Just says "Not Installed" with no explanation
[Moto X Original Android Development] jayboyyyy:
this does not work on the update. the update patched it.
[Moto X Original Android Development] bajasur:
[MENTION=2376614]jcase[/MENTION], are you still working on an exploit for the new update? Not asking for eta just curious.

Thanks for all your hard work
[Moto X Original Android Development] jcase:
No plans to release any more 4.2.2 exploits for MotoX
[Moto X Original Android Development] eduhardolunar:
How use with this versión. Please
[Moto X Original Android Development] kkhadr:
Follow instructions in OP and use PwnMyMoto-1.4.3-Brazil.apk.

I already rooted mine with it.

---------- Post added at 07:35 AM ---------- Previous post was at 07:34 AM ----------

Follow instructions in OP and use PwnMyMoto-1.4.3-Brazil.apk.

I already rooted mine with it.
[Moto X Original Android Development] Slusho:
I've been getting these weird "flashes". Nothing actually flashes, but when it happens (once every few minutes), if I'm in Chrome, the bar will appear, if I'm in an IM app the keyboard will disappear and reappear and then if I continue typing, it moves the cursor to a random spot in my typed passage and replaces a word with the last word I typed, etc. Is there any way this could be due to the root?

Also, any way to disable the reminders to update?
[Moto X Original Android Development] shane1:
I haven't had any issues as far as the update notification freeze the updater.apk
[Moto X Original Android Development] krypticos:
i have searched the thread and read many post but i still may have over looked it. how do i go about restoring the recovery.img with terminal on the phone if possible.
[Moto X Original Android Development] SubliminalME:
If we have pwn and safestrap installed, can we update the rom in a new slot or would that mess everything up? :)
[Moto X Original Android Development] mandrsn1:
You can pull the old recovery off the sdcard, it is called recovery-stock.img.

Boot your phone into the bootloader, and flash that recover with the command: fastboot flash recovery recovery-stock.img
[Moto X Original Android Development] krypticos:
yea i knew you could do that im currently away from a computer that i can use for fastboot and i was just seeing if there was a way to use terminal that is all. thanks for the reply
[Moto X Original Android Development] runandhide05:
If you knw the block, ( someone with a phone can chime in and tell u which block it is) you can dd it from sdcard to recovery parition.

But u need to know the block.
[Moto X Original Android Development] skulldreamz:
If rooted to find the block list type this in terminal. cat /proc/emmc You might have to type su and hit enter first, and then type mount -o remount,rw system Now you are running root shell after su command & running system writable after the remount command so cat /proc/emmc should work. I just got my ATT version yesterday and am enjoying the phone for what it is before I mod anything. But this phone is really a awesome device. I think I like it better than my one or any other phone I own. :)
[Moto X Original Android Development] robsw:
So, if I have the GSM Developer Edition, do I need to run this after unlocking or do I just install SU?
[Moto X Original Android Development] tw1tch175:
Just install SU
[Moto X Original Android Development] thepolishguy:
I am not sure if you meant "just install su from the PlayStore"? Because I believe that you need to flash su.zip through a custom recovery. Then depending on the version of su you choose you can install the app from the PlayStore.

link to Koushik Dutta's superuser flashable .zip
[Moto X Original Android Development] jayboyyyy:
curious now? so you don't think that if you installed a custom recovery, you could not just install an su app from play store. Why the need to flash it?
[Moto X Original Android Development] skiwong20:
u need the su binary files nd su needs to a system app..thats why u need to us a flash able zip with CWM or use TWRP which it look to see if system is rooted if not it will ask u if u want Su
[Moto X Original Android Development] robsw:
So how do I go about doing this? Would someone be willing to walk me through it? Not a noob per se, but I've never rooted or messed with a Motorola phone, just Samsungs, HTCs and LGs.