Android 系统system.img解包和重打包过程 |
您所在的位置:网站首页 › img提取app › Android 系统system.img解包和重打包过程 |
把system.img转换成ext4格式 ./simg2img system.img system_ext4.img 挂载ext4到systemMount目录进行修改 sudo mount system_ext4.img systemMount/ -o loop + 修改完成后执行 ./make_ext4fs -s -T -1 -S file_contexts -l 2952790016 -a system system_e2.img systemMount 1.2952790016代表你要打包的system.img大小,这个值可以参考挂载前system.img的大小 2."-a system",是指这个img用于android系统,挂载点是/systemMount 3.system_e2.img是生成的文件名。 4.-s 就是生成ext4的S模式制作 root@ubuntu:/home/ubuntu64/bkm02a/systemImg# ./make_ext4fs Expected filename after options make_ext4fs [ -l ] [ -j ] [ -b ] [ -g ] [ -i ] [ -I ] [ -L ] [ -f ] [ -a ] [ -u ] [ -S file_contexts ] [ -C fs_config ] [ -T timestamp ] [ -z | -s ] [ -w ] [ -c ] [ -J ] [ -v ] [ -B ] [ -d ] [ -D ] [[] ]注意事项 file_contexts 文件7.0的系统里没有,是file_contexts.bin文件需要转换 文件路径:out/target/product/msm8937_64/root/file_contexts.bin 链接:https://pan.baidu.com/s/1cSXXwtFvIbMZYvbzRN952w 提取码:hacp file_contexts.bin 转换成 file_contexts $ ./sefcontext -o file_contexts file_contexts.binfile_contexts 转换成 file_contexts.bin $ ./sefcontext_compile -o file_contexts.bin file_contexts参考连接:安卓7.0、8.0file_contexts.bin和file_contexts转换工具 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |