How to extract contents of *.img (boot/recovery/system/userdata) for adp1 on host

2,298 views
Skip to first unread message

Samuel

unread,
Sep 1, 2009, 3:29:14 PM9/1/09
to Android-DevPhone-Updating, android...@googlegroups.com, samuel...@gmail.com
Hi,

After downloading the official image with android-1.5 (also known as
signed-dream_devphone_userdebug-img-150275.zip) for adp1 from the link
(http://www.htc.com/www/support/android/adp.html#s3) provided by HTC
and unzipping the image into someplace you want in the terminal, and
then four files with the same extension of .img will be got, as shown
below.
boot.img
recovery.img
system.img
userdata.img


Here's a discussion mainly focused on how to extract these contents of
the last two images for adp1 on host.

With respect to how to extract these contents of the first two images
for adp1 on host, please refer to the following link. Meanwhile,
thanks for the community efforts as well!!
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images.

1> system.img
==> the unyaffs2 tool is used to extract the contents from system.img
on host.
For the tool, you can access its source code with the license of GPLv3
located at the link (http://code.google.com/p/unyaffs/) and download
the source code and its binary.

2> userdata.img
While using the aforementioned tool extracting these contents of
userdata.img, the contents fail to be got on host and just a message
of "end of image" is shown up in the terminal, as follows.
$ chmod a+x unyaffs
$ unyaffs userdata.img
end of image

So, the problem to be asked is about how to extract contents of
userdata.img for adp1 on host!!

Any input will be greatly appreciated!!






lbcoder

unread,
Sep 30, 2009, 11:50:42 AM9/30/09
to Android-DevPhone-Updating
userdata.img is also yaffs2. The reason you aren't getting anything
out of it is that it is BLANK, i.e. writing the userdata.img to your
device is equivalent to wiping your userdata partition (/data).

And FYI: If you picked the OTA file rather than the IMG, you wouldn't
even need to extract it -- they're plain as day in the zip file.

On Sep 1, 3:29 pm, Samuel <samuel.om...@gmail.com> wrote:
> Hi,
>
> After downloading the official image with android-1.5 (also known as
> signed-dream_devphone_userdebug-img-150275.zip) for adp1 from the link
> (http://www.htc.com/www/support/android/adp.html#s3) provided by HTC
> and unzipping the image into someplace you want in the terminal, and
> then four files with the same extension of .img will be got, as shown
> below.
> boot.img
> recovery.img
> system.img
> userdata.img
>
> Here's a discussion mainly focused on how to extract these contents of
> the last two images for adp1 on host.
>
> With respect to how to extract these contents of the first two images
> for adp1 on host, please refer to the following link. Meanwhile,
> thanks for the community efforts as well!!http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_....
Reply all
Reply to author
Forward
0 new messages