How to root all Motorola with Gingerbread

There are countless ways and tricks to regain total control over the mobile and become a super user (root). But most are specific to a particular model. Now, a developer has found a method to get it on all Motorola (not tested with other brands) that carry Gingerbread, which are the majority.

Two caveats before proceeding. The procedure is aimed at average or advanced users. Requires some expertise and experience in messing around the system. The other is that the method is intended to be followed with the Linux operating system. If you don't have it installed on your computer, you can always use an emulator to open a Linux virtual machine on a PC or on a MAC.

And now to the point. The first thing to do is enable is USB debugging (can be found in settings / development options). Then we will create an image of the userdata partition (called CG37), modifying the local.prop file. The value to modify in the local.prop file is to pass ro.sys.atvc_allow_all_adb from position 0 to 1.

To create the image of the userdata partition you have to go to the Linux console and, always with administrator privileges, type:

dd if = / dev / block / userdata of = / sdcard / CG37.smg

With this we will have managed to have the CG37.smg on the microSD card. From the Linux console, you will have to download and extract a zip file that we will download from this address. We will have to copy the partition image (CG37.smg) and the SBF file (which contains an image of the terminal firmware) in the folder that we have just unzipped. From the console we go to the folder by typing cd folder, where folder corresponds to the address of the folder where we have placed the two files.

The next step is to modify the size of the partition up to 200 MB, since sbf_flash does not allow flashing images of large files. For that, you have to type in the console:

efsck -f CG37.smg
resize2fs CG37.smg 200M

Once the partition is expanded, we write again in the console or terminal: 

chmod + x sbf_flash

We start the mobile from the bootloader and connect it to the computer. We return to the console to write the following command:

./sbf_flash -r –userdata CG37.smg ORIGINAL.sbf

Where ORIGINAL corresponds to the name of the SBF. We let it do its job and, once the mobile is restarted, we write the last line in the terminal:

bash finishroot.sh.

We will already have the Motorola rooted. As you see in a somewhat complex process (Almost impossible for those who do not move comfortably in Linux. But if you cannot, surely that friend used to manipulating machines, knows how to do it in a few minutes. In case we have made a mistake when transcribing the instructions, you can follow them from XDA Developers.


You are interested in:
Basic guide on Android ROMS
  1.   adlx said

    "A developer has found a method" <- source?

    The one who found out about the ro.sys.atvc_allow_all_adb that I know of is Dan Rosenberg.

    - Without being root, there is no "dd" on the phone. It can be installed, but you don't say it.
    - It is not clear to me that without being root it is possible to dump the block device of the userdata.
    - You do not decide how to set the ro.sys.atvc_allow_all_adb to 1, so the procedure, if it works, flashes the same userdata again.

    - You can flash sbf in Windows using RSD Lite (you have to rebuild the sbf with the modified userdata).


  2.   Michelangelo Criado said

    Adlx, you are absolutely right about being root. I forgot to include it. And he didn't know about Rosenberg. Roger that.