Android OS Forum banner
1 - 20 of 39 Posts

· Rooter
Joined
·
216 Posts
This will void your warranty, like all root exploits. Use this at your own risk. Do not take OTAs on rooted devices unless you know what you are doing, as it may cause a bootloop or a soft brick.


RockMyMoto is designed for MotoXs that have recieved the Camera update, patching PwnMyMoto. If you are unsure of your firmware, try PwnMyMoto first.

First step is to install Cydia Impactor, by Saurik. http://www.cydiaimpactor.com/ This is required. You will also need adb installed and working, and be comfortable with the command line. Your phone must be on the same network as your PC.

Figure out the ip address of your phone:

adb shell getprop dhcp.wlan0.ipaddress
unzip RockMyMoto-{version}.zip and push the exploit and su to /sdcard/:

adb push su /sdcard/
adb push RockMyMoto.jar /sdcard/

Run Impactor and select "# start telnetd as system on port 2222", then hit start.

Once the process is complete, run telnet:

telnet {your phone's ipaddress} 2222
Run the exploit through telnet

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto
The exploit will tell you to use adb to reboot:

adb reboot
Run the exploit through telnet for the second time, it will reboot on it's own:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto
Run the exploit through telnet for the third time, it will not reboot:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto
Wait 0-60 seconds, for su to install, then install SuperSu from the market.

Enjoy!

Known issues:

If you have AP isolation mode enabled in your AP (aka WiFi router) you won't be able to connect to your phone via telnet, disable isolation.
 

Attachments

· Supporting Member
Joined
·
51 Posts
Hi all. I'm trying to run the above exploit for root access and everything seems to work fine until I run the command below:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

Then I get the following output:

Dalvik VM unable to locate class 'RockMyMoto'
java.lang.NoClassDefFoundError: RockMyMoto
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "RockMyMoto" on p
ath: /sdcard/RockMyMoto.jar
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 1 more
~ $
I've watched the video and read the instuctions multiple times but I can't figure out where I've gone wrong. I'm hoping that one of you will be able to help me out with this. Thank you in advance for any help that you can provide.
 

· Android Beginner
Joined
·
9 Posts
Hi all. I'm trying to run the above exploit for root access and everything seems to work fine until I run the command below:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

Then I get the following output:

I've watched the video and read the instuctions multiple times but I can't figure out where I've gone wrong. I'm hoping that one of you will be able to help me out with this. Thank you in advance for any help that you can provide.
There's a typo in the instructions:

Change this commande

adb push RockMyMoto.zip /sdcard/

To This

adb push RockMyMoto.jar /sdcard/

Note the difference in the RockMyMoto extension. You need to push the jar file from the extracted zip not push the zip itself.

Enjoy.
 

· The Lost Junglist
Joined
·
596 Posts
Any advantage to this method over taking the OTA and keeping root using rootkeeper as described on the other forums? Does this still require reboot to recovery to enable r/w on /system?

Sent from my peppy little Sero 7
 

· Registered
Joined
·
2 Posts
Is there a way to root without using the telnet? I would turn off AP isolation, but the router is my roommate's and she doesn't know the login info (not the same as the default log in on the bottom of the router).

GG on my part. :(
 

· Premium Member
Joined
·
4,241 Posts
Is there a way to root without using the telnet? I would turn off AP isolation, but the router is my roommate's and she doesn't know the login info (not the same as the default log in on the bottom of the router).

GG on my part. :(
Buy or borrow cheap used router (like an old Linksys wrt one)

Power it on (does not have to be connected to the internet) and make sure it's on a different subnet than the real router you use so it doesn't interfere (i.e. switch it to 192.168.2.1 if your normal router is on 192.168.1.0/8)

Connect your phone to it

Connect your pc to it

Use telnet as stated in the OP

Either that or reset your current router back to factory defaults and regain the login password.
 

· Registered
Joined
·
2 Posts
Buy or borrow cheap used router (like an old Linksys wrt3g one)

Power it on (does not have to be connected to the internet) and make sure it's on a different subnet than the real router you use so it doesn't interfere (i.e. switch it to 192.168.2.1 if your normal router is on 192.168.1.0/8)

Connect your phone to it

Connect your pc to it

Use telnet as stated in the OP

Either that or reset your current router back to factory defaults and regain the login password.
Thanks!
 

· Head Forum Stoner
Joined
·
367 Posts
How should I go about using this root method? I am still on the old software (pre-OTA), rooted with SS.

I think my steps should be this:

1. Defrost all frozen bloat via TiBu

2. Disable all visual mods I made via Xposed

3. Revert to stock recovery (Do I flash the stock.img through fastboot? If so what is the command)

4. Take the OTA

5. Root using this method

6. Re-install SS.

7. Backup and mod

Any advise would help. I have been flashing since OG droid days so I am relatively familiar with how all of this stuff works.
 

· Supporting Member
Joined
·
51 Posts
There's a typo in the instructions:

Change this commande

adb push RockMyMoto.zip /sdcard/

To This

adb push RockMyMoto.jar /sdcard/

Note the difference in the RockMyMoto extension. You need to push the jar file from the extracted zip not push the zip itself.

Enjoy.
Thanks for the reply. I forgot to mention that I did take the typo into account on my original attempt and still got the same error message.
 

· Registered
Joined
·
1 Posts
A couple questions:

Is there any reason this wouldn't also work on the Droid Ultra/Maxx?

Also, is there a benefit if already rooted with PwnMyMoto to go through the process to keep root to upgrade to the latest patch and stick with PwnMyMoto, or just patch and run this?

Thanks
 

· Android Connoisseur
Joined
·
56 Posts
Wow, Cydia impactor... Did Jay Saurik help with this tool? He's the 3rd party iPhone guy.
At first glance it actually just looks like it is being used as a telnet client. Probably just for easy instructions. The hard work is in the .jar.

I could be wrong though, I didn't download, install, or seriously look hard at anything.
 

· Supporting Member
Joined
·
51 Posts
Just wanted to let everyone know that I figured out what my issue was. When I originally attempted to root my device I enabled USB debugging but didn't disconnect then reconnect my device. Today I tried again and after enabling USB debugging I disconnected and re connected (forgot to enable it before I connected my Moto X and everything went smoothly. I'm now rooted and all's right with the world!

Thanks, jcase, for the guide and RockMyMoto exploit and thanks to those who attempted to help me. :)
 

· Android Enthusiast
Joined
·
266 Posts
pushing my Maxx update, might give this a try and see if it works
 
1 - 20 of 39 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top