如何安装linux下android的IMG文件?文件、linux、android、IMG

2023-09-04 10:18:39 作者:妖艳ゥ艳柒郎

最近,我在android ROM的兴趣,我想改变和重建它们。 所以,我做我的XOOM一些测试,它很容易闪的东西到机器。 我从摩托罗拉部分ROM( http://developer.motorola.com/products/software/), 他们是一些IMG文件,我想知道里面有什么,我希望能解开他们。

Recently, I'm interest in the android rom, I want to change and rebuild them. So, I did some test on my XOOM, it's very easy to flash something into the machine. I got some ROM from MOTOROLA (http://developer.motorola.com/products/software/), they are some img file, and I want to know what's inside, I hope to unpack them.

我试着在 unyaffs ,它说破IMG文件。 我试着安装它们,它的伟大工程的system.img,我可以得到里面的文件了。

I tried the unyaffs, it said broken img file. I try to mount them, it works great on the system.img, and I can get the file inside.

当我想通过来挂载userdata.img安装邻环userdata.img到/ mnt /用户数据(同​​ system.img ),它告诉我安装:你必须指定文件系统类型让我试试安装-t ext2的-o循环用户数据.IMG到/ mnt /用户数据,它说挂载:错误的财政司司长类型,坏的选择,坏的超级上...

When I want to mount userdata.img by mount -o loop userdata.img /mnt/userdata (the same as system.img), it tells me mount: you must specify the filesystem type so I try the mount -t ext2 -o loop userdata.img /mnt/userdata, it said mount: wrong fs type, bad option, bad superblock on...

那么,如何从 userdata.img

推荐答案

一看便知在:http://omappedia.org/wiki/Android_eMMC_Booting#Modifying_.IMG_Files

首先,你需要uncom preSSuserdata.img与simg2img,那么你可以通过回路设备安装它。

First you need to "uncompress" userdata.img with simg2img, then you can mount it via the loop device.