Vatish Sharma
Vatish Sharma

Reputation: 1576

How to unpack, modify, pack and flash `system.img.ext4` file using Odin?

I have a system.img.ext4.lz4 file that is compatible with my Samsung S10 5G(Qualcomm) device. I have extracted system.img.ext4 file from the system.img.ext4.lz4 using unlz4 system.img.ext4.lz4 command.

I want to play with its content. So I have decided it in two steps:

  1. Flash system.img.ext4 without modification:

    • Using tar -cvf AP.tar system.img.ext4 command, I have created a AP.tar file.
    • Flashed AP.tar file using Odin3 v3.13.
    • It flashed successfully.
  2. Flash system.img.ext4 with modification:

a) Modifying

b) Calculate system sector size

c) Packing

d) Tar Compression

Please suggest how can I resolve this issue? I will be very thankful to you for any little to big suggestion.

Upvotes: 3

Views: 14720

Answers (1)

Red Prez
Red Prez

Reputation: 1

You cannot resolve this error. It's simple why. It's a modified .IMG file. Since you have a Qualcomm Snapdragon, you are not allowed to flash custom/modified software onto your phone. Reason being is because it's bootloader is locked. There is no way for you to unlock it. The reason the one called AP.IMG worked, is because it wasn't modified at all.

Upvotes: 0

Related Questions