7

I installed TWRP recovery on my phone and backed up the system, data and boot partitions before installing CM12.1.

I would like to extract one stock apk (FM radio) from the backup on a Linux system. How do I mount the system.ext4.win file?

4
  • It's a simple ext4 image so mounting it as an ext4 partition is enough. Just remember that CM12.1 may not have all required libraries/drivers to actually launch your stock app.
    – GiantTree
    Jul 11, 2015 at 15:28
  • The extension is .ext4.win. Somehow I'm not managing to mount it with sudo mount -t ext4 -o loop system.ext4.win ./Mount. I'm getting a generic error (wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error). I'm aware that CM might lack drivers but trying it doesn't carry risks.
    – To Do
    Jul 11, 2015 at 16:31
  • Do you have access to a PC running 7-Zip? If so, just open the file in 7-Zip and you are done. No need to mount it.
    – GiantTree
    Jul 11, 2015 at 17:08
  • 2
    Finally it was not necessary to mount it. It was sufficient to extract it with tar -xf archive_name but the app doesn't install.
    – To Do
    Jul 11, 2015 at 17:47

2 Answers 2

7

Rename the system.ext4.win file to system.ext4.tarand extract it.
If your TWRP backup is not in compression method, you will directly get to the /system folder or if your TWRP backup is in compression method, you will get a file named system.ext4 which you'll have to just rename it to system.ext4.tar and extract it to /system folder

5

I discovered that it was not necessary to mount it. It was sufficient to extract it with tar -xf archive_name but this particular app doesn't install.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .