【日常记录】gsi system.img 解包

参考:

https://www.cnblogs.com/fanglongxiang/p/13706562.html

查看文件类型:

android/out/host/linux-x86/bin$ file ~/tmp/androidt/system.img 
/home/huaweishi/tmp/androidt/system.img: Linux rev 1.0 ext2 filesystem data, UUID=f2face5f-ed9a-59e5-b456-aa5e9dae14d0 (extents) (large files) (huge files)

挂载fail:

$ sudo mount system.img system
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

继续:

~/tmp/androidt$ sudo mount -o loop,ro system.img ./system
~/tmp/androidt$ cd system/
~/tmp/androidt/system$ ls
acct  bugreports  d            debug_ramdisk  etc       init.environ.rc  metadata  odm_dlkm  postinstall  sdcard                  sys          system_ext
apex  cache       data         dev            firmware  linkerconfig     mnt       oem       proc         second_stage_resources  system       vendor
bin   config      data_mirror  dsp            init      lost+found       odm       persist   product      storage                 system_dlkm  vendor_dlkm

 

posted @ 2024-10-23 11:16  xiululu  阅读(4)  评论(0编辑  收藏  举报