解压系统镜像文件img并查看内容

  1. 首先使用file命令查看文件的格式
[/mnt/android_img]@OS $foo
-> file system.raw.img 
system.raw.img: Squashfs filesystem, little endian, version 4.0, 471060833 bytes, 1605 inodes, blocksize: 131072 bytes, created: Mon Aug 20 08:29:25 2018
  1. 根据格式使用对应的解压命令得到内容
[/mnt/android_img]@OS $foo
-> sudo unsquashfs -d root system.raw.img
[sudo] password for foo: 
Parallel unsquashfs: Using 48 processors
1316 inodes (9847 blocks) to write

[===============================================================================================================================\] 9847/9847 100%

created 1140 files
created 289 directories
created 176 symlinks
created 0 devices
created 0 fifos
[/mnt/android_img]@OS $foo
-> ls
root  system.raw.img  vendor.raw.img
相关推荐
©️2020 CSDN 皮肤主题: 黑客帝国 设计师:白松林 返回首页