simg2img - unpack and modify the original system.img - 修改 system.img 中的内容
来源:互联网 发布:nba2konline李慕豪数据 编辑:程序博客网 时间:2024/06/01 08:16
在 IBM Server 上:
/opt/android-x86/cm-13-kiwi-4-honor5x/out/host/linux-x86/bin/simg2img
/opt/android-x86/cm-13-kiwi-4-honor5x/out/host/linux-x86/bin/make_ext4fs
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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.rawmount -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 - unpack and modify the original system.img - 修改 system.img 中的内容
- 修改system.img
- make ramdisk.img and system.img
- system.img ext4 and yaffs2
- android system.img 大小修改
- ramdisk.img system.img userdata.img制作修改
- Android emulator中的system.img,userdata.img和ramdisk.img
- android system.img userdata.img
- Android ramdisk.img system.img userdata.img
- Android ramdisk.img system.img userdata.img
- Android ramdisk.img system.img userdata.img
- Android ramdisk.img system.img userdata.img
- make system.img, ramdisk.img, userdata.img
- android ramdisk.img system.img userdata.img
- ramdisk.img system.img userdata.img 分析
- Android ramdisk.img system.img userdata.img
- ramdisk.img system.img userdata.img 分析
- ramdisk.img system.img userdata.img 分析
- NGUI 图片无缝衔接
- Autocad.net 开发
- [学习笔记]设计模式[0]-{策略模式}
- Map<String,Map<String,List<String>>>结构取数据这个方法比Iterator和foreach效率稍高。
- TENSORFLOW官方文档-MNIST机器学习入门-建立模型
- simg2img - unpack and modify the original system.img - 修改 system.img 中的内容
- java枚举类注意点
- setTimeout与setInterval的差异
- iOS真机调试问题-App installation failed
- shell 学习
- (iOS开发) 往服务器上传视频
- [学习笔记]设计模式[1]-{观察者模式}
- jQuery技术解密二
- 从客户端的角度设计后端的接口