yashsingh1/xdaforums huggingface dataset:
[Moto X Original Android Development] 640k:
you would have to consult jcase's and beaups' threads for an answer. i only know this method to work with the X. furthermore the script only captures image names that have been made available on the firmware page listed on the first post. i could guide you though modifying that list for other devices, but I can't answer if these methods work on other devices.
[Moto X Original Android Development] easting:
Anyone have any tips on nuking drivers and starting over?
[Moto X Original Android Development] 640k:
what exactly is happening? is your computer not seeing your device at all? does it fail when you connect it to your PC? does the installation fail? have you tried plugging your device into a different USB port? sometimes that will re-install the drivers.
[Moto X Original Android Development] tducote:
How many times is the Cydia Impactor supposed to run? I think it has prompted me to run it like 5 times so far.
[Moto X Original Android Development] easting:
Got my driver issue solved, but yeah this is where I am stuck now. xt1060, never rooted.
[Moto X Original Android Development] 640k:
Should be a total of 5 times. Flash 4.2.2, telnet/cydia three times, flash again, telnet/cydia two more times, take 4.4, root, reboot, done.
[Moto X Original Android Development] tducote:
Great. 4.4 is installing now. I'll let you know how the final root portion goes.
[Moto X Original Android Development] easting:
ok, it went to beups, but there was an error: said checking for updates.... then came up and said can't check for updates, press any key to exit.

Now it's flashing 4.2.2 again...hope wpnomo worked..

---------- Post added at 06:24 PM ---------- Previous post was at 06:22 PM ----------

That's important info. I was this >< close to saying to heck with it :)
[Moto X Original Android Development] 640k:
If beaups method failed you won't have write protection turned off. Not sure why it would fall. Check his thread.
[Moto X Original Android Development] tducote:
I got the same error message at that step, I think. I'm back to 4.4 but still no root. :crying:
[Moto X Original Android Development] 640k:
Unfortunately if beaups process fails, slapmymoto likely won't work, which means this script won't work. I think I saw something in his thread about maybe disabling antivirus, but that might have been related to adb. If he has a tie in to his servers it's possible they're down too.
[Moto X Original Android Development] easting:
Yep, 4.4 again, but no root. I think I will try again, now that I know sort of what to expect. I will do it tomorrow morning probably.
[Moto X Original Android Development] Butchr:
Just curious to approximate numbers on people who have used this with success.

Oh and you should put up a donate button 640. I know that you are using work from other people, but you give them all the credit for what they have done. I'm an adb noob, and I have been waiting for a relatively simple one click solution for root since I took the camera update.
[Moto X Original Android Development] 640k:
Thanks for the thought, but this exercise was really proof of concept for me. If I can make a few people happy, I hope they just hit the thanks button. All of these steps, anyone can do without the script. I don't want to step on the toes of the people who did the actual work. In the future, should one of these devs make a change or need help with a script, I hope that they reach out to me because of my success history.
[Moto X Original Android Development] momentman10176:
I have write protection 0, but I can't get root.... I've used the tool 9 times now....anyone have any ideas? I'm back on 4.2.2 now...ran option 1, and 1a with no success, write protection stays at 0, but even after installing Super SU, still nothing.
[Moto X Original Android Development] 640k:
once you've removed WP, you can't do rockmymoto or wpbegone "ever again". go to the advanced menu, choose option 5, wait for the OTA and then choose option 6. I'm going to restructure the menu to see if I can make the choices clearer.

i'm adding to this.. i had issues with the install.sh script failing once on 4.4 in the past, but i wasn't able to isolate my issue. I think it was due to pushing 4.4 instead of taking the OTA. when the script executes this line: adb shell echo "/data/local/tmp/install.sh", it is supposed to trap for "permission denied" and send you to the "no_root" error message.

