This is really just a look back at the dd command, and its usage in the world of rooting. For the sake of this guide, we'll be using an HTC Vision. Let's start with something that looks similar to a command that was used before gfree was available.
dd is the command that allows you to copy files from certain areas that normally aren't accessible in a UNIX/Linux filesystem via a command line. However, a risk factor does come in when using this command because a small mistake such as reversing the "if" and "of" parameters can result in loss of data and/or a brick. This is why it often garners the nickname of "disk destroyer" etc.
if" is a parameter stands for "input file" so /dev/block/ is the directory in which the file is contained.
mmcblk0p18 is an Android specific partition that contains the current SPL (Secondary Program Loader).
"of" stands for output file. in this case, we have "of=/sdcard/hboot-eng.img" which means that the output file will be an .img file in the sdcard of your device.
In total, the above command "dd if=/dev/block/mmcblk0p18 of=/sdcard/hboot-eng.img" copies the files that is in partition 18 and then pastes it on the root of your sdcard as the file "hboot-eng.img"
The dd command was used to install the Engineering SPL as a means to achieve S-OFF since the G2/Desire Z/Vision couldn't be S-OFF at the time without the use of the Engineering SPL. Also, the dd command can be used as a method to manually edit the misc partition in order to unroot the device if you don't care for misc_version OR don't have access to it at present moment,
However, present root/unroot methods pretty much renders the dd command as obsolete when it comes to Android devices.
Code:
dd if=/dev/block/mmcblk0p18 of=/sdcard/hboot-eng.img
dd is the command that allows you to copy files from certain areas that normally aren't accessible in a UNIX/Linux filesystem via a command line. However, a risk factor does come in when using this command because a small mistake such as reversing the "if" and "of" parameters can result in loss of data and/or a brick. This is why it often garners the nickname of "disk destroyer" etc.
if" is a parameter stands for "input file" so /dev/block/ is the directory in which the file is contained.
mmcblk0p18 is an Android specific partition that contains the current SPL (Secondary Program Loader).
"of" stands for output file. in this case, we have "of=/sdcard/hboot-eng.img" which means that the output file will be an .img file in the sdcard of your device.
In total, the above command "dd if=/dev/block/mmcblk0p18 of=/sdcard/hboot-eng.img" copies the files that is in partition 18 and then pastes it on the root of your sdcard as the file "hboot-eng.img"
The dd command was used to install the Engineering SPL as a means to achieve S-OFF since the G2/Desire Z/Vision couldn't be S-OFF at the time without the use of the Engineering SPL. Also, the dd command can be used as a method to manually edit the misc partition in order to unroot the device if you don't care for misc_version OR don't have access to it at present moment,
However, present root/unroot methods pretty much renders the dd command as obsolete when it comes to Android devices.