yashsingh1/xdaforums huggingface dataset:
[Moto X Themes and Apps] hax0rmort:
Xposed steps confirmed w/ ATT XT1058 4.4.2

1) root with towelpieroot "reboot for good measure and let it reapply root by itself (see below)"

*just make sure to check "Root on Reboot" let it sit for a minute after reboot for it to reapply the root, it does NOT do it instantly when you have . access to O/S.

2) install latest exposed 2.7 e1.apk (experimental 1) then click cancel when prompted about reboot.

3) select soft reboot inside exposed framework, are you sure? yes.

4) after soft reboot (or hot reboot, if you're using power menu(will also work)), select modules you'd like installed and activate them

5) repeat step 3 to activate modules.

6) Done. :laugh:

no need to do anything else funky to get it working. again, like OP said, you do not need to install the su binary as he included the latest one(or near latest) ignore that message and root access popup will still work like normal if you do install SuperSU.

If these steps aren't working for you, then something else is going on. You might try to complete an unroot process using the official ROM that you can download and apply using Moto X Toolkit which you can find here at xda forum. That is what I did before I applied TowelPieRoot to make sure no Pie or Towel was interfering with this new process. Enjoy.
[Moto X Themes and Apps] amcoias1:
Yeah but they're using 4.4.3 or 4.4.4 iirc, that's why I asked. I don't really know how to fix boot loops or I would test it myself
[Moto X Themes and Apps] AllDanDay:
Ok but I still cant get xposed to update then and without updating xposed I obviously cannot use any modules :(

Edit: I am also using the Verizon Moto X *shakes fist angerly in the air at verizon*
[Moto X Themes and Apps] iKrYpToNiTe:
I will definitely shoot him an email, I actually didn't think about there being any analytics in the library file. I saw in his app where he gathered information about the phone and queried a reporting website. I decided not to include that part because I thought it would like you said screw his reports up since Moto X users have to keep running the exploit every time they reboot. Thanks for letting me know about the analytics.

Thanks that actually means a lot, you actually inspired me to start expanding my development knowledge and to start learning java. I'm weird I learn by reading code so I referenced your github a lot when I started out, to try and figure out how you found and exploited the vulnerabilities. My goal is to actually exploit a vulnerability on my own one day, probably will be a long time before I do, but I don't give up to easily when I find a challenge. Also thanks for the tip about adding a class with the package name, like I said I'm still a beginner at java so any help is greatly appreciated!
[Moto X Themes and Apps] jcase:
Go pickup some 4.0 LGs or 2.3.X anything, fairly easy to stumble upon vulns back then, good for practice
[Moto X Themes and Apps] Captain Enchilada:
On Republic Wireless version shipped

I just got my RW X today. Unless it updated without me knowing, it seems to have shipped with 4.4.2. I might test this out later this week, once some beta testing goes on.

Oh, and on a somewhat unrelated note, is the "camera update" I hear about actually a part of 4.4.2, or is it just updating the camera app? I disabled all automatic play store apps as soon as I turned the phone on.
[Moto X Themes and Apps] m0yP:
No, that root method was for JB ROMs. If yours came with 4.4.2 then you are ready to apply this one. As I see there are some issues with some users, you can post your results.
[Moto X Themes and Apps] Vinyborges:
I'm running 4.4.3 stock! Humm... Could be that! Maybe root+xposed only in 4.4.2.
[Moto X Themes and Apps] Imacellist:
I was getting the same closed error until I rebooted. It seems to install OK but the soft reboot doesn't seem to help with the install. Not sure why it isn't working.
[Moto X Themes and Apps] Falling_Rock:
Someone with 4.4.3 will have to confirm. I wonder why it wouldn't work? How strange; you have root (SuperSu says something about upgrade rather than 'Su Binary Not Found') but can't use xposed. Perhaps its an xposed problem? You might try a different root program and see if that will work, for curiosity's sake.
[Moto X Themes and Apps] robertdelfave:
SuperSU

I am receiving:

Installation Failed! Please reboot and try again.

Anyway to fix this?
[Moto X Themes and Apps] Baconberries:
I'm having the same problem. Did you happen to find a fix?
[Moto X Themes and Apps] damagedbits:
Does anyone know if disabling write protection with WPMotoNoMo is possible with this root method?
[Moto X Themes and Apps] ariesceres:
I fixed the "can't update su binary" issue by installing SuperSU v1.94 from UPDATE-SuperSU-v1.94.zip at chainfire.eu — Google it, I can't post links yet. The file is at /common/Superuser.apk, and I disabled Play Store auto-updates on it. I tried literally every version more recent than 1.94, to no avail. I still got the dialog to grant/deny root and that worked, but I couldn't open SuperSU and get past the outdated su binary error. 1.94 works as expected.

Still can't figure out Xposed, however. I had it working great with Pie + Towelroot for a few weeks, but had to factory reset due to something unrelated, and wasn't able to successfully reapply Towelroot or Pie after the reset (although neither of them threw any errors aside from the expected Pie ones).

This root method works beautifully, aside from Xposed.

I did find that /system/xbin/su was dated from the same day I did the factory reset and tried to reapply Pie + Towelroot (July 14). I deleted it and uninstalled TowelPieRoot, then reinstalled, which updated su, but didn't fix Xposed.
[Moto X Themes and Apps] choppacha01:
I have 3 Moto Gs xt1028 on stock 4.4.2 and the app just causes a reboot without giving root. Followed instructions to reboot multiple times before using your app. Any suggestions?
[Moto X Themes and Apps] amcoias1:
Just a question from someone who doesn't code at all, just curious. Why do you need towelroot if all towelpieroot does is apply pie at start-up?
[Moto X Themes and Apps] rohit3787:
I loose root after reboot. How do I fix this? Also, I did not unlock the bootloader. Will unlocking bootloader fix this? I have the Indian retail version of moto x XT1052.
[Moto X Themes and Apps] doitinthedirt:
this post got me curious also.. how did you get pie to run from the phone itself? I tried thru a terminal app and couldn't do it.. if you could give a brief explanation how it worked I would appreciate it just quick laymens terms if possible

and by the way the run at start option does not work on my 4.4.2 verizon locked boot.. I have to manually run the app.. no problem doing that though.. thanks for your hard work!!
[Moto X Themes and Apps] yamaha83:
the method needs to be redone every time you reboot. or you need to check the option to root on reboot. this is not a permanent root method.

---------- Post added at 11:05 PM ---------- Previous post was at 11:04 PM ----------

you can get PIE to work from the phone itself. you have to be hooked up to a computer. thats why its called a tether root. this app fixes that drawback and lets you root from the phone.
[Moto X Themes and Apps] doitinthedirt:
come on Yamaha.. read my post one more time and then redo your reply LOL we all understand its a tether root Pie root is.. towelPie is not.. that's why I asked the question pi will not run from the phone
[Moto X Themes and Apps] samwathegreat:
You don't.

Why are you using this method if you can unlock your bootloader?!? This is only recommended for those who CAN'T unlock their bootloaders. Unlocking is FAR superior to using any of these exploits....

Yes, you should absolutely unlock your bootloader, then you won't NEED this. At all. You'll have permanent root and write-protect-disable.

Putting it in 'laymens terms' (LOL - sp) would be quite difficult.....but he already explained EXACTLY how he did it...in the OP:

Myself, [MENTION=2831641]jpond83[/MENTION], and [MENTION=1637011]chrisp6825[/MENTION] were attempting to do just this in the "towel root discussion" thread. Except that [MENTION=4850320]iKrYpToNiTe[/MENTION] actually succeeded, thanks to his MAD SKILLS ;)