are you getting the error at all? is SU showing that you do not have root?
[Moto X Original Android Development] 640k:
I've made some significant changes to the script. Now the script will validate Write Protection before attempting root. Since the entire first half of the script is basically nullified after WP has been removed, I have logic in place that skips that section. So if you ever need to go to 4.2.2 (or if you didn't ultimately get root in 4.4), choosing option 1 in the menu will only flash your device once (back to 4.2.2).
[Moto X Original Android Development] momentman10176:
When I open SU it's saying no SU binary installed Super User can't fix this...
[Moto X Original Android Development] 640k:
go to the advanced menu and try to run option #6. let me know if root fails or if you see anything funny in the command window.
[Moto X Original Android Development] momentman10176:
Pushing install script (jcase's final steps)...

!! Your device doesn't appear to be rooted !!

The SU was not found or was not installed!

You have three options at this point:

1. Restart your device and check for root again.

2. Start the process over again.

3. Consult the forums!

(T)ry again, (S)tart Over, or (E)xit?
[Moto X Original Android Development] 640k:
ok. if you're willing to work with me, do these steps:

from advanced menu:

#1 - wipe your device

add your google account to your device, act like you're getting ready to use it. restore your settings, etc.

#5 - slap it

wait for the OTA. take the OTA, let Android do its thang. take any play store updates.

#6 - root script

if it doesn't work after those steps, telnet isn't doing its job (my guess).
[Moto X Original Android Development] corywf:
Signature Bugs Unavailable Error

I keep receiving this error every time I try telnet any thoughts on this?

my AV and Firewall are both disabled.
[Moto X Original Android Development] tducote:
I had the same message yesterday, so I'm going to try this now. I'll let you know the results.
[Moto X Original Android Development] 640k:
you're not on 4.2.2. what option did you choose?
[Moto X Original Android Development] corywf:
I tried option 8 into the Advanced menu then I select option 5. Root for 4.4.

Then I get the telnet error.

Just checked the Android version on my phone it says 4.2.2.

When you say I'm not on 4.2.2 do you mean I need to select option 3. Root for 4.2.2?
[Moto X Original Android Development] tducote:
I tried option 2 in the advanced menu and it seems that the phone might now be bricked. :( Any suggestions?
[Moto X Original Android Development] 640k:
you should be running from option #1 on the main menu.
[Moto X Original Android Development] 640k:
i think i might have told you the wrong option. i wanted you to do a full wipe. do option 1. when fastboot runs, you should receive zero errors.

just for sanity sake, mfastboot is a tried and true method. once you're in the fastboot menu, mfastboot will flash all of your system files, individually, much like rsdlite does. the only real difference is you have the power to tell mfastboot the order.
[Moto X Original Android Development] tducote:
Any ideas for if the phone doesn't power on?
[Moto X Original Android Development] 640k:
are you not even getting a bootloop? is your phone completely charged? you should at least be seeing the M moto logo.
[Moto X Original Android Development] momentman10176:
!! Your device doesn't appear to be rooted !!

The SU was not found or was not installed!

You have three options at this point:

1. Restart your device and check for root again.

2. Start the process over again.

3. Consult the forums!

(T)ry again, (S)tart Over, or (E)xit? T

Waiting for device....

Checking for root... drumroll, please...

!! Your device doesn't appear to be rooted !!

The SU was not found or was not installed!

You have three options at this point:

1. Restart your device and check for root again.

2. Start the process over again.

3. Consult the forums!

(T)ry again, (S)tart Over, or (E)xit?
[Moto X Original Android Development] 640k:
this is not a good success rate for this script.

according to the script order, you're getting past the "permission denied" while applying the script. what it does is copy the install.sh script, change the permissions, then add it to the start up routine for when the device is rebooted. if the step to add it to the uevent_helper fails, you'll get a permission denied, which indicates root was not achieved.

once the device reboots, the install.sh is supposed to run, but installing the SU binaries into the /system/xbin folder. the script checks to see if those files exist and produces an error if they don't (where you're failing).

do me a favor. turn off your BT, wait for 30 and turn it on. see if you get a message on your screen. if after 30, you don't see anything, manually restart your device and then try to install any SU app from the market.
[Moto X Original Android Development] digital_cha0s:
I just want to say 640k this is awesome work.... I did get this script to work for me after having root & wpnomo on 4.4 then lost it.... by fault of my own..... it took a little messing around with the options and telnet not wanting to work a few times but I did manage to regain root and get the telnet to run correctly ت and no I couldn't tell you the steps I did to succeed in my frantic state just don't give up this it is a very useful tool
[Moto X Original Android Development] corywf:
Tried that and now I'm getting this after the first attempt to connect with telnet:

The process cannot access the file because it is being used

by another process.
[Moto X Original Android Development] 640k:
when/where? i need more details.

thanks.
[Moto X Original Android Development] corywf:
I used option 1 from the main menu:

Getting IP address...

Obtaining root using jcase's RockMyMoto.

Your device will reboot TWICE during this round.

Pushing files...

5613 KB/s (91980 bytes in 0.016s)

1534 KB/s (3142 bytes in 0.002s)

The script will now call Cydia Impactor and perform

TELNET commands on your device. Please follow the

on-screen instructions.

(Cydia/TELNET round 1 of 3

(Cydia/TELNET round 2 of 3

(Cydia/TELNET round 3 of 3

Cydia Impactor will now open.

1. Select "# start telnetd as system on port 2222"

2. Click the Start Button

3. Accept any on-screen prompts on your device.

4. Once complete, close out of Cydia Impactor.

Attempting TELNET session to 192.168.1.39...

Press any key to continue . . .

The process cannot access the file because it is being used

by another process.

TELNET Session Complete.

The process cannot access the file because it is being used

by another process.

Waiting for device..........................................

..........................................
[Moto X Original Android Development] 640k:
quit the script (ctrl-c) or otherwise get out of the script. download the new version on Post 1. i created a bug by adding parenthesis within a parenthesis, which is what tells BATCH to do this or that, within a routine. so that's my bad on that one.

download the new script and start from step 1. none of the telnet/cydia stuff did anything.
[Moto X Original Android Development] corywf:
THanks! trying it again now. I'll report back in a few minutes.
[Moto X Original Android Development] easting:
I saw the same thing a few times. I'll re-run it when I get home this afternoon. Thanks for all your hard work 640!

XT1060
[Moto X Original Android Development] corywf:
Failed beaup's script. I have all AV and FWs turned off

Checking for updates......

Test 1: Rebooting into bootloader

Waiting for fastboot (3/120)

Waiting

Test 2: Booting device

Waiting for ADB (25/120)

must play a little while longer...

it's so cold in here

hmm, hold please

..............................................

[---------------------------------------------]

FATAL: Download updated package

If you are running the latest version, and continue to receive this error

you have a network problem. Disable firewalls, antiviri, security softwares etc

Press ENTER to exit
[Moto X Original Android Development] easting:
After the very first Cydia impactor, I get this:

Attempting TELNET session to 192.167.10.197...

Press any key to continue . . .

The process cannot access the file because it is being used by another process.

TELNET Session Complete.

The process cannot access the file because it is being used by another process.

Waiting for device............

Cydia/TELNET round 2 of 3.

The part where it says it can't be accessed--is that normal for the first Cydia/Telnet round?

---------- Post added at 06:22 PM ---------- Previous post was at 06:20 PM ----------

OK same thing on rounds 2 and 3....is it supposed to say that? Firewall disabled....

---------- Post added at 06:32 PM ---------- Previous post was at 06:22 PM ----------

Failed beaups.. Looks like it flashed back to 4.2.2 after the failure.

---------- Post added at 06:57 PM ---------- Previous post was at 06:32 PM ----------

Alright, back on 4.4, no root.
[Moto X Original Android Development] 640k:
What the heck file could it be stuck on? I'll have to look at it later.
[Moto X Original Android Development] digital_cha0s:
Only thing I'm gonna suggest is try to open the task manager and end the adb process if it is running and try again
[Moto X Original Android Development] easting:
Perhaps the telnet.bat file is not quite closing out....I say this because I noticed a telent.bat window open after the 4th impactor, and I closed it before I went through with the 5th cydia/telnet session.

---------- Post added at 08:32 PM ---------- Previous post was at 08:30 PM ----------

I'm not opposed to letting you go with Teamviewer so you can observe/control as I go through it.
[Moto X Original Android Development] momentman10176:
Well...tried the Bluetooth trick...and a reboot and fresh Super User install, as well as the whole restore back to 4.2.2 and 5 different PC's same results...so I'm lost
[Moto X Original Android Development] BADDINOROX99:
cydia impactor not working for me! this is what it keeps telling me failed file exists! i aslso noticed it reverted me to 4.2.2 is that normal

edit:im afraid to do anything else should re download 4.4 update and install or should i update via 640k's Moto X Root Script?

vzw locked bootloader
[Moto X Original Android Development] 640k:
guys i've made another adjustment to telnet handling. before i was opening a new window to initiate the telnet session no matter what. now i am only doing it once, and only during the rockmymoto phase. if you've never rooted or removed WP, then you will likely get the user interaction message, which is what i've been trying to battle.
[Moto X Original Android Development] 640k:
first step is to get you to 4.2.2. it's a requirement for the rooting process.
[Moto X Original Android Development] 640k:
i considered it, but i think i know what is happening. hopefully this new version takes care of the issue.
[Moto X Original Android Development] corywf:
I know this is most likely an issue with beaup's script but I'm getting no help from his post. Do you have any ideas on this? All AV and FW are turned off. I've tried 2 different computer and 2 different networks.

it's so cold in here

hmm, hold please

..............................................

[---------------------------------------------]

FATAL: Download updated package

If you are running the latest version, and continue to receive this error

you have a network problem. Disable firewalls, antiviri, security softwares etc
[Moto X Original Android Development] 640k:
try changing your USB port. i'm seeing a lot of issues with USB 3.0 vs. USB 2.0. i'm not sure if his script is affected by this, but it's worth a shot. if you still can't get his script to run, try calling it manually while my script is still open (or extract it and run it).
[Moto X Original Android Development] 640k:
FYI - anyone having problems with beaups' script:

this was posted 1/16/2014. try again today and see if you get the same results.
[Moto X Original Android Development] BADDINOROX99:
So to continue the rooting process now that I am on 4.2 do I use step 2 or do I use step 1

edit I updated back to 4.4 I'll stay unrooted for a I'll come back when there is a slightly safer method ;) I want to enjoy my phone for at least a week before bricking it

sent from Motorola PAC Man RAZR
[Moto X Original Android Development] 640k:
if you want root on 4.4, always choose option 1. the script is "smart" enough to know which steps to skip. as long as you heed the warnings i've written, bricking your phone should be pretty hard to do.
[Moto X Original Android Development] BADDINOROX99:
Don't get me wrong it's a really straight forward process I'm pretty sure where ever went wrong was my fault.... I'm guessing it's because I was connected to my other phones wifi on my moto x and on my pc that's my best guess but since I don't have home internet I have to wait for a different method

sent from Motorola PAC Man RAZR
[Moto X Original Android Development] easting:
Thanks, I'll give it a shot this evening after work.
[Moto X Original Android Development] momentman10176:
Any Ideas 640?
[Moto X Original Android Development] 640k:
momentman10176, try the new script. i'm certain the telnet sessions weren't doing their job. go through option 1 again. when you get to beaups' process, post back if you've had any errors.
[Moto X Original Android Development] momentman10176:
Attempting TELNET session to 192.168.1.215...

TELNET Session Complete.

Waiting for device..........

Cydia/TELNET round 2 of 2

Cydia Impactor will now open.

1. Select "# start telnetd as system on port 2222"

2. Click the Start Button

3. Accept any on-screen prompts on your device.

4. Once complete, close out of Cydia Impactor.

Attempting TELNET session to 192.168.1.215...

TELNET Session Complete.

Waiting for device....

Please accept the 4.4 OTA. Once the install has

completed, you may continue with the rest of this

script. Press any key to continue...

Waiting for device....

Pushing install script (jcase's final steps)...

!! Your device doesn't appear to be rooted !!

The SU was not found or was not installed!

You have three options at this point:

1. Restart your device and check for root again.

2. Start the process over again.

3. Consult the forums!

(T)ry again, (S)tart Over, or (E)xit?
[Moto X Original Android Development] 640k:
this part here:

Please accept the 4.4 OTA. Once the install has

completed, you may continue with the rest of this

script. Press any key to continue...

is it pausing and waiting for you to press a key - and then are you taking the 4.4 update before continuing?

Thanks.
[Moto X Original Android Development] momentman10176:
I took the OTA, and Then pressed a key...am I wrong?
[Moto X Original Android Development] 640k:
nope, this is good. just checking.

can you post the contents of the TELNET.ERR file?
[Moto X Original Android Development] 640k:
momentman10176, after you post up the TELNET.ERR contents, press S for Start Over - this will take you to the main menu. go to the Advanced Menu and select option 6. let me know if it fails again.

thanks for the help.
[Moto X Original Android Development] momentman10176:
ÿýÿýÿûÿû

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

exit

~ $ dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

RockMyMoto 1.0

by Justin Case

PayPal Donations maybe sent to: jcase@cunninglogic.com

Special thanks to saurik, you rock!

System is not write protected...

Executing step 3...

~ $ exit
[Moto X Original Android Development] 640k:
these two things:

System is not write protected...

Executing step 3...

are GOOD messages. :)

i honestly can't answer why the script isn't installing. i had the same problem, and I thought it was how I applied 4.4. i went back to 4.2.2, ran slapmymoto again, and the script took the second time. i don't know if it's a timing issue or what.
[Moto X Original Android Development] 640k:
just for a bit of background/understanding for people paying attention to the thread:

you have to obtain root on 4.2.2 in order to remove the Write Protection bit. beaups' process will fail ("SU or FU") until the RockMyMoto steps are successful (first TELNET/Cydia session). so this means to me that the TELNET issues have been worked out!!!

once WP has been removed, your device is to be flashed again (4.2.2) to clean up RockMyMoto rooting and to prepare the device for SlapMyMoto. Once 4.2.2 has been imaged, this is the point where you can pretty much start treating your phone "normally" again (add your user account, take apps, etc). Then the second round of TELNET/Cydia starts (two times).

what I'm wondering is if this step:

System is not write protected...

Executing step 3...

~ $ exit

still requires a 60s wait before the restart. jcase doesn't specifically mention waiting here, but perhaps the timing of how i did everything on my device caused an artificial wait before my device rebooted. once the SlapMyMoto has been installed, 4.4 can be applied to the device and SU will be installed.
[Moto X Original Android Development] momentman10176:
Ran option #6

Pushing install script (jcase's final steps)...

!! Your device doesn't appear to be rooted !!

The SU was not found or was not installed!

You have three options at this point:

1. Restart your device and check for root again.

2. Start the process over again.

3. Consult the forums!

(T)ry again, (S)tart Over, or (E)xit?
[Moto X Original Android Development] 640k:
you're halfway there. if you're willing to try one more time, i've uploaded a new script that pauses between telnet sessions. can you assist me by telling me if your device ever tells you to restart?

thanks!
[Moto X Original Android Development] momentman10176:
My phone hasn't with your script, only reboots on it's own, But yes...Downloading now.
[Moto X Original Android Development] 640k:
hit option 1. this will take you back to 4.2.2 (clean). it will apply slapmymoto, but will wait in between each session. in order for root to go to 4.4, it has to be obtained in 4.2.2 first. the TELNETs must not be getting enough time to do their thing.
[Moto X Original Android Development] momentman10176:
Stupid question, and maybe a lil late...but it says answer all on screen prompts....yet all I see even close to prompts is a quick flash...of activity, but nothing I can ever accept or deny....

On a side note....still can't even get root back on 4.2.2...
[Moto X Original Android Development] easting:
Alright...failed the first telnet session.

TELNET to 192.168.10.197 failed!

Your device is not connected!

Your device is not ready!

You must be on 4.2.2 and run Cydia Impactor using

the instructions provided in these steps. If Cydia

Impactor failed, and you meet the requirements,

you may not be able to root your device!

Blah!

Rebooting. Firewall is off.....
[Moto X Original Android Development] butthurtlocker:
derp?

Hey so like the previous few posts I also am having telent fail on first round. It says accept any on screen prompts and I briefly see a screen flash and can read "payload" in top left but its there for like half a second and then telnet stops and says complete and i go to exit my device and I get the exact same message as the post above me.

I then hit try again (T) and it says attempting tel net session [my ip address], then Telnet session complete and my phone reboots and then it goes through the other 2 rounds and at the very end goes right back to original menu and literally nothings happened to my phone aside for the reboot.

Help please anyone? BTW I unlocked my bootloader, will that have any effect on this?