1 Star 3 Fork 2

chenjim/HowToModifySystemImage

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

HowToModifySystemImage

对刷机包的system.img修改,然后重新打包 资源链接:https://gitee.com/chenjimcom/HowToModifySystemImage

1. 准备工作:

  • 解压解打包工具,得到三个文件:make_ext4fs、mkuserimg.sh、simg2img,
  • 把它们跟要修改的 .img.ext4(或.img)文件放置到同一个目录下

2. 转换源文件为"*.img.ext4"格式

使用./simg2img src des命令来转换,eg:
./simg2img system.img system.img.ext4

3. 挂载镜像

新建一个目录,挂载此img到这个目录上使用
sudo mkdir sysmain
mount -t ext4 -o loop system.img.ext4 sysmain

挂载成功后就可以在资源管理器中管理该img内的文件

4. 修改镜像内容

5. 重新打包

chmod 777 ./make_ext4fs ./make_ext4fs -l 1610612736 -s -a system system_out.img ./sysmain
其中1610612736 是分区大小

Empty file

About

对刷机包的system.img修改,然后重新打包 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenjim/HowToModifySystemImage.git
git@gitee.com:chenjim/HowToModifySystemImage.git
chenjim
HowToModifySystemImage
HowToModifySystemImage
master

Search