If you are still on 4.4 or before, maybe. Otherwise, Absolutely not.
[Moto X Themes and Apps] rohit3787:
Follow up question. Will I still be receive & install OTA updates with root on an unlocked bootloader? Will I still have root after the update? I'm new to this & learning. [emoji3]
[Moto X Themes and Apps] adisai1:
Not working on RepW Moto G

On my Moto G from Republic Wireless (XT1031), I run the app and press "Make it ra1n on Moto", and it reboots after a minute. I do not get root access after the reboot.
[Moto X Themes and Apps] iKrYpToNiTe:
I will definitely have to do that thanks!

The su used is straight from SuperSU v2.01, if you tell it to update the binary it will actually update it, but for some reason says it doesn't. You don't need to install the SuperSU app anyway it causes more trouble than it's worth with temp roots.

First off he answered your question you just couldn't comprehend it! It's because Pie can only run from adb not from the phone plain and simple no if ands or buts. Like jcase said I'm not really using that much of Pie, I'm only using the part after Pie gains root privileges which mounts the xbin.img over /system/xbin. If you open my app up with winrar and extract the daemon, remount, and setup file from the assets folder. You can open them with notepad, they are based off of Pie's snap and pop files that show up in /data/local/atvc after running Pie.

Really? Ain't nobody got time for that! GTS please!
[Moto X Themes and Apps] jorgicio:
Can I unroot later without losing OTAs upgrades?

