[Moto X General] jbrukardt:
Good evening all, after experimenting on my RW XT1049 MotoX a bit, I have successfully rooted, installed Safestrap (laymans term: dual boot), installed a custom ROM, and enabled full recovery on the phone. I also was able to UNDO all this for a return to complete stock.

All steps below are not condoned by republic wireless in any way, and are in violation of your agreement with them. You will immediately void your phones warranty, and your agreement with republic wireless. That said... we're tinkerers, its what we do. Dont blame me, republic wireless, or my dog for anything that bricks, breaks, or exploded. If nuclear war starts because of your actions, its not Republics fault.

All credit goes to Hashcode for safestrap, and jCase for root. All files are located in respective links out of respect for them. If you dont know how to use adb, this guide is not for you.

Now that all thats said, for those not familiar with Safestrap, it is a custom recovery for phones with a locked bootloader, it enables "dual booting" of your phone, meaning that you can keep the stock RW rom (which we now have a raw image of) in your stock ROM slot, but also create up to 4 additional ROM slots for multi booting. I personally have the stock slot which i leave completely alone, a daily custom ROM in slot 1, and an experimental ROM in slot 2.

Now, as to how to do this. You need to complete five steps

Do a complete stock restore of your device using RSDLITE

http://theunlockr.com/2013/11/09/unroot-moto-x-all-versions/

A) Root using RockMyMoto

http://xdaforums.com/showthread.php?t=2509590

B) Install the Tmobile XT1053 Safestrap

http://rootzwiki.com/topic/104161-recovery-locked-safestrap-recovery-v365-2013-11-13/

C) Perform an immediate back up of your stock rom slot, and get it off your phone as a backup

D) Create as many ROM slots as you like

E) Install the stock ROM back to one of your new ROM slots (NOT STOCK SLOT) and tinker, modify, and mess with it until your hearts content, knowing that you cant brick the device anymore, and you will always have your stock ROM in the STOCK slot.

0) So you learn how, and can do it if you brick your device during this process, do a complete stock restore of your device using the stock image, and RSDlite. If you dont do this, and try to do any of the following steps on an existing cluttered stock rom, i offer no guarantees of any kind

A) Rooting

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:

Quote:

adb shell getprop dhcp.wlan0.ipaddress

unzip RockMyMoto-{version}.zip and push the exploit and su to /sdcard/:

Quote:

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:

Quote:

telnet {your phone's ipaddress} 2222

Run the exploit through telnet

Quote:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

The exploit will tell you to use adb to reboot:

Quote:

adb reboot

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

Quote:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

Run the exploit through telnet for the third time, it will not reboot:

Quote:

dalvikvm -cp /sdcard/RockMyMoto.jar RockMyMoto

Wait 0-60 seconds, for su to install, then install SuperSu from the market.

Enjoy!

B) Installing Safestrap

HOW DO I INSTALL SAFESTRAP?

Be Rooted (Look for PWNMYMOTO/RockMyMoto by JCase):

RockMyMoto: http://rootzwiki.com...-the-first-ota/

PwnMyMoto: http://rootzwiki.com...-miniultramaxx/

Make sure in "Settings" -> "Security" you have "Unknown Sources" checked

Download the Safestrap APK to your device

Find the APK using a Filemanager tool and open it on your device, then click "Install".

(If updating from an existing Safestrap you might be warned that this will over-write the existing installation. Click the "Yes" equivalent to this message.)

Once installed, open up the Safestrap application as you would any other app.

Reboot into the Write-Protect Off (recovery) Android OS via the safestrap app (if this doesnt show up, you may still be in Write-Protect-Off from the last reboot when you rooted)

Agree to the disclaimer that you won't try to sue me and hunt me down with a rifle if you manage to break your phone..

Then use the "Install Recovery" button. You should see the current version down in the lower left corner of the window. And the "Status:" should say "Installed" when you're done.

From there you can reboot and you *should* see a new splash screen during the boot up. While this is showing you can enter Safestrap Recovery using the [ menu ] button.

That's it for the installation! Read below for a brief overview of Safestrap Recovery v3.x

C) Backup, this is self explanatory. If you dont know how to do a TWRP backup, and you've gotten this far, im amazed nuclear war hasnt started

D) Creating Custom ROM slots

Reboot your phone, select recovery

Select boot options

Select ROM slot 1

What size of /data slot should I make? 1GB for testing, 2GB as a small daily ROM and 3GB for a decent heavy use daily ROM.

Let it finish

Return to Recovery main menu

choose restore

restore your recent backup to ROM Slot 1

Reboot

Congratulations, you now have a safestrapped device. Mess with your ROM to your hearts content.