[Verizon Motorola Droid Turbo General] Ekkoria:
Droid Turbo System Image Tutorial​

So I've noticed there isn't yet a guide on how to modify a system image for the Turbo and thought I would write one up. Note that anything you do here can very easily brick your phone, and I'm not responsible for anything that breaks, bricks, catches on fire, causes Skynet to become sentient, or eats your cat.

Here's what you need:

A rooted system image (can be found here)

A linux distro, either running natively or in VirtualBox (Ubuntu is a good choice)

IF YOU'RE USING LINUX NATIVELY:

Put the system image somewhere on an ext4 file system you have access to, such as in your home directory (/home/user)

Make sure loop device support is installed (this will vary by distro but should be installed by default on Ubuntu)

Make sure the loop kernel module is loaded:

lsmod | grep loop

As long as the command returns text, you're good.

If it is not, load it:

sudo modprobe loop

Make a mountpoint:

sudo mkdir /mnt/turbo

And finally, mount the image:

sudo mount -t ext4 -o loop /path/to/turbo/image /mnt/turbo

And the image will be accessible at /mnt/turbo/. Note that you'll need root permissions to access the files. To open the file manager as root under Ubuntu:

sudo nautilus

Navigate to /mnt/turbo to access the image and modify whatever you feel like.

IF YOU'RE USING VIRTUALBOX:

Please note that I'm writing these instructions under Linux. YMMV.

You'll have to convert the turbo's system image to something VirtualBox can recognize. To do this:

VBoxManage.exe convertdd turbo_system.img turbo_system.vdi

Load VirtualBox, but don't start your virtual machine yet.

Right click on your VM and open Settings.

Navigate to Storage and select Add Hard Disk.

Select your Turbo's system image in vdi format.

Click OK and close the settings window.

Start the VM.

Once you're all logged in, you can open your file manager and see if the image is already visible in the sidebar for mounting. If so, just click to mount and you're all good, although as above you'll have to be root in order to modify it. To open the file manager as root under Ubuntu:

sudo nautilus

If the image is not in the sidebar of your file manager, you'll have to mount the image manually. Use blkid to find a list of devices attached to the virtual system; the one we want is of type ext4, and *should* be the last device in the list. You can double check by finding the size of the device:

sudo blockdev --getsize64 /dev/sdX

where X is the letter of the device. This should return 3 GB or so.

Make a mountpoint:

sudo mkdir /mnt/turbo

Mount the image:

sudo mount -t ext4 /dev/sdX1 /mnt/turbo

where X is the letter of the device.

Open your file manager as root and navigate to /mnt/turbo. Under Ubuntu this would be:

sudo nautilus

Shut down your VM when you're done playing around.

Once you're done modifying the image, you need to convert it back to a raw .img format.

VBoxManage.exe clonehd turbo_system.vdi turbo_system.img --format raw

And that's it! Try not to break anything too badly. Make sure you unmount the image and/or stop your VM before flashing! This is the first guide I've written, so let me know if there's any questions you have or any improvements I can make.