I read in other sites that it works under 4.4.3. If I root and then unroot, will I have back OTA upgrades?

I only want root just for using Titanium Backup to delete some apps that are in the system.

Thanks.
[Moto X Themes and Apps] wiggerbrand:
Simply reboot your phone and you will lose root.

However, from what I've seen anything above 4.4.3 and this method will no longer work.
[Moto X Themes and Apps] jorgicio:
Done.

I just did it and it works, but SuperSu didn't want to upgrade superuser binaries, but I didn't mind.

Thanks :D
[Moto X Themes and Apps] doitinthedirt:
OK.. I understand what you did now better. you never got pie to run from the phone... thats what i thought you did somehow by combining features of tr. I tried for a few hours last week running commands from a term emulater app to get pie to run from the phone so i am VERY familiar with it needing to be ran from ADB. My question now is... what advantage do we gain from trpie vs tr? I cannot get the option to run on boot to work.. so other than that does trpie do anything tr doesnt?
[Moto X Themes and Apps] samwathegreat:
A more useful su CONTEXT. The same context PIE uses. Pie = "kernel" context. TR = "untrusted app" context.
[Moto X Themes and Apps] doitinthedirt:
Thanks, one more ? is there any differents between the two roots.. I understand the SU comment.. but what if you dont install superuser... is root access root access? or can one root be different than another?
[Moto X Themes and Apps] samwathegreat:
You don't NEED to install a superuser "app" such as SuperSU. All the "app" does is give you the ability to allow/deny access to a particular app. As long as the "su BINARY" is installed (that's what TowelPieRoot does), you have root.

It's just that ANY app that request su access get approved. You can't allow/deny, and don't get prompted to do so.

Again, with these "temp-roots", its better to NOT install a "superuser APP", such as SuperSU. They cause more problems.
[Moto X Themes and Apps] doitinthedirt:
Thanks
[Moto X Themes and Apps] ariesceres:
It's not working at all? It works perfectly for me, it just takes a minute to load up. I have a Tasker profile which runs on device boot and flashes a little message when %ROOT changes to yes. I noticed this usually takes a minute or two to fire when my device boots—but it works flawlessly on every boot. It seems that TowelPieRoot is one of the last apps to load on startup (I haven't started fiddling with startup apps yet, but I imagine it'll start faster with fewer apps starting at boot).
[Moto X Themes and Apps] EpicBlob:
So this should work with a verizon moto x 4.4.2 non DE? the pie root worked for me. And amazing work :)
[Moto X Themes and Apps] samwathegreat:
Yes.
[Moto X Themes and Apps] doitinthedirt:
I will give it another shot and wait a couple minutes.
[Moto X Themes and Apps] EpicBlob:
Alright sweet, thanks.

And would I be able to download the file from my chomebook and put it onto my phone? Essentially would i need to do anything from the computer side of things other than dragging it to my phone's storage.
[Moto X Themes and Apps] iKrYpToNiTe:
Just download it on your phone it's only like 2mb.
[Moto X Themes and Apps] Verttex:
The rooting method is all done on the device. There is nothing run on a computer. You can use a Chromebook to move the APK over to your device, yes.
[Moto X Themes and Apps] adolfo778:
Can't seem to install xposed with this
[Moto X Themes and Apps] iKrYpToNiTe:
Thank you for repeating what has been repeated several times on almost every page!
[Moto X Themes and Apps] Verttex:
Someone posted some awesome instructions over on /r/Android on install Xposed, try this:

I have used this method plenty of times and can confirm it works.

Perhaps we should add some instructions to the first post?
[Moto X Themes and Apps] cindirella:
this happens to me after to go root xplorer (r/w)

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Themes and Apps] yekollu:
Root checker says I have root access now...

My next question is can i install a custom ROM now and if yes, which ones and how? I have XT1052

Thanks in advance
[Moto X Themes and Apps] Verttex:
Make sure you made the file system r/w
[Moto X Themes and Apps] Imacellist:
When I try to make the system r/w it doesn't work. I thought we don't have access to write to the system with this root method anyways
[Moto X Themes and Apps] samwathegreat:
No. No custom roms unless you are BL unlocked. See the "One Stop Shop" rooting guide in the General section.

