Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android TW_INCLUDE_CRYPTO ADDING TO MUCH SIZE

TW_INCLUDE_CRYPTO ADDING TO MUCH SIZE

TW_INCLUDE_CRYPTO ADDING TO MUCH SIZE

Charles078728
Charles078728
Charles078728
Junior Member
18
03-09-2026, 12:08 PM
#1



How to fix boot.img getting larger when adding TW_INCLUDE_CRYPTO OR OTHER DECRYPTION FLAGS
I already tried adding those flags to reduce boot.img size
hovatek
hovatek
hovatek
Administrator
50,977
03-09-2026, 12:51 PM
#2
(03-09-2026, 12:08 PM)Charles078728 How to fix boot.img getting larger when adding TW_INCLUDE_CRYPTO OR OTHER DECRYPTION FLAGS
I already tried adding those flags to reduce boot.img size

Are these the only flags that make your TWRP exceed the partition size?

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Charles078728
Charles078728
Charles078728
Junior Member
18
03-09-2026, 01:36 PM
#3
nope
this is my repo
https://github.com/pandagamingthethird-w..._TECNO-BF7
Charles078728
Charles078728
Charles078728
Junior Member
18
04-09-2026, 09:22 AM
#4
(03-09-2026, 12:51 PM)hovatek
(03-09-2026, 12:08 PM)Charles078728 How to fix boot.img getting larger when adding TW_INCLUDE_CRYPTO OR OTHER DECRYPTION FLAGS
I already tried adding those flags to reduce boot.img size

Are these the only flags that make your TWRP exceed the partition size?

I hope you will help me
hovatek
hovatek
hovatek
Administrator
50,977
08-09-2026, 10:39 AM
#5

Mediatek Course Mediatek Course


(03-09-2026, 01:36 PM)Charles078728 nope
this is my repo
https://github.com/pandagamingthethird-w..._TECNO-BF7

What is the size of your generated TWRP vs the partition size?

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Charles078728
Charles078728
Charles078728
Junior Member
18
09-09-2026, 01:02 PM
#6
(08-09-2026, 10:39 AM)hovatek
(03-09-2026, 01:36 PM)Charles078728 nope
this is my repo
https://github.com/pandagamingthethird-w..._TECNO-BF7

What is the size of your generated TWRP vs the partition size?

when i add the full decryption flags it usually goes upto 33mb and my boot.img size is only 32mb
hovatek
hovatek
hovatek
Administrator
50,977
Yesterday, 10:57 AM
#7
(09-09-2026, 01:02 PM)Charles078728 when i add the full decryption flags it usually goes upto 33mb and my boot.img size is only 32mb

These flags should shave off at least 2MB

Code:

TW_EXCLUDE_NANO := true TW_EXCLUDE_APEX := true TW_EXCLUDE_TWRPAPP := true TW_EXCLUDE_PYTHON := true TW_DEFAULT_LANGUAGE := en TW_EXTRA_LANGUAGES := false TW_EXCLUDE_MTP := true TW_EXCLUDE_SUPERSU := true

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Yesterday, 11:08 AM
#8
Hello Hovatek CAN YOU PLEASE REPLY TO ME?
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
WhTlYt