simg2img

摘要:
在IBMServer上:[root@localhostcm-13-kiwi-4-honor5x]#whichsimg2img/opt/android-x86/cm-13-kiwi-4-honor5x/out/host/linux-x86/bin/simg2img[root@localhostcm-13-kiwi-4-honor5x]#whichmake_ext4fs/opt/android-x86

在 IBM Server 上:

[root@localhost cm-13-kiwi-4-honor5x]# which simg2img

/opt/android-x86/cm-13-kiwi-4-honor5x/out/host/linux-x86/bin/simg2img

[root@localhost cm-13-kiwi-4-honor5x]# which make_ext4fs

/opt/android-x86/cm-13-kiwi-4-honor5x/out/host/linux-x86/bin/make_ext4fs

[root@localhost cm-13-kiwi-4-honor5x]#

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

http://stackoverflow.com/questions/8663891/how-to-mount-the-android-img-file-under-linux

This is for all who wants to unpack and modify the original system.img that you can flash using recovery.

system.img (what you get from the google factory images for example) represents a sparsed ext4 loop mounted file system.

It is mounted into /system of your device. Note that this tutorial is for ext4 file system, you may have system image which is yaffs2 for example.

the way it is mounted on Galaxy Nexus:

“/dev/block/platform/omap/omap_hsmmc.0/by-name/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0″ Prerequisites:

Linux box or virtual machine simg2img, make_ext4fs binaries which can be downloaded from herehttp://andwise.net/?attachment_id=406

Procedure:

place you system.img and the 2 binaries in one directory, and make sure the binaries have exec permission. Part 1 – mount the filesystem

mkdir sys
./simg2img system.img sys.raw
mount -t ext4 -o loop sys.raw sys/

Then you have all your system partition mouned in ‘sys’ and you can modify whatever you want in ‘sys’. For example de-odex apks and framework jars. Part 2 – create a new flashable system image.

./make_ext4fs -s -l 512M -a system new.img sys/

umount sys

rm -fr sys

Now you can simply type:

fastboot flash system new.img

++++++++++++++++++++++++++++++++++++++++

免责声明:文章转载自《simg2img》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Jakarta Java Mail属性参数配置Golang使用os/exec时产生僵尸(defunct)进程下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

随便看看

jenkins 配置 git拉取代码

#@(!jfkldjMC4r/WaqVy/B+n/SBCY6dsjaNq6ZVhrdNkbh0XMm55fH9ifMyr5UDVHoeUbnwURrH+O7L0uWdhy2w4BHwIqZOF5Bcnd47N9d9hh67jW@!...

说说接口封装

今天,我为同事封装了一个接口。当谈到接口封装时,有很多关于它的讨论。在很多情况下,说一个服务好,一个服务坏,实际上是在吐槽服务团队之外暴露的界面质量。无论哪种语言,抽象的封装接口都由一个函数名、几个参数和几个返回值组成。总之,参数不应该被封装……我们在内部尝试接口_Catch不会抛出异常,所有信息都将以错误代码的形式返回。就php而言,建议进行异常处理。...

vant上传文件到后端

Html代码<Ts代码文件列表=[]/image/[a-zA-z]+/。test(file.file.type)){this.$toast(“请上传图片”);returnfalse;config).then(res=>})。捕获(()=>拒绝)=>ts=“+newDate().getTime()).然后...

CUPS

杯子:一个。工具1.hal设备管理器2.系统配置打印机3.Web管理器/etc/cups/ccups。conf/etc/cups/printer conf II。打印机本地安装和客户端安装1.在本地安装Linux打印机时,应选择postscript和pcl打印机。如果没有,则应将打印机设置为原始打印模式/etc/cups/printers。有限公司...

微信小程序的模板消息与小程序订阅消息

有关获取分发权限的更多信息,请参阅applet侧消息订阅接口wx的步骤3。requestSubscribeMessage。有关发出订阅消息的调用接口的更多信息,请参阅服务器端消息发送接口subscribeMessage。sendwx。requestSubscribeMessage(Objectobject)基本库2.8.2。必须填写参数Objectobjec...

linux系统redhat7.9安装R

1.查看系统信息[root@localhosthome]#cat/etc/redhat-releaseRedHatEnterpriseLinuxServerrelease7.9(Maipo)[root@localhosthome]#lsb_release aLSB版本::core-4.1-amd64:core-4.1-noarch:ccxx-4.1-amd6...