If you have an XT1052.....why didn't you unlock? If you do, you won't NEED this....

Or can you not get your unlock code for some reason?

---------- Post added at 08:51 PM ---------- Previous post was at 08:50 PM ----------

You don't have persistent write access. The write-protection reverts any and all changes upon reboot.
[Moto X Themes and Apps] Zayveeyer:
When I try to install xposed, I get an I/O error. System is r/w.

Soft reboot after you run the app. Then it'll let you make the system r/w.
[Moto X Themes and Apps] ariesceres:
I haven't seen this mentioned yet, but for anyone having trouble toggling /system R/W: I realized after two days of messing with this that once you run Xposed Installer, you can't toggle R/W until you do a full reboot. After a fresh reboot, TPR has been applied, and you're sure you're rooted, toggle R/W, then run Xposed. If you run Xposed first, you have to do a full reboot before you can toggle R/W again.

This still doesn't fix my problem, though. Now that I've toggled R/W, I get an I/O error.

SD card: /storage/emulated/0/Android/data/de.robv.android.xposed.installer/files

Copying Xposed-Disabler-Recovery.zip...
Mounting /system writable...
cp: can't create '/system/bin/app_process.orig': I/O error

Failed to create a backup of /system/bin/app_process

[MENTION=4850320]iKrYpToNiTe[/MENTION], would it be more appropriate to start a thread in the Xposed forum for this? I'm not sure it pertains entirely to TPR, as it seems to affect only some users, and everything else here works swimmingly.
[Moto X Themes and Apps] Verttex:
Most users who are using this method are usually interested in Xposed. I offered the install process in my thread, why not here?
[Moto X Themes and Apps] adolfo778:
Getting the same error even after toggling
[Moto X Themes and Apps] bailyc:
By any chance, has anyone had success with TowelPieRoot and AdAway?
[Moto X Themes and Apps] chrisp6825:
Adblock Plus (Ad blocker) - https://f-droid.org/app/org.adblockplus.android

Doesn't require root anymore, though the method it uses changes depending if you have root or not. Seems to work fine with towel-pie-root here.

tapa'd on my moto x
[Moto X Themes and Apps] damagedbits:
I just use the minminguard xposed module

Sent from my XT1060
[Moto X Themes and Apps] Ryano89:
Zero success getting X posed to work. I have root but I cannot get X posed to install, what could I be doing wrong?
[Moto X Themes and Apps] Imacellist:
I haven't had luck either. At this point it may be good to start a thread on it. If someone that has had success wants to start a thread for it that would be best.
[Moto X Themes and Apps] bailyc:
Thanks for the suggestions! I'll check them out.
[Moto X Themes and Apps] Gafanhotz:
Well, well, well! Look at that! Stock 4.4.3 rooted and running! That's awesome! If there was a way to make it permanent would be even better!
[Moto X Themes and Apps] Thisrobot:
Same here. It tells me it doesn't have write access.
[Moto X Themes and Apps] toroloco73:
it works !
[Moto X Themes and Apps] madueno707:
How do I make it so files I move into System/app don't get deleted on reboot. I have tried adding 2 different apps, I use Root Browser to move them from Data/app to System/app. Then I have tried rebooting, and both Full Reboot and Soft Reboot in the app. Upon restart anything I have moved into System/app has been deleted.

I do have root on reboot checked, and simple root checker says :Application Superuser not Found, Terminal Rooted, Busybox installed, Busybox v1.20.2

Any assistance would be appreciated.
[Moto X Themes and Apps] doitinthedirt:
You have to have permanent root not temporary root like this is. If you are on 4.4 you can get perm root using slapmymoto. 4.4.2 and newer cannot get perm root without boot unlocked.

This works just have to redo all your modifications IF you have to reboot. I like an old version of gmaps better than the new one that came on the phone.. so while tpied I delete the new version with fx explorer root addon and keep a copy of the old gmaps in my downloads folder and if I must reboot I redelete and reapply the old version every reboot. Until a developer finds a perm root for 4.4.2 and newer this is what we have. unless you sell your phone and buy a new Dev Ed for $324. http://www.motorola.com/us/developer-phones/
[Moto X Themes and Apps] :
Write protection is still enabled, unless you unlock bootloader. So nothing altered in system survives a hard reboot or power down.

As said above, you can disable it if you're on 4.4 or lower....but not 4.4.2 and above. With a locked bootloader that is.

And standard statement: NO, you can't downgrade.... Unless you are OK with possibly bricking. ;)
[Moto X Themes and Apps] fakieskr8333:
Care to share your profile? [emoji2]
[Moto X Themes and Apps] distortedloop:
Sounds horribly insecure to me.
[Moto X Themes and Apps] :
That's exactly how millions root their phones with unlocked bootloaders. On any phone. ?

(I'm guessing millions based on just the total of members on XDA).

I'm talking about superSU and its binaries. :)
[Moto X Themes and Apps] distortedloop:
I'm talking about installing root, opening full access to the entire phone, and putting ZERO checks on what is asking for root access...which is what I understood the post I quoted to be advising.

Its like opening the vault door at the bank and not having a guard watch it.

SuperSu is the guard...root is the opened vault door.

Correct me where you think I'm wrong.
[Moto X Themes and Apps] Imacellist:
I'm assuming not to take the ota until we know how it will change root for us? 4.4.4 update is going out
[Moto X Themes and Apps] samwathegreat:
YES! If you update, you will permanently lose the ability to root. These vulnerabilities appear to have been patched. We are almost certain that this is true. If you OTA, kiss root goodbye. (Unless you can unlock your BL)

Yes, perhaps....but:

Considering that the nature of the "futex flaw" is now widely available, any "mischievous DEV" could simply incorporate the exploit into their app, gaining root without your knowledge anyways. Such is the nature of all of these "vulnerabilities" and "exploits".... An evil dev already has access to the "master key" to the vault (in response to your latest post).
[Moto X Themes and Apps] distortedloop:
Such an app would make it into the Play Store?

Root, user SuperSu, and only install from trusted sources. If that's out the door, a lot of people rooting should rethink how badly they need root.

I went almost a year not rooting my Maxx, it just didn't need it, until FoxFi stooped working. I may need to unroot based on your thesis.
[Moto X Themes and Apps] samwathegreat:
Its EXTREMELY unlikely (albeit possible) that such an app would make the Play Store...and even if it did it would likely get pulled VERY quickly....

So leaving "allow apps from unknown sources" unchecked will probably protect you. But unrooting won't help regardless! The futex flaw can gain root access even if you don't already have su installed....(again - such is the nature of vulnerabilities).

The only way to 100% prevent this possibility is to upgrade to a version in which the vulnerabilities are patched (e.g. 4.4.4). But the trade-off is no root for you...
[Moto X Themes and Apps] distortedloop:
Got it. Thanks for clarifying.

Might be time to upgrade to 4.4.4 and hope my root sticks. I've been leaning that way the last grew days anyways.
[Moto X Themes and Apps] :
Ah! I get ya!

Yeah, I can see that. Just gotta NOT install shady apps. Lol

And yes, they can get on play store. There was an RBC bank app (Canadian bank) on the play store...all it did was send you to the website. Lol. It got pulled from play store after a bit....for questions on whether they were collecting personal data.

Happens all the time I sure.

BUT.... Root wasn't needed for that. There's risk in any app. ;)
[Moto X Themes and Apps] samwathegreat:
Welcome. I feel you deserve one last clarification, however.

In my previous post, I suggested that the futex flaw has been patched in 4.4.4 --- this is NOT the case for all Android Devices.

Based on all the information I currently have available, it IS the case for the Moto X (at least the variants who have RECENTLY received 4.4.4). I haven't confirmed this though, so certain variants of the X that received an early update to 4.4.4 may still be vulnerable.

Its the Kernel Build Date (or more accurately, the date of the source code used to build said Kernel) that determines whether or not a particular device is vulnerable to the exploit. As a rule of thumb, you can bet that if Towel Root (or TPR) does NOT work on a particular device, then the flaw has been patched in said device's Kernel (TR exploits the futex vulnerability).

I hope that all makes sense. My intention is not to scare anyone - most need not worry. I just wanted you to understand that simply having a SuperUser APP (such as SuperSU) does not fully protect you....although it DOES

help

guard against

legitimate

root apps gaining superuser privileges without your consent. It wouldn't, however, protect you against a

mischievous

app that exploits one of the vulnerabilities.

Any time a new exploit is released, most users are super-happy, because they are able to gain root, and most don't consider that the same vulnerability being exploited can be used to do any number of nasty things, if you don't take proper precautions.

Of course, you should be completely safe, so long as you don't install any app with a poor (or unknown) reputation.

And lastly, I almost -guarantee- that you WILL lose root, permanently, once you update to 4.4.4.