Hovatek Forum MOBILE Android [Please help] Unpack and repack of system.img are different file sizes.
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[Please help] Unpack and repack of system.img are different file sizes.

[Please help] Unpack and repack of system.img are different file sizes.

davek17
davek17
davek17
Enthusiastic Member
13
16-02-2018, 02:06 PM
#3
(16-02-2018, 01:39 PM)Qym Man there is what we call dm-verity it wont let you boot to a modified system image. You need to patch your boot image.

Hi Guys

So how do you patch the boot image?

I'm in on this as i'm struggling with the same issue.  I have been playing with MTK based ROMS for years (how I miss the simple life of MTK Droid tools!!) but recently I have found that Nougat, MT6737M and MT8735b platforms to be a real pain.

So my issue is the same but I have something to add too.  Firstly I normally just try to get ADB root so I change the default.prop settings in boot.img (ro.debuggable, rfo.secure, ro.adb.secure) and repack/flash and then I can usually get root via ADB.  I may need to unlock the bootlaoder, if this is the case I usually don;t have an issue with that.  I can't get ADB root on this device though.  Not sure if that's something to do with this issue? I did notice that this ROM I have does have the "verity_file" in the boot.img ramdisk, same place as the default.prop.

I also cannot repack system.img.  I have found that Windows tools are just not good enough for this after v4/5 Android. So what I do is use Ubuntu LINUX as a VM on my PC and use the AOSP tools (simg2img, then mount, fiddle, then make_ext4fs).  I have no problem unpacking, its always repacking that's the issue.

So I understand all about the file_contexts and also how to convert file_contexts.bin.  I understand how to get the right size for a repack. 

Interestingly I did manage to reflash and boot an OS. I simply tweaked some build.prop device name settings, the device works fine other than anything to do with google stops running or doesn't work so play, chrome etc.  The rest of the device seems OK but I couldnt trust it really.

So I'm on this and would love to share thoughts and info in an attempt to try to work this out?

Messages In This Thread
Unpack and repack of system.img are different file sizes. - by Scott Fallick - 16-02-2018, 01:30 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 16-02-2018, 01:39 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 16-02-2018, 02:06 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 16-02-2018, 02:26 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 16-02-2018, 04:21 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 16-02-2018, 04:51 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 16-02-2018, 04:58 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 16-02-2018, 05:12 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 16-02-2018, 05:38 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 19-02-2018, 09:13 AM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 20-02-2018, 11:33 AM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 20-02-2018, 12:08 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 20-02-2018, 03:33 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 21-02-2018, 04:06 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 21-02-2018, 04:17 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 21-02-2018, 04:18 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 21-02-2018, 06:04 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 26-02-2018, 12:00 PM
RE: Unpack and repack of system.img are different file sizes. - by Panth3r - 26-02-2018, 06:35 PM
RE: Unpack and repack of system.img are different file sizes. - by davek17 - 09-11-2018, 03:09 PM
RE: Unpack and repack of system.img are different file sizes. - by juvette - 11-11-2018, 07:55 PM
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram