Android各厂商Rom包解压方式

目录

大体流程:

1.小米

2.三星

3.vivo

4.zte 中兴

5.flyme 魅族

6.emui 华为

7.oppo


 

 

大体流程:

 

 

具体操作以及命令:

1.小米

解压刷机包zip文件后
(1)先将br转成dat

brotli.exe -d system.new.dat.br
$ file system.new.dat
system.new.dat: Linux rev 1.0 ext2 filesystem data, UUID=4729639d-b5f2-5cc1-a120-9ac5f788683c (extents) (large files) (huge files)


(2)再对dat文件格式转换,得到system.img

python sdat2img.py system.transfer.list system.new.dat


(3)解压system.img

unpack_ext4fs.exe system.img sys
system.img: Linux rev 1.0 ext2 filesystem data, UUID=bca9e33f-29f0-41d0-87e3-8f4a35afec34 (extents) (large files) (huge files)

 

2.三星

解压刷机包zip文件后
(1)将tar.md5重命名为.tar并解压
(2)解压上一步得到的system.img.ext4.lz4文件

lz4.exe -d system.img.ext4.lz4  system.img.ext4
$ file system.img.ext4
system.img.ext4: Android sparse image, version: 1.0, Total of 1094144 4096-byte output blocks in 25 input chunks.


(3)将上一步的img.ex4 simg转成img文件

simg2img.exe system.img.ext4  system.img


(4)解压system.img
 

unpack_ext4fs.exe system.img sys

 

3.vivo

解压刷机包zip文件后,有多个system.new.dat文件
(1)将多个dat文件合并为1个

copy /b system.new.dat+system.new.dat.1 + system.new.dat.2+system.new.dat.3+system.new.dat.4+system.new.dat.5+system.new.dat.6+system.new.dat.7+system.new.dat.8+system.new.dat.9+system.new.dat.10+system.new.dat.11+system.new.dat.12+system.new.dat.13+system.new.dat.14+system.new.dat.15 out.dat


(2)对out.dat文件格式转换,得到system.img

python sdat2img.py system.transfer.list out.dat


(3)解压system.img

unpack_ext4fs.exe system.img sys

 

4.zte 中兴

解压刷机包zip文件后,再解压update.zip
(1)把payload.bin文件复制到payload_input文件夹下

 mkdir payload_output && mkdir payload_input && cp payload.bin payload_input/


(2)运行payload_dumper.exe解压出system.img

./payload_dumper.exe


(3)解压system.img

./unpack_ext4fs.exe payload_output/system.img sys

 

5.flyme 魅族

解压刷机包zip文件后
(1)先将br转成dat

brotli.exe -d system.new.dat.br
$ file system.new.dat
system.new.dat: Linux rev 1.0 ext2 filesystem data, UUID=a54f3481-bbd8-59d7-93a0-1ded45ff8e8a (extents) (large files) (huge files)



(2)再对dat文件格式转换,得到system.img

python sdat2img.py system.transfer.list system.new.dat


(3)解压system.img

unpack_ext4fs.exe system.img sys

 

6.emui 华为

解压刷机包zip文件后
(1)解压UPDATE.APP得到system.img

python splituapp -f UPDATE.APP -l system
$ file output/system.img
output/system.img: Android sparse image, version: 1.0, Total of 909312 4096-byte output blocks in 9676 input chunks.


(3)将上一步的output/system.img simg转成img文件

simg2img.exe output/system.img  system.img


(4)解压system.img

unpack_ext4fs.exe system.img sys

 

7.oppo

(1)ozip解密为zip

python ozipdecrypt.py  opo_PCRM00_11_OTA_0250_all_PDjfWfan43wx.ozip


(2)解压上一步得到的zip

unzip opo_PCRM00_11_OTA_0250_all_PDjfWfan43wx.zip


(4)将br转成dat

brotli.exe -d system.new.dat.br
$ file system.new.dat
system.new.dat: Linux rev 1.0 ext2 filesystem data, UUID=a54f3481-bbd8-59d7-93a0-1ded45ff8e8a (extents) (large files) (huge files)


(5)再对dat文件格式转换,得到system.img

python sdat2img.py system.transfer.list system.new.dat


(6)解压system.img

unpack_ext4fs.exe system.img sys

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章